class Escapist::Player
- Escapist::Player
- Reference
- Object
Defined in:
escapist/player.crConstant Summary
-
Color =
SF::Color.new(153, 0, 0, 30)
-
OutlineColor =
SF::Color.new(153, 0, 0)
-
OutlineThickness =
4
-
PullRangeThreshold =
4
-
Radius =
64
-
Size =
Radius * 2
-
Speed =
640
-
SprintDuration =
500.milliseconds
-
SprintSpeed =
1280
-
SprintWaitDuration =
300.milliseconds
Constructors
Instance Method Summary
- #above_or_below_of_movable?(tile_obj : TileObj)
- #actionable_checks(keys, room)
- #area_checks(room)
- #collision?(box : Box, dx = 0, dy = 0)
- #draw(window : SF::RenderWindow)
- #jump_to(x : Float32 | Int32, y : Float32 | Int32)
- #left_or_right_of_movable?(tile_obj : TileObj)
- #movable_collision?(tile_obj, box : Box, dx = 0, dy = 0)
- #movable_collisions(tile_obj, dx, dy, room, collidables)
- #movable_other_collisions(tile_obj, dx, dy, room, collidables)
- #movable_speed(dx, dy)
- #move(dx, dy)
- #move_with_room(dx, dy, room)
- #move_with_room_bounds(dx, dy, room)
- #move_with_room_collisions(dx, dy, room)
- #move_with_room_movables(dx, dy, room, collidables)
- #move_with_speed(dx, dy, frame_time)
- #pull_movables(dx, dy, room, keys)
- #pullable(movables, dx, dy)
- #pullable_down?(movable)
- #pullable_left?(movable)
- #pullable_right?(movable)
- #pullable_up?(movable)
- #size
- #sprint_timer : Timer
- #sprint_wait_timer : Timer
- #sprinting? : Bool
- #update(frame_time, keys : Keys, room)
- #update_movement(frame_time, keys : Keys, room)
- #update_sprinting(keys)
- #x : Float32 | Int32
- #y : Float32 | Int32