Skip to content

pbedn/python-pong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Classic arcade Pong game written in Python using pyglet library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages