generator-phaser-mobile

A Yeoman generator to generate HTML5 games with phaser.js that are fully compatible with mobile full screen mode

Usage no npm install needed!

<script type="module">
  import generatorPhaserMobile from 'https://cdn.skypack.dev/generator-phaser-mobile';
</script>

README

generator-phaser-mobile

A Yeoman generator to generate HTML5 games with [phaser] that are fully compatible with mobile full screen mode(http://phaser.io/).

INSTRUCTIONS

  • Install Node.js

  • Install the required npm modules by issuing these commands:

    npm install -g yo generator-phaser-mobile

  • 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-mobile

  • Run a local development server (livereload enabled) with this command:

    grunt

  • Package your game (i.e. minify css, html and js) with:

    grunt dist

TODO

  • Add Grunt tasks for "mobile" deployment

    • See Denis' shell & debug tasks in Gruntfile.coffee for Tizen devices in previous releases/commits.
    • Add Grunt task for CocoonJS.
    • Add Grunt task for Ejecta (will it blend)?
  • Think about a task to update Phaser

    • bower or git submodule? (Phaser repo is quite big)
    • grunt-curl? (grab raw phaser.js file from github ...)

CREDITS