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
@@ -103,7 +103,7 @@ class Maze
@spritesheet[index - 1].draw(screen_x, screen_y, screen_y, scale, scale)
next unless DEBUG
next unless $bus.get(:settings, :debug)
shapes = shapes_for(index, gx * tile_size, gy * tile_size)
shapes.each do |shape|