Entities are now definable

This commit is contained in:
2019-10-11 20:01:35 -05:00
parent 44e9dcf7d7
commit 9ab515dce2
8 changed files with 129 additions and 11 deletions

View 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