Skip to content

Add Car Racing Game with pygame#265

Open
adis737 wants to merge 1 commit intoitsmedeepak:mainfrom
adis737:car-racing-game
Open

Add Car Racing Game with pygame#265
adis737 wants to merge 1 commit intoitsmedeepak:mainfrom
adis737:car-racing-game

Conversation

@adis737
Copy link

@adis737 adis737 commented Oct 11, 2025

Add Car Racing Game

Description

Complete car racing game built with Python and Pygame featuring player-controlled car, enemy AI, power-ups, and progressive difficulty.

Features

  • Player car with WASD/Arrow key controls
  • Enemy cars with collision detection
  • Power-ups (Speed Boost, Health, Shield)
  • Scoring system and level progression
  • Modern UI with health/speed indicators

Files Added

  • Car_racing_game/car_racing_game.py - Main game
  • Car_racing_game/README.md - Documentation
  • Car_racing_game/requirements.txt - Dependencies
  • Car_racing_game/assets/ - Car sprites (4 images)

Installation

pip install -r requirements.txt
python car_racing_game.py

Controls

  • Movement: WASD/Arrow Keys
  • Quit: ESC
  • Restart: SPACE (after game over)

- Implemented a complete car racing game with pygame
- Added player car with WASD/Arrow key controls
- Added enemy cars with AI movement
- Added power-ups (speed boost, health, shield)
- Added collision detection and scoring system
- Added level progression with increasing difficulty
- Added UI with health bar, speed indicator, and score display
- Fixed AttributeError in PowerUp and Obstacle draw methods
- Included game assets (car sprites) and requirements.txt
- Added comprehensive README with installation and gameplay instructions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant