Coder Social home page Coder Social logo

jvidaln / brick-game-car-racing Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 1.79 MB

Javascript version of the classic Brick Game Car Racing.

Home Page: https://jvidaln.github.io/brick-game-car-racing/

License: MIT License

CSS 7.67% JavaScript 84.77% HTML 7.56%
javascript javascript-game ecmascript html5-canvas brick-game car-racing car-racing-game design-patterns portfolio

brick-game-car-racing's Introduction

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!

brick-game-car-racing's People

Contributors

jvidaln avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

sandipwalke

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.