From 6fb1eb6a6fe0f3f4c2f4e9d7fc476566168eba5d Mon Sep 17 00:00:00 2001 From: Matheus Date: Sun, 17 Aug 2025 20:03:46 -0300 Subject: Refactor --- scripts/Game.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'scripts/Game.cs') 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("Map"); + Map = GetNode("Map"); inputHandler = GetNode("InputHandler"); - Dungeon = map.buildingLayer; - - player = map.player; + + player = Map.player; } public override void _PhysicsProcess(double delta) { -- cgit v1.2.3