Commit graph

4 commits

Author SHA1 Message Date
3e61187065 add an .editorconfig.
and i also added some events for when i want the ball and enemy paddle to move.
2023-05-23 10:38:40 -07:00
604d79e654 the paddle can now scale to the resolution
i added a GameArea class which makes it easier to operate on in coordinates bounds with the GameCoordinate struct wrapper which does calculations for me. the GameArea class also has a normalization system which is how the ScalingManager can teleport items in bounds to relatively the same place when resized.

it took quite a while to get the paddle to teleport. looks like im supposed to modify the position inside IntegrateForces instead of PhysicsProcess which is my mistake.
2023-05-23 00:21:54 -07:00
e1b0fa338f add support for scaling the score ui.
the score ui seems to use the top left corner to start drawing the ui so i have to calculate things differently but this works!
2023-05-22 11:23:44 -07:00
7bae1587d2 add a scene wide scaling manager.
this is so i can scale all the objects to the proper positions and scales when the resolution changes.
2023-05-22 10:41:56 -07:00