class JamWarmUp::Ship

Direct Known Subclasses

Defined in:

jam_warm_up/ship.cr

Constant Summary

Size = 128
SpriteFile = "./assets/player.png"

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(x : Float32 | Int32 = 0, y : Float32 | Int32 = 0, flip_horizontal = false, color = SF::Color::White) #

[View source]

Class Method Detail

def self.size #

[View source]

Instance Method Detail

def collision_box : CollisionBox #

[View source]
def dead? : Bool #

[View source]
def die #

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

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

[View source]
def size #

[View source]
def sprite : SF::Sprite #

[View source]
def update(frame_time) #

[View source]
def x : Int32 | Float32 #

[View source]
def y : Int32 | Float32 #

[View source]