Refactor props handling and inventory logic; add ghost prop preview
This commit is contained in:
+1
-5
@@ -1,11 +1,7 @@
|
||||
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
|
||||
setup_sprites("assets/images/chest.png", 1)
|
||||
|
||||
def resources
|
||||
{ wood: rand(0..64), metal: rand(0..16), science: rand(0..4) }
|
||||
|
||||
Reference in New Issue
Block a user