Features (for grading purposes)


Features present in this game includes:

  • Start screen includes two game modes, one to play against a friend, one using W/S keys and the other using the arrow keys, and the other game mode against AI, where the player can use either W/S or the arrow keys.
  • Ball moves in a random direction at a set speed, and will increase in speed until a player scores, at which point it returns to the center. If direction by chance is exactly horizontal or vertical, it will correct its trajectory on collision. Over time the trajectory of the ball will round out to a 45 degree angle once it reaches its max speed.
  • Ball will collide with paddles and walls and will be reflected in the correct x or y axis accordingly.
  • Paddles move exclusively up and down, and will not pass through the walls (with the exception of the AI paddle when losing by at least 5)
  • Scores for each player are clearly shown in the "background" of the game, and when a players score reaches 10, the game ends prompting a play again screen to select the next game mode.
  • Sound effects exist for the paddle collision, wall collision and point scored, as well as when game begins.
  • AI paddle will change in behavior and appearance depending on how much it is losing  (3 or more faster, more frantic, turns red / 5 or more becomes bigger and moves back / 7 intimidating eyes and even faster)

Resources:

  • https://pro.sfxr.me used to make all sound effects
  • "FFF Forward" free font by Fonts for Flash
  • All sprites made by me

Files

Pong.zip Play in browser
Mar 08, 2023

Leave a comment

Log in with itch.io to leave a comment.