Skip to content

Pong#1

Merged
math0898 merged 50 commits intomainfrom
pong
Mar 17, 2022
Merged

Pong#1
math0898 merged 50 commits intomainfrom
pong

Conversation

@math0898
Copy link
Copy Markdown
Owner

Fully added and implemented the game of Pong using the Suga Engine.

- Started implementing a score counter for pong.
 - Scores 0, 1 figured out.
 - Still needs digits 2 -> 9, and then multiple digits.
- Added paddles for knocking the ball back and forth.
- Added score digits.
Need Draw Test Points method for dev testing.
Needed HitBox test not points test
- Fixed the alignment issues present with the paddle HitBox and rendered result.
- Now collidable objects must return a name. This may be refactored in the future.
- The ball has been added to the game. Still needs collision physics.
DrawHitBox changes
- Can now partially move the paddle. This needs a velocity cap, boundary checking, and inertia.
- Now the ball will bounce from the top and bottom parts of the map.
- Paddles can't go off the screen anymore.
- Added serving method.
- Added scoring.
- Added goal.
- Weird bug that collision ain't being detected with paddles.
- Missing Audio, needs some game engine stuff for that.
- AI difficulty levels.
- Pause Menu.
- Score > 10
- Main Menu.
@math0898 math0898 added documentation Improvements or additions to documentation enhancement New feature or request labels Jan 31, 2022
@math0898 math0898 self-assigned this Jan 31, 2022
- TODO: Fix BigPixel alignment issues.
- Now draws big pixels seperated by 10 not 1.
- No longer offset by 0.
- Changes done to paddle to fix a weird clipping bug.
- DividingLine now has the same dark gray color on pause.
- Pause menu now has a couple of rectangles.
- Swapped order of draw listeners.
- Fixed the infrequent concurrent modification error given by paintImmediately().
- Removed temporary fix for concurrent modification error.
- Added hardcoded letters o, n, and c.
- Added continue text to the pause menu.
- Changed Continue.png to improve readability.
- Added Restart.png and added it to the pause screen.
- Added icons to Pause Menu buttons.
- Isolated the main game into a scene for preperation of creating a main menu.
getMouseListener()
Fully implemented the pause menu for pong. Still need to add in settings and the Main Menu.
- Fixed a bug where main wasn't specified in the jar manifest.
- Fixed a bug which prevent scores with multiple digits lining up properly.
Testing if more merge conflicts will arise.
- I've begun implementing the Main Menu for the game Pong.
- Changed default loaded scene from 'Main Game' to 'Main Menu'.
- Created a few assets to be used in the Main Menu.
- Started figuring out Main Menu design.
Scenes have game reference
- Pressing the esc key will load the game.
- Most things are reimplemented and functional.
- Now the PauseScreen drawer only appears in the MainGame scene where it belongs.
- Changed scenes to accept enum key values instead of int key values for input.
- Added a few keys to KeyValues, and the toEnum() method.
- Made the processInput() implementation by PongGame the default for Game.
@math0898 math0898 merged commit 6b53f9c into main Mar 17, 2022
@math0898 math0898 deleted the pong branch March 17, 2022 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant