Jump to content

Phaser 0.9.2 Update


rich
 Share

Recommended Posts

Yes, another one :)

 

  • Fixed issue with create not being called if there was an empty init method.
  • Added ability to flip a sprite (Sprite.flipped = true) + a test case for it.
  • Added ability to restart a sprite animation.
  • Sprite animations don't restart if you call play on them when they are already running.
  • Added Stage.disablePauseScreen. Set to true to stop your game pausing when the tab loses focus.

https://github.com/photonstorm/phaser

Link to comment
Share on other sites

These are some of the features of Flixel that are really great to have and I was going to post about them but you've fixed them before I could even complain!

 

One thing that the tests don't show how to do is use inheritance to create a subclass of Sprite outside of Phaser namespace.

 

For example, if you've got a Player character and you want that to be a class that inherits from Sprite but has it's own set of actions. You can see how that's done looking at the Sprite class, but I'm sure it's just a small modification outside of the Phaser namespace.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...