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 5 hours ago
JSON representation
Rotate Sprite Extension for Phaser Framework
- Host: GitHub
- URL: https://github.com/jdnichollsc/phaser-rotate-sprite-extension
- Owner: jdnichollsc
- License: mit
- Created: 2017-02-15T04:57:23.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-04-24T14:35:42.000Z (over 4 years ago)
- Last Synced: 2025-01-16T06:59:39.688Z (4 days ago)
- Topics: canvas, phaser, phaser-ce, phaser-extension, phaser-framework, phaserjs, webgl
- Language: JavaScript
- Size: 255 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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