class

SfmlBook::Chapter4::Player

Inherits Reference < Object

Constants

PLAYER_SPEED = 200.0

Constructors

Instance methods

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

TODO: Raise exception for invalid action

Source
assigned_key(action : Action)

TODO: Raise exception for invalid action

Source
handle_event(event : SF::Event, queue : Deque(Command))
Source
handle_realtime_input(queue : Deque(Command))
Source
realtime_action?(action : Action)
Source

Nested types