Refactor props handling and inventory logic; add ghost prop preview

This commit is contained in:
2026-03-28 23:07:42 +00:00
parent 9b0d29555b
commit 1fbd12e6f6
10 changed files with 138 additions and 49 deletions
+4 -4
View File
@@ -12,10 +12,10 @@ class EnemyHandler
def spawn!
# For now, just spawn a single enemy at a fixed location
#start_room_coords = $bus.get(:start_room_coords)
#if @enemies.empty?
# @enemies << Enemy.new((start_room_coords[0] * 2 + 1 + 4) * 60 + 30, (start_room_coords[1] * 2 + 1 + 4) * 60 + 30)
#end
start_room_coords = $bus.get(:start_room_coords)
if @enemies.empty?
@enemies << Enemy.new((start_room_coords[0] * 2 + 1 + 4) * 60 + 30, (start_room_coords[1] * 2 + 1 + 4) * 60 + 30)
end
end
def draw