For this assignment I opted to use simple 2D sprite objects, with an image made in Paint 3D for the centre line. The features that I've implemented are as follows:
The basics:
- A ball spawns in the centre of the screen, picks a random direction to move and then bounces off the walls and paddles until one player misses.
Additional functionality:
- When the ball leaves the screen, it resets to the centre and picks a new direction to start moving.
- The paddles collide with the top and bottom walls, preventing them from leaving the scene.
- There is a score display for each player, updating (for the appropriate player) whenever the ball leaves the screen.
- When a player reaches 10 points/goals, the game stops and a "Player X wins" message is shown.
- The end of game screen has a 'Play again' button, allowing for endless fun.
No generative AI was used for this assignment.
Leave a comment
Log in with your itch.io account to leave a comment.