abstract class Shoot::ShipBase
- Shoot::ShipBase
- Reference
- Object
Direct Known Subclasses
Defined in:
shoot/ship_base.crConstant Summary
-
FireDuration =
100.milliseconds
-
FireSound =
SF::SoundBuffer.from_file("./assets/laser.wav")
-
Sheet =
"./assets/ship.png"
-
Speed =
15
Constructors
Instance Method Summary
- #animations : GSF::Animations
- #draw(window : SF::RenderWindow)
- #fire
- #fire_sound : SF::Sound
- #fire_timer : GSF::Timer
- #lasers : Array(Shoot::Laser)
- #move(dx : Int32, dy : Int32)
- #update(frame_time, keys : Keys)
- #update_movement(keys : Keys)
- #x : Int32
- #y : Int32