项目作者: jdnichollsc

项目描述 :
Rotate Sprite Extension for Phaser Framework
高级语言: JavaScript
项目地址: git://github.com/jdnichollsc/Phaser-Rotate-Sprite-Extension.git
创建时间: 2017-02-15T04:57:23Z
项目社区:https://github.com/jdnichollsc/Phaser-Rotate-Sprite-Extension

开源协议:MIT License

下载


Rotate Sprite Extension for Phaser Framework

Rotate Sprite Extension

Demo

Do you want to see this extension in action? Visit http://codepen.io/jdnichollsc/full/PGWQVd/ yay!

Full Example

  1. var game = new Phaser.Game(w, h, Phaser.AUTO, '', {
  2. //...
  3. preload: function(){
  4. this.game.load.image('ionPhaser', ionPhaserUrl);
  5. this.game.load.image('rotate', rotateUrl);
  6. },
  7. create: function(){
  8. this.sprite = new Phaser.Extension.RotateSprite(this.game, this.game.world.centerX, this.game.world.centerY, 'ionPhaser');
  9. }
  10. //...
  11. });

Other Projects

Happy scrolling

Made with <3