Skip to content

Arumparithi42/Car-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Car Game

A simple car game using Python and Pygame, where a player should avoid hitting incoming cars and survive as long as possible.

Game Rules :

  1. You have to play this game as long as you can survive without hitting the incoming cars.
  2. The fly count increases periodically.
  3. You cannot activate flying mode when the fly count is 0.
  4. While in flying mode, incoming cars are not visible and lasts only for short duration.

How to play

  1. Click Left arrow button to move the car leftwards.
  2. Click Right arrow button to move the car rightwards.
  3. Click Up arrow button to move the car upwards.
  4. Click Down arrow button to move the car downwards.
  5. Click space bar to activate flying mode (Cannot be activated when fly count is 0).

Requirements

  • Python 3.x
  • Pygame module (pip install pygame)

Run the game (in VS Code)

python car_game.py

Features

  • Simple keyboard controls
  • Flying mode
  • Increasing difficulty over time and score
  • Built using Pygame

Future improvements

  • Blending with GUI(Tkinter)
  • Adding extra cars and levels

This project is licensed under the MIT License.

About

A simple car game built using Python and Pygame.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages