Commit graph

7 commits

Author SHA1 Message Date
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
41f7e7b1a0 the walls can now scale to the resolution
but the paddles and score text stay where they are. i plan on adding the paddles and score text moving later.
2023-05-21 19:41:48 -07:00
8ab2f09e62 optimize memory allocations
i made the allocations of objects go down a lot. which is cool :3!
2023-05-21 18:19:05 -07:00
425bf2ad27 make a settings menu and general refactoring
i added more to the main menu, as it has a settings menu now, that stores its files with json. i also changed the font to atkinson hyperlegible and made a BaseMenu class that takes care of the screen scaling for menus.

i also refactored the project folder structure to make it more organized.
2023-05-20 21:42:38 -07:00
f84479e03a make a main menu and score system
i added a main menu scene and a score system that is written in GDScript instead of C# for a change. the WallManager, the thing that detects collisions, calls the score method on the ScoreManager.
2023-05-19 19:42:56 -07:00
9b0ebcefba walls can reset the ball to its starting position
WallManager binds to the BodyEntered signal on the Area2D class and
detects if the body that entered the area is the ball class, and if it
is, it will reset the ball to its starting position. right now, theres
no scoring system. this will be added later.
2023-05-19 00:18:38 -07:00