项目作者: DanMonroe

项目描述 :
ember-phaser makes it easier to create games using Phaser3 within your ember app.
高级语言: JavaScript
项目地址: git://github.com/DanMonroe/ember-phaser.git
创建时间: 2020-02-10T14:28:52Z
项目社区:https://github.com/DanMonroe/ember-phaser

开源协议:MIT License

下载


ember-phaser

An ember addon for embedding the Phaser3 game framework.

This addon makes it easier for you to inject the Phaser3 game framework into your Ember application.

Making amazing cross-platform games is now easier than it’s ever been thanks to Phaser, an Open Source JavaScript game development library developed by Richard Davey and his team at Photonstorm. Games developed with Phaser can be played on any (modern) web browser, and can also be turned into native phone apps.

Phaser Documentation

Compatibility

  • Ember.js v3.8 or above
  • Ember CLI v2.13 or above
  • Node.js v8 or above

Installation

Installation is easy!

  1. ember install ember-phaser

Usage

Quickstart

1. Install ember-phaser

  1. ember install ember-phaser

2. Create a new Phaser scene

  1. ember generate phaser-scene test-scene

3. Insert the EmberPhase component into one of your templates. Pass in the Phaser config json object and a reference to an Ember service.

  1. <EmberPhaser
  2. @phaserContainer="gameContainer"
  3. @config={{this.emberGameService.config}}
  4. @ember={{this.emberGameService}}
  5. ></EmberPhaser>
  1. @service('game') emberGameService;

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.