← BACK

Racing-Game

A thrilling browser-based racing game built with vanilla JavaScript, HTML5 Canvas, and CSS3.

JavaScript ⭐ 0

Legend Asphalt Racing Game

A thrilling browser-based racing game built with vanilla JavaScript, HTML5 Canvas, and CSS3.

Features

  • Responsive gameplay that works on both desktop and mobile devices
  • Smooth car controls with keyboard and touch support
  • Dynamic obstacle generation and increasing difficulty
  • Score tracking with local high score storage
  • Multiple game levels with unique challenges
  • Immersive sound effects
  • Modern UI with responsive design

Controls

  • Desktop: Arrow keys or WASD

    • ←/A: Move left
    • →/D: Move right
    • ↑/W: Accelerate
    • ↓/S: Brake
  • Mobile: Touch controls

    • Swipe left/right to steer

Getting Started

  1. Clone the repository
  2. No build process required - pure HTML, CSS, and JavaScript
  3. Open index.html in a modern web browser
  4. Click "Race Now" to start playing

Game Assets Required

  • engine.mp3: Engine sound effect (looped)
  • crash.mp3: Collision sound effect
  • nitro.mp3: Speed boost sound effect

Technical Details

  • Built with vanilla JavaScript (ES6+)
  • Uses HTML5 Canvas for rendering
  • Responsive design with CSS3
  • Local storage for high score persistence

Credits

© 2024 Legend Asphalt. Created by Ocdeed Codes

License

All rights reserved. For educational purposes only.