As I mentioned in my obligatory “I’m in” I decided to make my game with HTML5 and have finally chosen as engine: Phaser.
After several days trying to create a good environment I found the perfect solution and will share as it serves someone else:
INSTRUCTIONS
– Install Node.js
– Install the required npm modules by issuing these commands:
npm install -g yo generator-phaser
– Create a new directory for your game:
Unix/OSX :
mkdir ~/Desktop/mygame && cd $_
Windows :mkdir %USERPROFILE%\Desktop\mygame && cd %USERPROFILE%\Desktop\mygame
– Invoke the generator:
yo phaser
– Run a local development server (livereload enabled) with this command:
grunt
– Package your game (i.e. minify css, html and js) with:
grunt dist
Link to Yeoman: http://yeoman.io/
Link to Phaser generator: https://npmjs.org/package/generator-phaser
There are also many other generators and secure projects for other game engines, you can look here:
https://npmjs.org/
Tags: html5, javascript