Skip to content

AbdulBasitNawaz/PongGame-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

PongGame-Python

A simple Ping Pong game developed in python using pygame and trutle graphics.

This is a basic Pong game built using Python. It uses the turtle module for graphics and pygame to control the game’s speed. The project includes two paddles, a moving ball, collision detection, and a simple scoreboard.

Its a two-player gameplay with the following features

1- Smooth ball movement with FPS control 2- Keyboard controls for both paddles 3- Score updates shown at the top of the screen 4- Basic collision handling for walls and paddles

Controls

Player 1:

  • W to Move up
  • S to Move down

Player 2:

  • Up Arrow to Move up
  • Down Arrow to Move down

How to run

Make sure Python is installed.

  1. Install pygame: pip install pygame
  2. Run the script: python pong.py

Summary

The project is simple, easy to understand, and a good starting point for learning how game loops, keyboard input, and collision logic work in Python.

About

A simple Ping Pong game developed in python using pygame and trutle graphics.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages