itch.io is community of indie game creators and players

Devlogs

Pong Assignment Devlog

Pong
A browser game made in HTML5

Other than the basic features, I have attempted to do the following:

  • getting the ball to reset its position to the centre when lost and start moving in a random direction (within 45 degrees of the horizontal)
  • keeping the paddles from going past the top and bottom walls and ever moving sideways, rotating, or getting stuck
  • display scores for both players
  • have the game run to the end of the match (first to 10 points), then display a winning message identifying the winner and cease gameplay (ball doesn't recentre)
  • have the ball's speed increase after each paddle hit (I failed to get this working)

I did use ChatGPT to understand a forum post. I ended up not using the generated code in my assignment.

Files

  • Build.zip 6 MB
    Jul 30, 2023