Skip to content

MichealAPI/F1-Race-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

F1 Race Game

Description

The F1 Race Game is a simple reaction-based game. It challenges players to achieve the best reaction time by tapping on the screen as soon as the race lights turn green. It's a fun way to test and improve your reflexes!

Features

  • Responsive web design using Bootstrap 5.
  • Interactive traffic light system to indicate when to tap.
  • Displays your reaction time after each attempt.
  • Step-by-step tutorial to help users understand the gameplay.
  • Optimized for both desktop and mobile devices.

How to Play?

  1. Press the "I'm ready!" button when you are prepared to start.
  2. Wait for the race lights to turn green.
  3. As soon as you see the green light, tap anywhere on the screen as fast as you can!
  4. Your reaction time will be displayed.
  5. Aim to improve your best reaction time and have fun!

Requirements

The game requires no installation. Simply open the index.html file in your browser or deploy it on a web server to play.

Built with:

  • HTML5
  • CSS (Custom styles and Bootstrap 5.3.3)
  • JavaScript

Project File Structure

  • HTML: The main game interface is built using the index.html file.
  • CSS: Custom styles are added via static/css/index.css.
  • JavaScript: The game logic and traffic light system are implemented in static/js/trafficlight.js and static/js/game.js.

Setup Instructions

  1. Clone the repository:
    git clone https://github.com/MichealAPI/F1-Race-Game.git
  2. Navigate to the project directory:
    cd f1-race-game
  3. Open the index.html file in your browser:
    open index.html

You can optionally deploy this project to your web server or a platform like Netlify or GitHub Pages.

External Resources

The project uses external libraries to enhance layout and responsiveness:

Credits

  • Developer: [Your Name/Team Name]
  • Design inspiration: Based on F1 race timing systems.

License

This project is licensed under the MIT License.


Have fun and aim for your best reaction time!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published