A downloadable game

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).

[NOTE : A new feature, AI mode(Random Forest Classifier), has been introduced and is still in development phase]

Download

Download
HighwayHeist-main.zip 2.4 MB

Install instructions

Installation

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 zip file and extract the game files from it. Run the game by running the following command in the directory where the game files are located:

python3 main.py

------------------------------------

Installation - AI mode enabled game(Still in development phase)

If you want to play the all new AI mode, which is still in development phase, then you have to install the scikit-learn and pandas library also:

pip install -r requirements.txt

OR

pip install scikit-learn==1.0 pandas==1.3.3 pygame==2.0.1

Then run the following command:

python3 main_AI.py

Leave a comment

Log in with itch.io to leave a comment.