diff options
Diffstat (limited to 'scripts/Game.cs')
| -rw-r--r-- | scripts/Game.cs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/scripts/Game.cs b/scripts/Game.cs index 8de7af6..ddea395 100644 --- a/scripts/Game.cs +++ b/scripts/Game.cs @@ -3,19 +3,17 @@ using System; public partial class Game : Node { private Player player; - public TileMapLayer Dungeon { get; private set; } - private DungeonLevel map; + public DungeonLevel Map { get; private set; } private InputHandler inputHandler; public override void _Ready() { base._Ready(); - map = GetNode<DungeonLevel>("Map"); + Map = GetNode<DungeonLevel>("Map"); inputHandler = GetNode<InputHandler>("InputHandler"); - Dungeon = map.buildingLayer; - - player = map.player; + + player = Map.player; } public override void _PhysicsProcess(double delta) { |
