This is a minimal quick-start boilerplate for game jams and prototyping.
Functionality includes:
- Simple Asset preloader (Images and Sounds)
- Included bitmap font and basic function to draw text with it
- Several utility functions for drawing
- Automatic canvas sizing/positioning
- Simple Update/Render gameloop with timing
- Basic Audio system for music and sounds
- Basic Keyboard Input handler
- Enough comments to get acquainted with the project
Clone the git repository and run either yarn install or npm install in the project base directory to download dependencies.
To run your game in the browser, run npm start in the root project directory.
Run gulp build in the root directory to output a zip containing an index.html, bundle.js and the assets you included in your game.
- Separated updates from render
- Corrected some issues with timing