Pong DevLog


This pong game was made for an University assignment.

The game includes the basics:

  1. 2 players controlled by separate keyboard input
  2. A ball that starts in the middle of the screen and moves in a random  direction at the same speed no matter what direction
  3. When the ball hits a wall or paddle it bounces back at the correct reflected angle without losing speed

Additional Features include:

  1. When the ball is lost off screen, it resets to the middle of the screen
  2. Paddles can not move past the top or bottom walls
  3. Score UI for each player
  4. Gameplay logic that ends the game when a player reaches 10 points and displays the  winner
  5. A title screen with the choice of a 1-player or 2-player game with an AI second player for the 1-player option 
  6. When the game ends the player  can choose to go back to the main menu and select a game mode again
  7. Added sound effects for when the ball hits a wall, the ball hits a paddle, a point is scored, a player wins, the AI wins
  8. The ball slowly increases in speed each time it bounces, resetting to its initial speed  when it is lost off screen

All the art was created myself with the audio sounds sourced from Freesound.org.

  1. Ball-Wall: https://freesound.org/people/LittleRobotSoundFactory/sounds/270322/
  2. Ball-Paddle: https://freesound.org/people/LittleRobotSoundFactory/sounds/270321/
  3. Point Scored: https://freesound.org/people/LittleRobotSoundFactory/sounds/270303/
  4. Player Wins: https://freesound.org/people/LittleRobotSoundFactory/sounds/270333/
  5. Ai Wins: https://freesound.org/people/wolderado/sounds/415096/

Some of the scripts used in the game were based of scripts provided by the Univesity. 

Leave a comment

Log in with itch.io to leave a comment.