preparing for WIP PR 4

This commit is contained in:
Svipal 2020-01-29 20:32:08 +01:00
parent c4739dc01d
commit 70cbdc0925
5 changed files with 1335 additions and 995 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

1100
dist/phaser.js vendored

File diff suppressed because it is too large Load diff

2
dist/phaser.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -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)
} }