mirror of
https://github.com/cyberarm/i-mic-rts.git
synced 2025-12-14 07:12:34 +00:00
Entities are now definable
This commit is contained in:
11
lib/entities/construction_worker.rb
Normal file
11
lib/entities/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.png"
|
||||
|
||||
entity.on_tick do
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user