class RPG::Player
- RPG::Player
- RPG::Character
- RPG::Collidable
- Reference
- Object
Defined in:
rpg/player.crConstant Summary
-
AxisThreshold =
10
Constructors
Instance Method Summary
- #bag : Bag
- #change_direction
- #collision(obj : Collidable) : Tuple(Bool, Bool)
- #direction : Direction
- #dx : Int32 | Float32
- #dy : Int32 | Float32
- #facing?(other_x, other_y)
- #move_with_level(level_width, level_height)
- #moved? : Bool
- #update(frame_time, keys : Keys, joysticks : Joysticks, level_width, level_height)
- #update_dx_with_direction_and_speed(frame_time)
- #update_movement(frame_time, level_width, level_height)
- #update_movement_dx_input(keys, joysticks)
- #update_movement_dy_input(keys, joysticks)