mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-08 23:35:53 +00:00
Made things into tools to display enemy icons on spawner marks
This commit is contained in:
parent
f460103239
commit
c00d298443
49 changed files with 174 additions and 55 deletions
|
|
@ -425,14 +425,14 @@ public partial class RogueliteRoom : Node2D
|
|||
{
|
||||
GD.Print($"{doorMarker.Name} {doorMarker.Direction} {doorMarker.WallIndex}");
|
||||
|
||||
var baseGridSize = new Vector2(320, 160);
|
||||
//var baseGridSize = new Vector2(320, 160);
|
||||
|
||||
Vector2 doorPosition = doorMarker.Direction switch
|
||||
{
|
||||
DoorDirections.North => new Vector2((baseGridSize.X / 2) + (baseGridSize.X * doorMarker.WallIndex),
|
||||
DoorDirections.North => new Vector2((BaseRoomSize.X / 2) + (BaseRoomSize.X * doorMarker.WallIndex),
|
||||
32),
|
||||
DoorDirections.South => new Vector2((baseGridSize.X / 2) + (baseGridSize.X * doorMarker.WallIndex),
|
||||
((baseGridSize.Y) * RoomResource.Size.Y) + 2),
|
||||
DoorDirections.South => new Vector2((BaseRoomSize.X / 2) + (BaseRoomSize.X * doorMarker.WallIndex),
|
||||
((BaseRoomSize.Y) * RoomResource.Size.Y) + 2),
|
||||
DoorDirections.East => doorMarker.Position,
|
||||
DoorDirections.West => doorMarker.Position,
|
||||
_ => doorMarker.Position
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue