Implemented my own LinkedList class to make the new Input Handler easier to work with. And also just generally useful to have too.

This commit is contained in:
Richard Davey
2013-09-08 11:24:41 +01:00
parent fe6664eac7
commit 78598ae54a
9 changed files with 360 additions and 587 deletions
+2 -3
View File
@@ -10,9 +10,6 @@ Phaser.Sprite = function (game, x, y, key, frame) {
// If exists = false then the Sprite isn't updated by the core game loop or physics subsystem at all
this.exists = true;
// An "invisible" sprite isn't rendered at all
this.visible = true;
// This is a handy little var your game can use to determine if a sprite is alive or not, it doesn't effect rendering
this.alive = true;
@@ -58,6 +55,8 @@ Phaser.Sprite = function (game, x, y, key, frame) {
this.currentFrame = this.game.cache.getFrame(key);
}
this.input = new Phaser.InputHandler(this);
/**
* The anchor sets the origin point of the texture.
* The default is 0,0 this means the textures origin is the top left