• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

EnclaveGames/Enclave-Phaser-Template: Enclave Phaser Template - mobile template ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

EnclaveGames/Enclave-Phaser-Template

开源软件地址:

https://github.com/EnclaveGames/Enclave-Phaser-Template

开源编程语言:

JavaScript 95.7%

开源软件介绍:

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 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!




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap