mirror of
https://github.com/photonstorm/phaser
synced 2025-01-09 11:48:50 +00:00
preparing for WIP PR 4
This commit is contained in:
parent
c4739dc01d
commit
70cbdc0925
5 changed files with 1335 additions and 995 deletions
1153
dist/phaser-arcade-physics.js
vendored
1153
dist/phaser-arcade-physics.js
vendored
File diff suppressed because it is too large
Load diff
2
dist/phaser-arcade-physics.min.js
vendored
2
dist/phaser-arcade-physics.min.js
vendored
File diff suppressed because one or more lines are too long
1166
dist/phaser.js
vendored
1166
dist/phaser.js
vendored
File diff suppressed because it is too large
Load diff
2
dist/phaser.min.js
vendored
2
dist/phaser.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -715,16 +715,15 @@ var Tile = new Class({
|
||||||
// coordinate needs to be adjusted by the difference.
|
// coordinate needs to be adjusted by the difference.
|
||||||
this.pixelX = this.x * this.baseWidth;
|
this.pixelX = this.x * this.baseWidth;
|
||||||
this.pixelY = this.y * this.baseHeight;
|
this.pixelY = this.y * this.baseHeight;
|
||||||
console.log("orthopix "+this.pixelX+","+this.pixelY)
|
// console.log("orthopix "+this.pixelX+","+this.pixelY)
|
||||||
} else if (this.layer.orientation === "isometric" ) {
|
} else if (this.layer.orientation === "isometric" ) {
|
||||||
// for the image to be centered we have to move the image to the right with the camera !
|
// for the image to be centered we have to move the image to the right with the camera !
|
||||||
// this is crucial for wordtotile, tiletoworld to work.
|
// this is crucial for wordtotile, tiletoworld to work.
|
||||||
this.pixelX = (this.x - this.y) * this.baseWidth *0.5;
|
this.pixelX = (this.x - this.y) * this.baseWidth *0.5;
|
||||||
this.pixelY = (this.x + this.y) * this.baseHeight *0.5;
|
this.pixelY = (this.x + this.y) * this.baseHeight *0.5;
|
||||||
console.log("isopix "+this.pixelX+","+this.pixelY)
|
// console.log("isopix "+this.pixelX+","+this.pixelY)
|
||||||
console.log(this)
|
|
||||||
} else {
|
} else {
|
||||||
console.log("this :" + this)
|
console.warn("this map orientation is not supported in this version of phaser")
|
||||||
console.log("tile orientation 3: "+this.layer.orientation)
|
console.log("tile orientation 3: "+this.layer.orientation)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue