Added images for 'all' entities, added Tank

This commit is contained in:
2019-10-15 11:27:17 -05:00
parent 5e7bdeba57
commit 6cd17ba7c9
41 changed files with 622 additions and 168 deletions

View File

@@ -81,8 +81,13 @@ class IMICRTS
end
def draw
@body_image.draw_rot(@position.x, @position.y, @position.z, @angle)
@body_image.draw_rot(@position.x, @position.y, @position.z, @angle) if @body_image
@shell_image.draw_rot(@position.x, @position.y, @position.z, @angle, 0.5, 0.5, 1, 1, @player.color)
@overlay_image.draw_rot(@position.x, @position.y, @position.z, @angle, 0.5, 0.5, 1, 1) if @overlay_image
@turret_body_image.draw_rot(@position.x, @position.y, @position.z, @angle, 0.5, 0.5, 1, 1) if @turret_body_image
@turret_shell_image.draw_rot(@position.x, @position.y, @position.z, @angle, 0.5, 0.5, 1, 1, @player.color) if @turret_shell_image
@turret_overlay_image.draw_rot(@position.x, @position.y, @position.z, @angle, 0.5, 0.5, 1, 1) if @turret_overlay_image
end
def update