Files
mist/settings/scene.rb
T
syedm 222b28d196 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.
2026-04-03 02:51:11 +01:00

15 lines
385 B
Ruby

class Settings < Scene
def initialize
super
@font = Gosu::Font.new(24)
end
def draw
Gosu.draw_rect(0, 0, SCREEN_SIZE[0], SCREEN_SIZE[1], Gosu::Color::BLACK)
@font.draw_text("Settings Scene - Press ESC to return to Menu", 50, 50, 1, 1, 1, Gosu::Color::WHITE)
end
def button_down(id, _pos)
$bus.emit(:change_scene, Menu) if id == Gosu::KB_ESCAPE
end
end