mirror of
https://github.com/cyberarm/i-mic-rts.git
synced 2025-12-15 15:52:34 +00:00
Seperated entities by building/unit
This commit is contained in:
11
lib/entities/units/construction_worker.rb
Normal file
11
lib/entities/units/construction_worker.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
IMICRTS::Entity.define_entity(:construction_worker, :unit, 1000, "Constructs buildings") do |entity|
|
||||
entity.radius = 14
|
||||
entity.movement = :ground
|
||||
entity.max_health = 100.0
|
||||
|
||||
entity.body_image = "vehicles/construction_worker/images/construction_worker.png"
|
||||
entity.shell_image = "vehicles/construction_worker/images/construction_worker_shell.png"
|
||||
|
||||
entity.on_tick do
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user