abstract class Shoot::ShipBase

Direct Known Subclasses

Defined in:

shoot/ship_base.cr

Constant Summary

FireDuration = 100.milliseconds
FireSound = SF::SoundBuffer.from_file("./assets/laser.wav")
Sheet = "./assets/ship.png"
Speed = 15

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 fire #

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

[View source]
def fire_timer : GSF::Timer #

[View source]
def lasers : Array(Shoot::Laser) #

[View source]
def move(dx : Int32, dy : Int32) #

[View source]
def update(frame_time, keys : Keys) #

[View source]
abstract def update_movement(keys : Keys) #

[View source]
def x : Int32 #

[View source]
def y : Int32 #

[View source]