mirror of
https://github.com/wassname/phaser.git
synced 2026-07-11 00:40:20 +08:00
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:
@@ -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.
|
||||
*
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user