mirror of
https://github.com/cyberarm/i-mic-rts.git
synced 2025-12-16 00:02:33 +00:00
Added construction complete order, added jeep overlay image to show windscreen, added rotors component for helicopter; more work needed, replaced all build and vehicle assets with ones that are 6x larger to prevent pixelization when zoomed in, misc.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
IMICRTS::Entity.define_entity(:helicopter, :unit, 400, 40, "Attacks ground targets") do |entity|
|
||||
entity.has(:movement)
|
||||
entity.has(:rotors)
|
||||
|
||||
entity.speed = 2.5
|
||||
entity.radius = 14
|
||||
@@ -10,6 +11,10 @@ IMICRTS::Entity.define_entity(:helicopter, :unit, 400, 40, "Attacks ground targe
|
||||
entity.shell_image = "vehicles/helicopter/helicopter_shell.png"
|
||||
entity.overlay_image = "vehicles/helicopter/helicopter_overlay.png"
|
||||
|
||||
entity.component(:rotors).body_image = "vehicles/helicopter/helicopter_rotors.png"
|
||||
entity.component(:rotors).center.y = 0.593
|
||||
entity.component(:rotors).speed = 500 / 60.0
|
||||
|
||||
entity.on_tick do
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user