Add new assets and implement minimap functionality
- Added new image assets for game over screens: `game_over_dead_bg.png`, `game_over_victory_bg.png`, and their respective Aseprite files. - Introduced a new `Minimap` class to manage torch placement and rendering on the minimap. - Implemented methods for adding and removing torches, updating the grid area, and drawing the minimap based on the current state of the game. - Enhanced the minimap display with color coding for walls, empty spaces, and torches.
This commit is contained in:
+3
-3
@@ -126,11 +126,11 @@ class Character
|
||||
$bus.emit(:trap_stepped_on, rect, :character)
|
||||
end
|
||||
|
||||
# teleport to boss room for debug purposes
|
||||
# teleport to exit room for debug purposes
|
||||
if $bus.get(:settings, :debug) && Gosu.button_down?(Gosu::KB_T)
|
||||
room_coords = $bus.get(:boss_room_coords)
|
||||
room_coords = $bus.get(:exit_room_coords)
|
||||
if room_coords
|
||||
@world_x, @world_y = [room_coords[0] * 60 + 5, room_coords[1] * 60 + 5]
|
||||
@world_x, @world_y = [room_coords[0] * 120 + 90, room_coords[1] * 120 + 90]
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user