MonsterMaze::Movable
Constants
Radius = Size // 2
Size = 64
Speed = 256
Constructors
new(row = 0, col = 0)
SourceInstance methods
collides?(dx, dy, circle : Circle, cx, cy)
Sourcecollides?(circle : Circle, cx, cy)
Sourcecollides?(dx, dy, movable : Movable)
Sourcecollides?(movable : Movable)
Sourcecollision_circle
Sourcecollision_cx
Sourcecollision_cy
Sourcecollision_radius
Sourcecollision_x
Sourcecollision_y
Sourcecx
Sourcecy
Sourcedraw(window : SF::RenderWindow)
Sourcedx
Sourcedy
Sourcejump_to_tile(row, col)
Sourcemove(dx, dy)
Sourcemove_with_collidable_tiles(tiles)
Sourcemove_with_level(level_width, level_height)
Sourcemove_with_movables(movables)
Sourcemoved?
Sourcesize
Sourcespeed
Sourceupdate_movement(frame_time, speed = speed, level_width = 0, level_height = 0, collidable_tiles = [] of TileData, movables = [] of Movable)
Sourceupdate_with_direction_and_speed(frame_time, speed)
Source