class

JamWarmUp::Ship

Inherits Reference < Object

Constants

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

Constructors

new(x : Float32 | Int32 = 0, y : Float32 | Int32 = 0, flip_horizontal = false, color = SF::Color::White)
Source

Class methods

size
Source

Instance methods

collision_box
Source
dead?
Source
draw(window : SF::RenderWindow)
Source
move(dx, dy)
Source
size
Source
sprite
Source
update(frame_time)
Source