Made things into tools to display enemy icons on spawner marks

This commit is contained in:
Marco 2025-04-28 10:52:50 +02:00
commit c00d298443
49 changed files with 174 additions and 55 deletions

View file

@ -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