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.
npm install
npm start
# go to http://localhost:8080 after a few seconds
npm run build
: bundle the application. The bundle is in the./build
foldernpm run doc
: generate the documentation of the app. The doc is in the./docs
foldernpm run lint
: lint the codenpm start
: start a dev server with live-reload. Go tohttp://localhost:8080
to view the appnpm test
: run all tests with coverage reportnpm run tdd
: run tests in watch mode
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.