This is a car 🚗 based game made with pygame. You have to drive car and dodge to stay alive.
The aim of this game is to understand the working pygame module and it's purpose is that you can play it for fun and entertainment.
Here you have to drive your car 🚗 on the highway. Some enemies cars 🚗 are coming from the top of the screen you have to dodge your car to prevent from collision 💥. The speed of enemies cars will also increase. So you have to survive as long as you can. On top left of the screen you can see how much coin you have collected. Under your car you can see the car's health. There is also a garage screen where you can buy new vehicles and equip according to your choice.
-
- You can collect coins.
- Use them to buy new vehicles.
- Collect heart to increase vehicles's health.
- Install the python Download python
- Windows Type/Paste this on command prompt
pip install -r requirements.txt
- All other modules that were used have already come with python.
- You can just download this code as zip or clone it by clicking on the green color code button.
- Assets - Contains all the images that have used in this game.
- Images - Contains screenshots of the game for README file
- Related_Files
- A database(MainDB.db) file to save the coins data and how many cars have bought and which car is currently equiped.
- Python file(garage_menu.py) contains the code for the garage screen in the game.
- Python file(main_game.py) contains the code of the main game.
- Sounds - Contains all the sounds like button click etc.
- dodge_charger.py contains the code of the main menu.
- README.md file - For explanation
- requirements.txt - module you have to download to run the game.
- Click on the dodge_charger.py file
- Click on the dodge_charger.exe file
- And Enjoy 🚀
- If you don't collect heart then the speed of enemy's car won't increase. 👍
Mudit