Add new chest assets
This commit is contained in:
@@ -6,6 +6,8 @@ class Maze
|
||||
@spritesheet = Gosu::Image.load_tiles("assets/images/walls.png", 20, 40, retro: true)
|
||||
puts @spritesheet.size
|
||||
|
||||
$bus.on(:maze_size) { [80, 80] }
|
||||
|
||||
$bus.on(:maze_solve) do |x1, y1, x2, y2|
|
||||
next @maze.solve(x1, y1, x2, y2)
|
||||
end
|
||||
|
||||
@@ -87,11 +87,11 @@ class ObjectHandler
|
||||
|
||||
def initialize
|
||||
start_room_coords = $bus.get(:start_room_coords)
|
||||
@objects = [
|
||||
Torch.new(start_room_coords[0] / 2 - 1, start_room_coords[1] / 2 - 1),
|
||||
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),
|
||||
]
|
||||
@objects = []
|
||||
end
|
||||
|
||||
def spawn_chests!
|
||||
world_size = $bus.get(:maze_size) || [0, 0]
|
||||
end
|
||||
|
||||
def add(object)
|
||||
|
||||
Reference in New Issue
Block a user