Escapist::Player
Constants
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 methods
above_or_below_of_movable?(tile_obj : TileObj)
Sourceactionable_checks(keys, room)
Sourcearea_checks(room)
Sourcedraw(window : SF::RenderWindow)
Sourceleft_or_right_of_movable?(tile_obj : TileObj)
Sourcemovable_collisions(tile_obj, dx, dy, room, collidables)
Sourcemovable_other_collisions(tile_obj, dx, dy, room, collidables)
Sourcemovable_speed(dx, dy)
Sourcemove(dx, dy)
Sourcemove_with_room(dx, dy, room)
Sourcemove_with_room_bounds(dx, dy, room)
Sourcemove_with_room_collisions(dx, dy, room)
Sourcemove_with_room_movables(dx, dy, room, collidables)
Sourcemove_with_speed(dx, dy, frame_time)
Sourcepull_movables(dx, dy, room, keys)
Sourcepullable(movables, dx, dy)
Sourcepullable_down?(movable)
Sourcepullable_left?(movable)
Sourcepullable_right?(movable)
Sourcepullable_up?(movable)
Sourcesize
Sourcesprint_timer
Sourcesprint_wait_timer
Sourcesprinting?
Sourceupdate(frame_time, keys : Keys, room)
Sourceupdate_movement(frame_time, keys : Keys, room)
Sourceupdate_sprinting(keys)
Source