module GSF::PlayerController
Defined in:
gsf/player_controller.crConstant Summary
-
DeathAnimationDuration =
300.milliseconds
Instance Method Summary
- #dead?
-
#death_animation_duration
TODO make this extendable, and used in the Player constructor to set above @death_timer
- #death_timer : Timer
- #die!
- #initialize_player_controller
- #joystick_down?(joysticks : Joysticks) : Bool
- #joystick_left?(joysticks : Joysticks) : Bool
- #joystick_right?(joysticks : Joysticks) : Bool
- #joystick_up?(joysticks : Joysticks) : Bool
- #keys_down : Key | Array(Key)
- #keys_left : Key | Array(Key)
- #keys_right : Key | Array(Key)
- #keys_up : Key | Array(Key)
- #movement_input(keys : Keys, joysticks : Joysticks) : Tuple(Int32, Int32)
- #reset_player_controller
Instance Method Detail
def death_animation_duration
#
TODO make this extendable, and used in the Player constructor to set above @death_timer