Skip to content

lyr-ast/2d-car-racer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2D Car Racer Game

Welcome to the 2D Car Racer game, where you navigate a car through an endless road, avoiding obstacles and earning points. The game features a simple interface with controls for moving the car left and right while dodging incoming obstacles.


🚀 Features

  • Simple Controls: Move the car left and right using the arrow keys.
  • Obstacle Avoidance: Dodge obstacles that spawn randomly on the road.
  • Score Tracking: Earn points as you avoid obstacles. The score increases over time.
  • Game Over Screen: The game ends when the car collides with an obstacle or goes off-road.

🕹️ Controls

  • Arrow Left: Move the car left.
  • Arrow Right: Move the car right.
  • Enter: Start or restart the game.
  • Escape: Exit the game.

🎮 How to Play

  1. Start the Game: Press Enter on the main menu to start playing.
  2. Move the Car: Use the left and right arrow keys to move the car on the road.
  3. Avoid Obstacles: Dodge obstacles that appear randomly on the road.
  4. Game Over: If the car collides with an obstacle or goes off the road, the game ends, and you can restart by pressing Enter.

🛠️ Technologies Used

  • Python: The game is developed using Python and the Pygame library.
  • Pygame: Used for rendering graphics, handling user input, and playing background music.

Enjoy playing the 2D Car Racer! 🚗💨

About

a simple car game made with pygame

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages