Skip to content
Go to file

melonJS boilerplate

Sample project featuring :

  • WebGL1 as default renderer
  • Video autoscaling
  • Mobile optimized HTML/CSS
  • Swiping disabled on iOS devices
  • Debug Panel (if #debug)
  • Default icons
  • asset file (resources.js) automatic generation
  • distribution build
  • Standalone build for desktop operating systems
  • ES5 & ES6 shim for non compliant browser (see index.html)

To run distribution

To build, be sure you have node installed. Clone the project:

git clone

Then in the cloned directory, simply run:

[sudo] npm install

Running the game:

npm run serve

And you will have the boilerplate example running on http://localhost:8000

Building Release Versions

To build:

npm run build

This will create a build directory containing the files that can be uploaded to a server, or packaged into a mobile app.

Building a standalone desktop release:

npm run dist

Running the desktop release on Windows:


Running the desktop release on macOS:

open ./bin/

Running the desktop release on Linux:


Note that you may have to edit the file Gruntfile.js if you need to better dictate the order your files load in. Note how by default the game.js and resources.js are specified in a specific order.

Copyright (C) 2011 - 2020 Olivier Biot melonJS is licensed under the MIT License


a melonJS boilerplate to create new projects




No releases published
You can’t perform that action at this time.