From 5f0098b04fe71059471cf82730f341ce06c9fe68 Mon Sep 17 00:00:00 2001 From: Matheus Date: Mon, 25 Aug 2025 17:52:41 -0300 Subject: Inimigos spawnando. CampeƵes estompando. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/map/Map.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts/map/Map.cs') diff --git a/scripts/map/Map.cs b/scripts/map/Map.cs index 52ff588..29f5e62 100644 --- a/scripts/map/Map.cs +++ b/scripts/map/Map.cs @@ -49,5 +49,8 @@ public partial class Map : Node2D public void UpdateFOV(Vector2I pos) { fieldOfView.UpdateFOV(Map_Data, pos, fovRadius); + foreach (Actor actor in Map_Data.Actors) { + actor.Visible = Map_Data.GetTile(actor.GridPosition).IsInView; + } } } -- cgit v1.2.3