Enclave Phaser Template - a mobile template for HTML5 games created using the Phaser game engine.
JavaScript HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
img PWA Mar 19, 2018
sfx working music example Jun 3, 2016
src PWA Mar 19, 2018
.gitignore Phaser updated to 2.6.2 Nov 6, 2016
LICENSE.txt license updated to CC BY-SA 3.0 Jun 23, 2017
README.md PWA Mar 19, 2018
ept.webmanifest PWA Mar 19, 2018
index.html PWA Mar 19, 2018


Enclave Phaser Template

Fully mobile responsive, portrait and landscape compatible template for HTML5 games written using the Phaser game engine. See it online at: http://enclavegames.github.io/Enclave-Phaser-Template/

Enclave Phaser Template

It is my own point of view on building a structure for HTML5 games. If you think something can be done better feel free to send the pull request.


  • fully responsive
  • main menu with buttons
  • story and achievements screens
  • audio management
  • highscore management
  • paused and game over states
  • localStorage Phaser plugin
  • tweens and animations
  • particle emitters
  • camera effects: shake, flash, fade


The template now have Progressive Web App (PWA) support, turned off by default (see enablePWA variable in start.js file):

  • manifest file for Add to Home Screen feature
  • Service Worker for offline use
  • notifications template


The license in use is CC BY-SA 3.0 - see License.txt for details.

Beer time!

Buy me a beer!

If you like what I'm doing and gonna use the template in your project, or just appreciate sharing the code in the open, you can say "thank you" by buying me a beer. Cheers!