mirror of
https://git.leinelab.org/Mal/mr-crocs-adventures.git
synced 2025-09-11 02:57:36 +02:00
Settings invented, restructuring of graphics folders and enhancements for target point.
This commit is contained in:
@@ -19,6 +19,7 @@ export default class RetroArchitecture
|
||||
this.startY = 0;
|
||||
this.targetX = 0;
|
||||
this.targetY = 0;
|
||||
this.targetPosition = new GeometryPoint(this.targetX, this.targetY);
|
||||
|
||||
this.init();
|
||||
}
|
||||
@@ -88,7 +89,7 @@ export default class RetroArchitecture
|
||||
return null;
|
||||
}
|
||||
|
||||
return {x: x, y: y};
|
||||
return new GeometryPoint(x, y);
|
||||
}
|
||||
|
||||
getCeilingHeight(position)
|
||||
@@ -118,7 +119,7 @@ export default class RetroArchitecture
|
||||
tilePosition.y++;
|
||||
}
|
||||
|
||||
return 9999999999;
|
||||
return (this.rows + 10) * this.tileHeight;
|
||||
}
|
||||
|
||||
getWallRight(position)
|
||||
@@ -230,6 +231,7 @@ export default class RetroArchitecture
|
||||
architecture.startY = data.startY;
|
||||
architecture.targetX = data.targetX;
|
||||
architecture.targetY = data.targetY;
|
||||
architecture.targetPosition = new GeometryPoint(data.targetX, data.targetY);
|
||||
|
||||
for (let y = 0; y < data.rows; y++) {
|
||||
for (let x = 0; x < data.columns; x++) {
|
||||
|
||||
Reference in New Issue
Block a user