Skip to content

Omanshu209/Highway-Heist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Highway Heist !

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

Screenshot_2023-05-07-12-40-46-737

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 game files and run the game by running the following command in the directory where the game files are located:

python3 main.py

How to Play

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

Files

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.

Credits

This game was developed by Omanshu.

About

This is a game developed using the Pygame library. The objective of the game is to collect coins while avoiding the sign boards using the car.

Topics

Resources

License

Stars

Watchers

Forks

Languages