项目作者: henriquelalves

项目描述 :
A Phaser project boilerplate with some built-in functionality.
高级语言: JavaScript
项目地址: git://github.com/henriquelalves/phaser-boilerplate.git
创建时间: 2017-09-05T19:59:39Z
项目社区:https://github.com/henriquelalves/phaser-boilerplate

开源协议:MIT License

下载


Phaser Boilerplate

A Phaser project boilerplate using Node, some assets loading automation, and dynamic screen resolution settings.

Instructions

  1. Clone this repo (git clone [this repo address])
  2. Install node modules (npm install)
  3. Change BOILERPLATE project name on index.html and package.json.
  4. Change screen resolution settings on boot.js state.
  5. ???
  6. Profit!

How to use

  • Assets loading: This is done automatically by the use of jsonfy.py; it gets everything under the assets/ folder on a .json file-tree structure, and the preloader.js state gets this json to load everything without the need of manually loading each and every file. The default boilerplate only loads .png (you can load spritesheets by naming them “spritesheet”; check preloader.js for more information), but you can easily add more extensions changing the source.
  • Game Resolution: The solution I found to get the most of different devices resolutions was to use this Phaser tutorial.
  • Testing the game: Just npm start!

Credits