class

MonsterMaze::Movable

Inherits Reference < Object

Constants

Radius = Size // 2
Size = 64
Speed = 256

Constructors

new(row = 0, col = 0)
Source

Instance methods

collides?(dx, dy, box : Box, box_x, box_y)
Source
collides?(dx, dy, circle : Circle, cx, cy)
Source
collides?(circle : Circle, cx, cy)
Source
collides?(dx, dy, movable : Movable)
Source
collides?(movable : Movable)
Source
collision_circle
Source
collision_cx
Source
collision_cy
Source
collision_radius
Source
collision_x
Source
collision_y
Source
draw(window : SF::RenderWindow)
Source
jump(x : Float32 | Int32, y : Float32 | Int32)
Source
jump_to_tile(row, col)
Source
move(dx, dy)
Source
move_with_collidable_tiles(tiles)
Source
move_with_level(level_width, level_height)
Source
move_with_movables(movables)
Source
moved?
Source
size
Source
speed
Source
update_movement(frame_time, speed = speed, level_width = 0, level_height = 0, collidable_tiles = [] of TileData, movables = [] of Movable)
Source
update_with_direction_and_speed(frame_time, speed)
Source