summaryrefslogtreecommitdiff
path: root/scripts/Map/Tile.cs
diff options
context:
space:
mode:
authorMatheus <matheus.guedes.mg.m@gmail.com>2025-10-30 17:31:00 -0300
committerMatheus <matheus.guedes.mg.m@gmail.com>2025-10-30 17:31:06 -0300
commitd6fc2026917d55fa12713e3d00004ec461cc5971 (patch)
tree54fc79f9f8a217b2477721e21875e74c1736564e /scripts/Map/Tile.cs
parente40bc38dcc17ebeb40722bedb94a6459e47b9aeb (diff)
vários andares
Diffstat (limited to 'scripts/Map/Tile.cs')
-rw-r--r--scripts/Map/Tile.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/Map/Tile.cs b/scripts/Map/Tile.cs
index 6790f3e..03039e0 100644
--- a/scripts/Map/Tile.cs
+++ b/scripts/Map/Tile.cs
@@ -8,7 +8,8 @@ namespace TheLegendOfGustav.Map;
public enum TileType
{
WALL,
- FLOOR
+ FLOOR,
+ DOWN_STAIRS
}
/// <summary>
@@ -22,7 +23,8 @@ public partial class Tile : Sprite2D, ISaveable
private static readonly Godot.Collections.Dictionary<TileType, TileDefinition> Types = new()
{
{TileType.WALL, GD.Load<TileDefinition>("res://assets/definitions/tiles/wall.tres")},
- {TileType.FLOOR, GD.Load<TileDefinition>("res://assets/definitions/tiles/floor.tres")}
+ {TileType.FLOOR, GD.Load<TileDefinition>("res://assets/definitions/tiles/floor.tres")},
+ {TileType.DOWN_STAIRS, GD.Load<TileDefinition>("res://assets/definitions/tiles/downstairs.tres")}
};
TileType key;