Skip to content

Latest commit

 

History

History
55 lines (41 loc) · 1.39 KB

File metadata and controls

55 lines (41 loc) · 1.39 KB

PONG

update 2025 - upgraded to work with pyglet 2.1

Files:

  • game.py - procedural version
  • game_oop.py - object oriented version

Initial design ideas for this game are from Trevor Appleton procedural pong and noobtuts C++ pong tutorial.

Game design stages:

Stage 1 - Create a blank window
Stage 2 - Draw the court, the paddles and the ball
Stage 3 - Move the ball around
Stage 4 - Check for a collision with all walls
Stage 5 - Move the players paddle
Stage 6 - Move the computers paddle with simple AI
Stage 7 - Add a scoring system
Stage 8 - Add sounds
Stage 9 - Resize window
Stage 10 - Add game menu
Stage 11 - Make game easier by adding a difficulty levels 

menu

game


Features implemented:

  • movement control
  • collision detection
  • scoring
  • artificial intelligence
  • add sounds
  • game menu
  • resizing window (only in procedural version)
  • add handicap for player or ai difficulty levels
  • add new OOP version

Sounds are from opengameart.org

To make them work install AVBin from AVBin-Page. Or turn them off inside the script.