Refactor debug checks to use event bus settings for consistency across game components.

This commit is contained in:
2026-03-28 23:24:09 +00:00
parent 1fbd12e6f6
commit 3dbeadf976
9 changed files with 30 additions and 13 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ class EnemyAI
end
def draw
return unless DEBUG
return unless $bus.get(:settings, :debug)
cam_x, cam_y = $bus.get(:camera_pos) || [0, 0]
@waypoints.each do |wx, wy|
Gosu.draw_rect(wx - cam_x - 5, wy - cam_y - 5, 10, 10, Gosu::Color.new(0x88ffff00), Float::INFINITY)