Skip to content

fasih-nasir/car-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

14 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš— Car Game

Welcome to the Traffic Race Game! This interactive and engaging game allows players to navigate a car through a busy road, dodge obstacles, and collect coins. Here's everything you need to know about this exciting project.

image

๐ŸŽฎ Description

The Traffic Race Game is a browser-based game crafted using HTML, CSS, and JavaScript. It features:

  • Interactive Gameplay: Use arrow keys or on-screen controls to maneuver the car.
  • Dynamic Game Speed: Customize the speed of the game to match your play style.
  • Car Color Customization: Choose your preferred car color for a personalized touch.
  • Coin Collection: Gather coins to boost your score as you advance.
  • Responsive Design: Enjoy seamless gameplay on both large screens and mobile devices.

๐ŸŒŸ Key Features

  • Customizable Game Speed: Adjust the game pace to suit your preference. โฉ
  • Car Color Selection: Pick your favorite color for the car. ๐ŸŽจ
  • Mute Audio Option: Toggle sound effects on or off for a tailored experience. ๐Ÿ”Š๐Ÿšซ
  • Real-time Score Tracking: Monitor your score and track progress. ๐Ÿ“ˆ
  • Responsive Controls: Use keyboard arrows or on-screen buttons for easy navigation. ๐Ÿ“ฑ๐Ÿ’ป

image

๐Ÿš€ Getting Started

Starting the Game

Click the "Start" button to begin. The game will commence with an engaging audio effect, enhancing your immersive experience. ๐ŸŽต

Controls

  • Arrow Right Key: Move the car to the right.
  • Arrow Left Key: Move the car to the left.
  • Arrow Up Key: Accelerate the car forward.
  • Arrow Down Key: Move the car backward.

On mobile screens, use the on-screen arrow buttons for control. ๐Ÿ“ฒ

๐Ÿ“ˆ Score and Coins

  • Score Display: Your score is updated in real-time at the top left corner of the screen.
  • Coin Collection: Collecting more coins increases your score and provides immediate feedback on performance. ๐Ÿ’ฐ

๐Ÿ† Car Crash and Final Score

When the car crashes, your final score is displayed. A sound effect enhances the crash experience, motivating you to improve and beat your high score. ๐Ÿš—๐Ÿ’ฅ

image

๐ŸŒ Live Demo

Play the game live here.

๐Ÿ’ป Technologies Used

  • HTML
  • CSS
  • JavaScript
  • Bootstrap

๐ŸŽจ Design and Theme

  • Background: Radial-gradient from rgba(69,69,69,1) to rgba(37,36,36,1).
  • Color Scheme: Matches the theme of the game for a cohesive look.

๐Ÿ”— Mobile View

image

๐Ÿ”— Links

๐ŸŒ Connect with Me


Thank you for checking out my Traffic Race Game! ๐ŸŽ‰ Your feedback is invaluable and helps in refining future projects. Enjoy the game and keep coding! ๐Ÿš€