* Updated: event.preventDefault() has been added to all Mouse event handlers.

* Updated: Sprite.deltaX/Y removed due to non-use. prevX/Y values moved to Sprite._cache.prevX/Y.
* Updated: Due to missing extends parameter the Sprite prototype was picking up functions from classes it never meant to (Button, TilemapLayer), now fully isolated.
This commit is contained in:
photonstorm
2013-11-01 02:07:21 +00:00
parent 01eab3aeb1
commit 3c164b466c
17 changed files with 440 additions and 746 deletions
-6
View File
@@ -404,12 +404,6 @@ Phaser.Physics.Arcade.prototype = {
this._mapData = tilemapLayer.getTiles(sprite.body.x, sprite.body.y, sprite.body.width, sprite.body.height, true);
// console.log('getTiles', this._tx, this._ty);
if (this.game.input.keyboard.isDown(Phaser.Keyboard.SHIFT))
{
console.log('cst', this._mapData, sprite.body.x, sprite.body.y);
}
if (this._mapData.length == 0)
{
return;
+2 -2
View File
@@ -547,7 +547,7 @@ Phaser.Physics.Arcade.Body.prototype = {
},
/**
* Returns the delta x value.
* Returns the delta x value. The difference between Body.x now and in the previous step.
*
* @method Phaser.Physics.Arcade.Body#deltaX
* @return {number} The delta value.
@@ -557,7 +557,7 @@ Phaser.Physics.Arcade.Body.prototype = {
},
/**
* Returns the delta y value.
* Returns the delta y value. The difference between Body.y now and in the previous step.
*
* @method Phaser.Physics.Arcade.Body#deltaY
* @return {number} The delta value.