Refactor game state and HUD:
- Removed the State class as it was no longer needed. - Updated the MazeData class to improve output formatting. - Added new assets for HUD background and foreground. - Implemented Inventory class to manage crafting and item selection. - Created HUDLayer class to handle drawing the HUD and inventory interactions.
This commit is contained in:
@@ -4,7 +4,6 @@ class Maze
|
||||
def initialize
|
||||
@maze = MazeData.new(80, 80)
|
||||
@spritesheet = Gosu::Image.load_tiles("assets/images/walls.png", 20, 40, retro: true)
|
||||
puts @spritesheet.size
|
||||
|
||||
$bus.on(:maze_size) { [80, 80] }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user