Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/omanshu209/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⚠️ using the car🚗.
https://github.com/omanshu209/highway-heist

2d-game gui pygame python python3

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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](https://user-images.githubusercontent.com/114089324/236663273-e3f641e5-ac0e-4ecd-9b53-4f6483a5e706.jpeg)

## 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**.