Git Product home page Git Product logo

bullet-simulation's Introduction

bullet-simulation

Build Status codecov.io

This is a bullet game simulation. The user can click anywhere in the page to launch a bullet. It has a random velocity and a random angle and follow a random trajectory. When this bullet hits a border, a popup with some of its information is shown.

Getting started

npm install
npm start
# go to http://localhost:8080 after a few seconds

Tasks

  • npm run build: bundle the application. The bundle is in the ./build folder
  • npm run doc: generate the documentation of the app. The doc is in the ./docs folder
  • npm run lint: lint the code
  • npm start: start a dev server with live-reload. Go to http://localhost:8080 to view the app
  • npm test: run all tests with coverage report
  • npm run tdd: run tests in watch mode

FAQ

All tests are passing but the coverage is not at 100%

Be sure to install correctly canvas in the project root folder. This library is used when running renderer unit tests. If this library is not installed. These tests will be empty.

bullet-simulation's People

Contributors

hourliert avatar

Watchers

 avatar

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.