Skip to content
프로젝트

EnclaveGames/Enclave-Phaser-Template

GitHub에서 보기

소개

Enclave Phaser Template - mobile template for web games created using the Phaser 4 game engine.

게임 및 에뮬레이션

이 수치를 측정하는 방법

What you can do

  • 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

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Enclave Phaser Template

Fully mobile responsive, portrait and landscape compatible template for web games written using the Phaser 4 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 a web 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 Loading

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.

Progressive Loading:

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.

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!

관련 프로젝트 살펴보기

불러오는 중…