Enclave Phaser Template - mobile template for HTML5 games created using the Phaser 3 game engine.
It is my own point of view on building a structure for an HTML5 game. If you think something can be improved feel free to send the pull request.
Template have Progressive Web App (PWA) support, turned off by default (see
start.jsfile): manifest file for Add to Home Screen feature, Service Worker for offline use, and notifications template.
Web Monetization support is turned on in the template. If you want to implement it you can replace the
monetizationmeta tag in
index.htmlwith your own and determine if
document.monetizationis available in the browser to make changes in the source code.
It's a Phaser-specific Progressive Loading approach, which impoves the initial load time by deferring "anything that's not main menu items" to load in the background as soon as main menu actually appears.
The license in use is CC BY-SA 3.0 - see
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. Coffee works fine too. Cheers!