class SfmlBook::Chapter5::Player

Defined in:

chapter5/player.cr

Constant Summary

PLAYER_SPEED = 200.0

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def assign_key(action : Action, key : SF::Keyboard::Key) #

TODO Raise exception for invalid action


[View source]
def assigned_key(action : Action) #

TODO Raise exception for invalid action


[View source]
def handle_event(event : SF::Event, queue : Deque(Command)) #

[View source]
def handle_realtime_input(queue : Deque(Command)) #

[View source]
def realtime_action?(action : Action) #

[View source]