- Name: Fa-lin Roy Wang
- Date: April 3, 2019
Option 2: Building a Pong game with the Pyglet library
The project is about rewriting a 1-player Pong game. The change I made here is changing the concept to hit the water ballons wall with the Brick! And it also shows updating scores when playing the game, also after fail or exit the game. The water ballon wall is 6-deep floor-to-ceiling barricade of ballons.
future==0.17.1
pyglet==1.3.2
To run project locally, follow these steps to setup your environment.
-
Create a folder for the project
-
Move to the project folder, create and activate a virtual environment:
$> virtualenv env $> source env/bin/activate
-
Clone the repository:
$> git clone https://github.com/falinwang/project4-507.git $> cd project4-507
-
Install requirements:
$> pip install -r 'requirements.txt'
-
Run the application:
$> python SI507_project4.py
Use your keyboard to control the paddle:
- W: up
- S: down
- P: Pause the game
- R: Reset the game
To quit the game, press Q or Esc.