Refactor props handling and inventory logic; add ghost prop preview

This commit is contained in:
2026-03-28 23:07:42 +00:00
parent 9b0d29555b
commit 1fbd12e6f6
10 changed files with 138 additions and 49 deletions
+1 -5
View File
@@ -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) }