https://github.com/franciscoknebel/platformerexample
A platformer game example, built with MelonJS.
https://github.com/franciscoknebel/platformerexample
melonjs platformer
Last synced: 10 months ago
JSON representation
A platformer game example, built with MelonJS.
- Host: GitHub
- URL: https://github.com/franciscoknebel/platformerexample
- Owner: FranciscoKnebel
- License: mit
- Created: 2017-04-22T19:09:22.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-22T20:20:19.000Z (over 9 years ago)
- Last Synced: 2025-10-14T04:05:34.583Z (10 months ago)
- Topics: melonjs, platformer
- Language: JavaScript
- Homepage: https://franciscoknebel.github.io/platformerExample
- Size: 5.42 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
melonJS platformer example, built from boilerplate
-------------------------------------------------------------------------------
Example from http://melonjs.github.io/tutorial-platformer/
## To run distribution
To build, be sure you have [node](http://nodejs.org) installed. Clone the project:
git clone https://github.com/melonjs/boilerplate.git
Then in the cloned directory, simply run:
npm install
You must also have `grunt-cli` installed globally:
npm install -g grunt-cli
Running the game:
grunt serve
And you will have the boilerplate example running on http://localhost:8000
## Building Release Versions
To build:
grunt
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:
grunt dist
Running the desktop release on Windows:
.\bin\electron.exe
Running the desktop release on macOS:
open ./bin/Electron.app
Running the desktop release on Linux:
./bin/electron
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.
-------------------------------------------------------------------------------