summaryrefslogtreecommitdiff
path: root/scripts/Game.cs
diff options
context:
space:
mode:
authorMatheus <matheus.guedes.mg.m@gmail.com>2025-08-17 20:03:46 -0300
committerMatheus <matheus.guedes.mg.m@gmail.com>2025-08-17 20:03:46 -0300
commit6fb1eb6a6fe0f3f4c2f4e9d7fc476566168eba5d (patch)
tree89b89e2d991d2e83fb8398044120115b39112bad /scripts/Game.cs
parentca782d7310f2df854a8727535ac92337c85ed445 (diff)
Refactor
Diffstat (limited to 'scripts/Game.cs')
-rw-r--r--scripts/Game.cs10
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) {