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 Radar < Prop
|
||||
def initialize(x, y)
|
||||
super(x, y)
|
||||
@frames_count = 4
|
||||
@spritesheet = Gosu::Image.load_tiles("assets/images/radar.png", 20, 20, retro: true)
|
||||
end
|
||||
setup_sprites("assets/images/radar.png", 4)
|
||||
|
||||
def resources
|
||||
{ wood: rand(0..2), metal: rand(0..8), science: rand(0..2) }
|
||||
|
||||
Reference in New Issue
Block a user