Creation Steps | Game Rules | Technologies and Features | License
- 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
- 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.
- ECMAScript
- VS Code with EditorConfig and ESLint
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
.
This project is under the MIT license. See the LICENSE for more information.
Made with ♥ by Jean Vidal 👋 Get in touch!