mirror of
https://github.com/wassname/phaser.git
synced 2026-07-21 12:40:56 +08:00
Tidying up source code for release. Also refactored World to use a Group instance, rather tha duplicate functions.
This commit is contained in:
@@ -611,10 +611,8 @@ Object.defineProperty(Phaser.Pointer.prototype, "duration", {
|
||||
|
||||
return this.game.time.now - this.timeDown;
|
||||
|
||||
},
|
||||
}
|
||||
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
||||
Object.defineProperty(Phaser.Pointer.prototype, "worldX", {
|
||||
@@ -627,10 +625,8 @@ Object.defineProperty(Phaser.Pointer.prototype, "worldX", {
|
||||
|
||||
return this.game.world.camera.x + this.x;
|
||||
|
||||
},
|
||||
}
|
||||
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
||||
Object.defineProperty(Phaser.Pointer.prototype, "worldY", {
|
||||
@@ -643,8 +639,6 @@ Object.defineProperty(Phaser.Pointer.prototype, "worldY", {
|
||||
|
||||
return this.game.world.camera.y + this.y;
|
||||
|
||||
},
|
||||
}
|
||||
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user