mirror of
https://github.com/cyberarm/i-mic-rts.git
synced 2025-12-16 00:02:33 +00:00
Added images for 'all' entities, added Tank
This commit is contained in:
@@ -4,7 +4,7 @@ IMICRTS::Entity.define_entity(:construction_worker, :unit, 1000, "Constructs bui
|
||||
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.shell_image = "vehicles/construction_worker/images/construction_worker_shell.png"
|
||||
|
||||
entity.on_tick do
|
||||
end
|
||||
|
||||
@@ -4,7 +4,7 @@ IMICRTS::Entity.define_entity(:harvester, :unit, 1400, "Harvests ore") do |entit
|
||||
entity.max_health = 100.0
|
||||
|
||||
entity.body_image = "vehicles/harvester/images/harvester.png"
|
||||
entity.shell_image = "vehicles/harvester/images/harvester.png"
|
||||
entity.shell_image = "vehicles/harvester/images/harvester_shell.png"
|
||||
|
||||
@capacity = 10.0
|
||||
@bed = 0.0
|
||||
|
||||
12
lib/entities/tank.rb
Normal file
12
lib/entities/tank.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
IMICRTS::Entity.define_entity(:tank, :unit, 800, "Attacks ground targets") do |entity|
|
||||
entity.radius = 14
|
||||
entity.movement = :ground
|
||||
entity.max_health = 100.0
|
||||
|
||||
entity.shell_image = "vehicles/tank/tank_shell.png"
|
||||
|
||||
entity.turret_shell_image = "vehicles/tank/tank_turret_shell.png"
|
||||
|
||||
entity.on_tick do
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user