Skip to content
Snippets Groups Projects
Commit 1ff484d6 authored by Robin Ruud Kristensen's avatar Robin Ruud Kristensen
Browse files

added a little offset to center creation of stairs to match tile location

parent 9d904938
No related branches found
No related tags found
1 merge request!79Ruud1
......@@ -355,8 +355,8 @@ namespace Bigsock
public void SpawnStairs(int[,] bossRoom, int roomNr)
{
Instantiate(Stairs, new Vector3(FloorTilemap[roomNr].transform.position.x + bossRoom.GetUpperBound(0) / 2,
FloorTilemap[roomNr].transform.position.y + bossRoom.GetUpperBound(1) - 3, 0), Quaternion.identity);
Instantiate(Stairs, new Vector3(FloorTilemap[roomNr].transform.position.x + bossRoom.GetUpperBound(0) / 2 + 0.5f,
FloorTilemap[roomNr].transform.position.y + bossRoom.GetUpperBound(1) - 3 + 0.5f, 0), Quaternion.identity);
}
//Spawns a chest in the middle of the room
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment