stanje 4am
This commit is contained in:
@@ -21,8 +21,12 @@ class IsometricUtils {
|
||||
}
|
||||
|
||||
// Izračun depth (z-index) za pravilno sortiranje
|
||||
// Izračun depth (z-index)
|
||||
// V Phaserju je najbolje uporabiti kar Y koordinato spritha.
|
||||
// Tu vrnemo pričakovano Y pozicijo za grid celico.
|
||||
getDepth(gridX, gridY) {
|
||||
return gridX + gridY;
|
||||
// (gridX + gridY) * tileHeight/2 je točno screenY
|
||||
return (gridX + gridY) * (this.tileHeight / 2);
|
||||
}
|
||||
|
||||
// Izračun centerja tile-a
|
||||
|
||||
Reference in New Issue
Block a user