Code Monkey home page Code Monkey logo

eptmobile's Introduction

Enclave Phaser Template

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

Enclave Phaser Template

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.

Features:

  • mobile-first, fully responsive (portrait and landscape)
  • boot, preloader, main menu, settings, story, and gameplay states
  • paused and game over screens
  • sound and music management
  • multilanguage support
  • keyboard shortcuts support
  • WebFont plugin using custom fonts
  • custom Button class
  • highscore via localStorage
  • tweens and animations
  • particle emitter
  • shake, flash, and fade camera effects
  • Progressive Web App support
  • Web Monetization enabled

Progressive Web App:

Template 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, and notifications template.

Web Monetization:

Web Monetization support is turned on in the template. If you want to implement it you can replace the monetization meta tag in index.html with your own and determine if document.monetization is available in the browser to make changes in the source code.

License:

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

Kudos:

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!

eptmobile's People

Contributors

laserblue avatar

Watchers

 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.