Add new chest assets

This commit is contained in:
2026-03-28 12:22:58 +00:00
parent fa2c31ca50
commit ba828d682c
5 changed files with 7 additions and 5 deletions
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 367 B

Binary file not shown.
+2
View File
@@ -6,6 +6,8 @@ class Maze
@spritesheet = Gosu::Image.load_tiles("assets/images/walls.png", 20, 40, retro: true) @spritesheet = Gosu::Image.load_tiles("assets/images/walls.png", 20, 40, retro: true)
puts @spritesheet.size puts @spritesheet.size
$bus.on(:maze_size) { [80, 80] }
$bus.on(:maze_solve) do |x1, y1, x2, y2| $bus.on(:maze_solve) do |x1, y1, x2, y2|
next @maze.solve(x1, y1, x2, y2) next @maze.solve(x1, y1, x2, y2)
end end
+5 -5
View File
@@ -87,11 +87,11 @@ class ObjectHandler
def initialize def initialize
start_room_coords = $bus.get(:start_room_coords) start_room_coords = $bus.get(:start_room_coords)
@objects = [ @objects = []
Torch.new(start_room_coords[0] / 2 - 1, start_room_coords[1] / 2 - 1), end
Torch.new(start_room_coords[0] / 2 + 3, start_room_coords[1] / 2),
Torch.new(start_room_coords[0] / 2, start_room_coords[1] / 2 - 1), def spawn_chests!
] world_size = $bus.get(:maze_size) || [0, 0]
end end
def add(object) def add(object)