Play a game or two on this homemade Atari arkanoid/breakout clone
- Paddle and a ball where the ball can destroy the bricks in a wall
- Simple level and scoring system
- 5 lives initially and 1 life is lost when the ball touches the bottom of the screen
- Game is played with the arrow keys, it ends when lives reach 0
- Created on Python 3.8
- Created using Python library - PyGame
- Locate the appropriate version of Python here:
-
Add the file to a known directory of your choice and execute the file. ((C:) drive most accessible)
-
Run the command prompt and access the directory you chose in the previous step.
-
Type
python
in to the terminal to check your version.
- Locate the appropriate version of PyGame here:
- Copy the PyGame file into the same directory as the Arkanoid game and access this directory in the command prompt, then enter:
python3 -m pip install pygame
Access the directory of the Arkanoid file through the command prompt and simply execute by typing:
python3 arkanoid.py
-
Load python files into a python IDE (easiest with PyCharm) with pygame installed
-
To start the game, run:
arkanoid.py
See the relevant files for more detailed annotations. My project is made up of:
- arkanoid.py - Executable code to run the game is located here
- images - Contains the png images used as the paddle, ball and bricks.
You can exit the game by clicking the 'X' button at the top right, or you can press 'Q' at anytime.
When building this game I wasn't familar with any means of unit-testing PyGame, and so I resorted to manual testing. Through a relatively laborious process I ironed out as many bugs as I could find. I was sure the game was solid.