class Shoot::Enemy

Defined in:

shoot/enemy.cr

Constant Summary

Color = SF::Color.new(255, 80, 80)
HitSound = SF::SoundBuffer.from_file("./assets/hit.wav")
MaxHealth = 100
Sheet = "./assets/ship.png"
Size = 128

Constructors

Instance Method Summary

Constructor Detail

def self.new(x : Int32 = 0, y : Int32 = 0) #

[View source]

Instance Method Detail

def animations : GSF::Animations #

[View source]
def draw(window : SF::RenderWindow) #

[View source]
def draw_health(window) #

[View source]
def global_bounds(*args, **options) #

[View source]
def global_bounds(*args, **options, &) #

[View source]
def health : Int32 #

[View source]
def health_color #

[View source]
def health_percent #

[View source]
def hit(laser : Laser) #

[View source]
def hit_sound : SF::Sound #

[View source]
def remove=(remove : Bool | Nil) #

[View source]
def remove? : Bool? #

[View source]
def update(_frame_time) #

[View source]
def x : Int32 #

[View source]
def y : Int32 #

[View source]