mirror of
https://github.com/wassname/phaser.git
synced 2026-10-02 12:30:54 +08:00
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:
1 parent
fe6664eac7
commit
78598ae54a
9 files changed
+360
-587
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user