This is a game developed using the Pygame
library. The objective of the game is to collect coins while avoiding the sign boards
. The car can be controlled using the arrow keys[which are available on the screen(It works on screen touch and not using a keyboard)]. The score increases with each coin collected. Each player has 3 lives
and he/she loses 1 live after colliding with a sign board
(if the player collides with 3 sign boards, the game ends).
Before running the game, Pygame
library needs to be installed. Pygame can be installed using the following command:
pip install pygame==2.0.1
After Pygame is installed, download the game files and run the game by running the following command in the directory where the game files are located:
python3 main.py
Press the left arrow button to move the car to the left.
Press the right arrow button to move the car to the right.
Press the button which looks like a break to stop the car.
Collect as many coins as possible while avoiding the sign boards. The score will increase with each coin collected.
Each player has 3 lives and he/she loses 1 live after colliding with a sign board (if the player collides with 3 sign boards, the game ends).
main.py
: This is the main game file.
requirements.txt
: This is the requirements file.
assets/images
: This directory contains the images used in the game.
assets/audios
: This directory contains the audio files used in the game.
assets/HighScore.txt
: This file contains the high score achieved in the game.
This game was developed by Omanshu.