mirror of
https://github.com/cyberarm/i-mic-rts.git
synced 2025-12-15 15:52:34 +00:00
Extracted movement and turret into 'components' that entity get add to its self when defined
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
IMICRTS::Entity.define_entity(:construction_worker, :unit, 1000, "Constructs buildings") do |entity|
|
||||
entity.has(:movement)
|
||||
|
||||
entity.radius = 14
|
||||
entity.movement = :ground
|
||||
entity.max_health = 100.0
|
||||
|
||||
Reference in New Issue
Block a user