class Rover::Movable
- Rover::Movable
- Reference
- Object
Direct Known Subclasses
Defined in:
rover/movable.crConstant Summary
-
Acceleration =
80
-
Decceleration =
75
-
InitialSpeed =
3
-
MaxSpeed =
333
-
Sheet =
"./assets/player.png"
-
SpriteFPS =
60
-
SpriteHeight =
96
-
SpriteWidth =
64
Constructors
Class Method Summary
- .acceleration
- .decceleration
- .initial_speed
- .max_speed
- .sprite_fps
- .sprite_height
- .sprite_sheet
- .sprite_width
Instance Method Summary
- #acceleration
- #animate_move(dx : Float64, dy : Float64)
- #animations : GSF::Animations
- #decceleration
- #disable
- #draw(window : SF::RenderWindow)
- #dx : Float64
- #dy : Float64
- #enable
- #enabled? : Bool
- #hidden? : Bool
- #hide
- #initial_speed
- #max_speed
- #move(dx : Float64, dy : Float64)
- #show(enable : Bool = true)
- #speed : Float32 | Int32
- #sprite_fps
- #sprite_height
- #sprite_sheet
- #sprite_width
- #update(frame_time, keys : Keys)
- #update_movement(frame_time, keys : Keys)
- #x : Float64
- #y : Float64