class JamWarmUp::Ship
- JamWarmUp::Ship
- Reference
- Object
Direct Known Subclasses
Defined in:
jam_warm_up/ship.crConstant Summary
-
Size =
128
-
SpriteFile =
"./assets/player.png"
Constructors
Class Method Summary
Instance Method Summary
- #collision_box : CollisionBox
- #dead? : Bool
- #die
- #draw(window : SF::RenderWindow)
- #move(dx, dy)
- #size
- #sprite : SF::Sprite
- #update(frame_time)
- #x : Int32 | Float32
- #y : Int32 | Float32
Constructor Detail
def self.new(x : Float32 | Int32 = 0, y : Float32 | Int32 = 0, flip_horizontal = false, color = SF::Color::White)
#