Git Product home page Git Product logo

melon's Introduction

melonJS boilerplate

features :

  • video autoscaling
  • mobile optimized HTML/CSS
  • swiping disabled on iOS devices
  • debug Panel (if #debug)
  • default icons
  • distribution build
  • standalone build for desktop operating systems

To run distribution

To build, be sure you have node 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 Mac OS X:

open ./bin/Electron.app

Running the desktop release on Linux:

./bin/electon

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 - 2015 Olivier Biot, Jason Oster, Aaron McLeod melonJS is licensed under the MIT License

melon's People

Contributors

marczykm avatar

Watchers

James Cloos avatar  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.