Skip to content

Commit

Permalink
a lot of things
Browse files Browse the repository at this point in the history
  • Loading branch information
KUNGERMOoN committed Feb 4, 2024
1 parent 52f718e commit bd44d7a
Show file tree
Hide file tree
Showing 295 changed files with 14,970 additions and 259 deletions.
Binary file removed Assets/Docs/RenderDocCapture.rdc
Binary file not shown.
File renamed without changes
127 changes: 127 additions & 0 deletions Assets/Docs/Test.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions Assets/Docs/ZoomIntoPosition.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Here are calculations we use to make the camera zoom 'into' mouse position

Known:
MouseToScreenPos1() = MouseToScreenPos2() = MouseToScreenPos()
Camera.aspect
zoom2

worldMousePos1 = worldMousePos2
CameraPositionΔ = Camera.position2 - Camera.position1

Unknown:
CameraPositionΔ = ?

Reasoning:
worldMousePos = ScreenToWorldPos(MouseToScreenPos()) =
Camera.position + ScreenWorldSize * MouseToScreenPos() =
Camera.position + Camera.orthographicSize * new Vector2(Camera.aspect, 1) * MouseToScreenPos()

worldMousePos1 = worldMousePos2
Camera.position1 + ScreenWorldSize1 * MouseToScreenPos() = Camera.position2 + ScreenWorldSize2 * MouseToScreenPos()
ScreenWorldSize1 * MouseToScreenPos() - ScreenWorldSize2 * MouseToScreenPos() = Camera.position2 - Camera.position1
MouseToScreenPos() * (ScreenWorldSize1 - ScreenWorldSize2) = CameraPositionΔ
CameraPositionΔ = MouseToScreenPos() * (ScreenWorldSize1 - ScreenWorldSize2)

ScreenWorldSize = Camera.orthographicSize * new Vector2(Camera.aspect, 1)

CameraPositionΔ = MouseToScreenPos() * (Camera.orthographicSize1 * new Vector2(Camera.aspect, 1) - Camera.orthographicSize2 * new Vector2(Camera.aspect, 1))
CameraPositionΔ = MouseToScreenPos() * new Vector2(Camera.aspect, 1)
* (Camera.orthographicSize1 - Camera.orthographicSize2)
7 changes: 7 additions & 0 deletions Assets/Docs/ZoomIntoPosition.txt.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion Assets/Docs/sources.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
Heatmap_gradient.png - https://www.andrewnoske.com/wiki/Code_-_heatmaps_and_color_gradients
Heatmap_gradient.png (unused) - https://www.andrewnoske.com/wiki/Code_-_heatmaps_and_color_gradients
gdc_2012_released.pdf (unused) - https://directtovideo.wordpress.com/2012/03/15/get-my-slides-from-gdc2012/
(from https://gamedev.stackexchange.com/a/31780)

UI Icons: https://kenney.nl/assets/game-icons

Rasterization algorithm for mouse drawing (CameraController.DrawLine) based on:
https://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm#All_cases

Draggable manipulator for popups (): https://gist.github.com/shanecelis/b6fb3fe8ed5356be1a3aeeb9e7d2c145

Color palettes:
https://lospec.com/palette-list/blackwhitered
https://lospec.com/palette-list/cold-light
Expand Down
Binary file added Assets/FreeFlyCamera.zip
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Assets/GUI/AssemblyReference.asmref
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"reference": "GUID:b21fe87c08fc37a49af51a85b30ebbff"
}
7 changes: 7 additions & 0 deletions Assets/GUI/AssemblyReference.asmref.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
8 changes: 8 additions & 0 deletions Assets/GUI/Icons/Kenney.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/GUI/Icons/Kenney/Modified.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Assets/GUI/Icons/Kenney/Modified/play.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
127 changes: 127 additions & 0 deletions Assets/GUI/Icons/Kenney/Modified/play.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Assets/GUI/Icons/Kenney/arrowDown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit bd44d7a

Please sign in to comment.