Added CSS3Filters plugin. Also modified Sprite to contain preUpdate call, so that update can be over-ridden by custom Classes + added an example for this.

This commit is contained in:
Richard Davey
2013-09-11 00:35:21 +01:00
parent e2eddc8b24
commit f885f7b023
5 changed files with 255 additions and 2 deletions
+6
View File
@@ -10,6 +10,12 @@ Phaser.GameObjectFactory.prototype = {
game: null,
world: null,
existing: function (object) {
return this.world.add(object);
},
/**
* Create a new Sprite with specific position and sprite sheet key.
*
+2 -2
View File
@@ -155,9 +155,9 @@ Phaser.Sprite.prototype = Object.create(PIXI.Sprite.prototype);
Phaser.Sprite.prototype.constructor = Phaser.Sprite;
/**
* Automatically called by World.update
* Automatically called by World.update. You can create your own update in Objects that extend Phaser.Sprite.
*/
Phaser.Sprite.prototype.update = function() {
Phaser.Sprite.prototype.preUpdate = function() {
if (!this.exists)
{