Files
mist/game/props/chest.rb
T
syedm 045200bf9f Props are now collectible;
Props logic refractor;
maze coordinates cleanup
2026-03-28 18:09:58 +00:00

13 lines
294 B
Ruby

require_relative "base"
class Chest < Prop
def initialize(x, y)
super(x, y)
@frames_count = 1
@spritesheet = Gosu::Image.load_tiles("assets/images/chest.png", 20, 20, retro: true)
end
def resources
{ wood: rand(0..64), metal: rand(0..16), science: rand(0..4) }
end
end