Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/jdnichollsc/Phaser-Rotate-Sprite-Extension

Rotate Sprite Extension for Phaser Framework
https://github.com/jdnichollsc/Phaser-Rotate-Sprite-Extension

canvas phaser phaser-ce phaser-extension phaser-framework phaserjs webgl

Last synced: about 2 months ago
JSON representation

Rotate Sprite Extension for Phaser Framework

Lists

README

        

# Rotate Sprite Extension for Phaser Framework

![Rotate Sprite Extension](https://raw.githubusercontent.com/jdnichollsc/Phaser-Rotate-Sprite-Extension/gh-pages/img/extension.png)

## Demo

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

## Full Example

```javascript
var game = new Phaser.Game(w, h, Phaser.AUTO, '', {
//...
preload: function(){
this.game.load.image('ionPhaser', ionPhaserUrl);
this.game.load.image('rotate', rotateUrl);
},
create: function(){
this.sprite = new Phaser.Extension.RotateSprite(this.game, this.game.world.centerX, this.game.world.centerY, 'ionPhaser');
}
//...
});
```

## Other Projects
- **[IonPhaser](http://market.ionic.io/plugins/ionphaser)**
- **[Kinetic Scrolling Plugin](https://github.com/jdnichollsc/Phaser-Kinetic-Scrolling-Plugin)**

## Happy scrolling
Made with <3