Assignment 1 - Pong


I went with the physics based approach. This took a little bit of learning how the prevent unintended behavior (like rotating bats) but I got there in the end! I'm still not super happy with the ball physics behaviour.

Features added:
- AI for bat control (used when playing single player)
- 'AI Battle' mode to have two AI controlled bats face each other (completely ridiculous I'm sorry lol)
- Title screen with options for 1 player, 2 player or AI Battle
- Ball increases in speed (using a higher than 1 bounciness Physics Material off the bats), maxing out at a set value
- Audio, separate sounds for ball hitting wall, bat or leaving game bounds (player scoring)

Assets used:
- Font: Pixel Splitter by Manfried Klein - https://www.dafont.com/pixelsplitter.font
- Art: All made by me in Photoshop
- Audio: All made by me in Audacity


Things I would like to do:
- Improve the AI. Make it calculate the trajectory and try smart plays with the ball. The 'jittering' could also be fixed by allowing a small region of Y axis that the bat will not adjust it's position.
- Fix the ball physics, it is currently a bit boring, the bouncing needs improvement. As does the way the ball bounces from the bat, it should be based on where the ball hits compared to the center of the bat
- Comment my code better (and refactor it a bit), this kind of went out the window as the deadline approached lol

Leave a comment

Log in with itch.io to leave a comment.