Refactor event bus to use non-retrievable events;

update collision handling and add new inventory initialization;
add torch lighting in fog shader;
This commit is contained in:
2026-03-28 11:38:20 +00:00
parent 15c457e7a6
commit bf93aecad1
14 changed files with 150 additions and 60 deletions
+2 -2
View File
@@ -15,14 +15,14 @@ class MazeData
return if standalone
$bus.on_retrievable(:start_room_coords) do
$bus.on(:start_room_coords) do
next @start_room ? [@start_room[0] * 2 + 1, @start_room[1] * 2 + 1] : nil
end
return unless DEBUG
print_debug
$bus.on_retrievable(:boss_room_coords) do
$bus.on(:boss_room_coords) do
next @boss_rooms.first ? [@boss_rooms.first[0] * 2 + 1, @boss_rooms.first[1] * 2 + 1] : nil
end
end