KIT109 Pong Update
Features that I was able to implement into the game are;
1. Ball starts moving in a random direction (either left or right can happen) at approximately similar speeds no matter the direction.
2. When the ball hits a wall it bounces back at the correct angle (more on this later) and does not lose speed over time (and in fact increases in speed with every bounce).
3. When the ball hits a paddle it bounces back at the correct reflected angle.
4. Paddles move independently with different keys (W and S for player one and UP and DOWN arrow keys for player 2). They never move sideways, rotate or get stuck.
5. There are graphics for the ball, paddles, walls and center line.
6. When lost, the ball resets to the centre, and starts moving in a random direction again, either left or right, at approximately the same speed, no matter the direction.
7. Paddles cannot go past the walls of the screen.
8. Clearly legible scores for both players 1 and 2 are available. Both update correctly when a player scores a goal on the other.
9. Game ends when either player scores 10 points and a Winners message is displayed to the player who won the match.
Kit109 Assignment 1 - Pong
Status | Prototype |
Author | Absolutelii |
More posts
- KIT109 PongMar 08, 2024
Leave a comment
Log in with itch.io to leave a comment.