module GSF::PlayerController

Defined in:

gsf/player_controller.cr

Constant Summary

DeathAnimationDuration = 300.milliseconds

Instance Method Summary

Instance Method Detail

def dead? #

[View source]
def death_animation_duration #

TODO make this extendable, and used in the Player constructor to set above @death_timer


[View source]
def death_timer : Timer #

[View source]
def die! #

[View source]
def initialize_player_controller #

[View source]
def joystick_down?(joysticks : Joysticks) : Bool #

[View source]
def joystick_left?(joysticks : Joysticks) : Bool #

[View source]
def joystick_right?(joysticks : Joysticks) : Bool #

[View source]
def joystick_up?(joysticks : Joysticks) : Bool #

[View source]
def keys_down : Key | Array(Key) #

[View source]
def keys_left : Key | Array(Key) #

[View source]
def keys_right : Key | Array(Key) #

[View source]
def keys_up : Key | Array(Key) #

[View source]
def movement_input(keys : Keys, joysticks : Joysticks) : Tuple(Int32, Int32) #

[View source]
def reset_player_controller #

[View source]