Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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🚗.
- Host: GitHub
- URL: https://github.com/omanshu209/highway-heist
- Owner: Omanshu209
- License: mit
- Created: 2023-05-05T09:38:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-07T16:16:54.000Z (about 1 year ago)
- Last Synced: 2023-11-07T17:35:18.954Z (about 1 year ago)
- Topics: 2d-game, gui, pygame, python, python3
- Language: Python
- Homepage:
- Size: 2.58 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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**.