class

RPG::Player

Inherits RPG::Character < RPG::Collidable < Reference < Object

Constants

AxisThreshold = 10

Constructors

new(x = 0, y = 0)
Source

Instance methods

change_direction
Source
collision(obj : Collidable) : Tuple(Bool, Bool)
Source
direction
Source
facing?(other_x, other_y)
Source
move_with_level(level_width, level_height)
Source
moved?
Source
update(frame_time, keys : Keys, joysticks : Joysticks, level_width, level_height)
Source
update_dx_with_direction_and_speed(frame_time)
Source
update_movement(frame_time, level_width, level_height)
Source
update_movement_dx_input(keys, joysticks)
Source
update_movement_dy_input(keys, joysticks)
Source