mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-11 00:15:53 +00:00
Fixed room spawn offsets
This commit is contained in:
parent
c928c86e6c
commit
33719a2da3
3 changed files with 16 additions and 9 deletions
|
|
@ -41,7 +41,7 @@ public partial class RogueliteRoomResource : Resource
|
|||
|
||||
case Direction.Up:
|
||||
for (int i = 0; i < Size.X; i++)
|
||||
offsets.Add(new Vector2I(gridPosition.X - i, gridPosition.Y + Size.Y - 1));
|
||||
offsets.Add(new Vector2I(gridPosition.X - i, gridPosition.Y + (Size.Y - 1)));
|
||||
break;
|
||||
|
||||
case Direction.Right:
|
||||
|
|
@ -51,7 +51,7 @@ public partial class RogueliteRoomResource : Resource
|
|||
|
||||
case Direction.Left:
|
||||
for (int i = 0; i < Size.Y; i++)
|
||||
offsets.Add(new Vector2I(gridPosition.X + Size.X - 1, gridPosition.Y - i));
|
||||
offsets.Add(new Vector2I(gridPosition.X - (Size.X - 1), gridPosition.Y - i));
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue