Ping pong game for two players with score tracking made with Python and Pygame libary.
Ping pong game for two players with score tracking made with Python and Pygame libary.
Before you and your friends can play Ping Pong, there are few step, you need to do, so you are able to run it on your computer.
First you need to have Python installed on your OS. You can download Python from its offcial website python.org and install it.
After you have successfully installed python, you need to clone this repo to your computer. You can do this by clicking the code button and copy the link.
After that, create a directory where you want to clone this app cd into this directory. Then write this line into terminal line:
git clone https://github.com/Trebroon/ping-pong-game.git
When repository is cloned to direcotry, run this code in your terminal to install all required libaries:
pip install -r requirements.txt
With Python and Pygame installed and repository cloned in our computer, we can write this line into the terminal and start playing the game:
python3 main.py
Player One controls - Press W for Up, Press S for Down
Player Two controls - Press Up Arrow for Up, Press Down Arrow for Down
To Start a game - Press SpaceBar
To Restart - Press R
- Implement an AI opponent
- Make application an executable
Created by Norbert Leipold - feel free to contact me