/brick-game-car-racing

Javascript version of the classic Brick Game Car Racing.

Primary LanguageJavaScriptMIT LicenseMIT

JavaScript(JS) Version Of The Classic Brick Game Car Racing.

This is my first game in JS, created to pratice my skill.

GitHub top language GitHub language count Repository size GitHub last commit Repository issues GitHub

Creation Steps   |    Game Rules   |    Technologies and Features   |    License

✒️ Creation Steps

  • Game Area
    • Create the main car
    • Create the bricks
    • Create the rival cars
    • Create the movements of:
      • Main car
      • Bricks
      • Rival cars
    • Create random moves from rival cars
    • Create non-passable area
    • Create collision
  • Status Area
    • Create Score
    • Create Hi-Score
    • Create Life
    • Create Level
    • Create Speed
    • Create Goal
    • Show/Update Status
  • Others
    • Restart game after collision
    • Restart the game and reset the status after the game is over
    • Create collision animation
    • Include swipe events to move by Mobile
    • Save Hi-Score
    • Include background
    • Include sounds
    • Game over screen:
      • Score
      • Hi-Score

📘 Game Rules

  • Life:
    • Start with 5 lives.
    • Each collision with a rival car loses 1 life.
    • After 5 lives lost, reset score, level, speed and goal.
  • Hi-Score - Maximum points reached.
  • Goal:
    • Ganha 1 point per car overtaken.
    • 25 points limit.
  • Level - Increases 1 level for every 2x speed increase.
  • Speed ​​- Increases by 1x for every 25 points achieved from the Goal.
  • Score:
    • Level 1 and Speed 1: 50 points per car overtaken.
    • Level 1 and Speed 2: 75 points per car overtaken.
    • Level 2 and Speed 3: 100 points per car overtaken.
    • Level 2 and Speed 4: 125 points per car overtaken.
    • Level 3 and Speed 5: 150 points per car overtaken.

🚀 Technologies and Features

I used features of ECMAScript: Use Strict, String Interpolation, Const and Let Variables. In addition, some design patterns were used, such as Factory, Dependency Injection, Observer, Command.

📝 License

This project is under the MIT license. See the LICENSE for more information.


Made with ♥ by Jean Vidal 👋 Get in touch!