Skip to content

Conversation

@adis737
Copy link

@adis737 adis737 commented Oct 6, 2025

Add Car Racing Game with Advanced Features

Overview

This PR adds a complete car racing game built with Python and Pygame, featuring modern UI, progressive difficulty scaling, and smooth gameplay mechanics.

Features Added

Core Gameplay

  • Realistic Car Physics: Acceleration, deceleration, friction, and angle-based movement
  • Enemy Car System: AI cars that move straight down and deal damage on collision
  • Power-up System: Speed boosts, health packs, and shields with visual indicators
  • Progressive Difficulty: Level scaling with increased spawn rates and enemy speed
  • Health System: Player health management with visual health bar
Screenshot 2025-10-06 200717

Scoring System

  • Survival: +1 point per frame
  • Enemy Car Passed: +10 points
  • Power-up Collected: +50 points
  • Level Progression: Every 1000 points = new level

Installation & Usage

  1. Install dependencies: pip install pygame
  2. Run the game: python car_racing_game.py
  3. Use WASD/Arrow keys to control your car
  4. Avoid enemy cars and collect power-ups!

Technical Details

  • Resolution: 800x600 pixels
  • FPS: 60 FPS target
  • Car Size: 60x60 pixels with 40x40 hitboxes
  • Road Width: 495 pixels (x=150 to x=645)
  • Memory Usage: Optimized for smooth gameplay
  • Dependencies: Only pygame required

This implementation provides a complete, polished racing game experience with modern UI design and progressive difficulty scaling, making it an excellent addition to the Python Hacktoberfest 2025 collection.

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