class MonsterMaze::Movable
- MonsterMaze::Movable
- Reference
- Object
Direct Known Subclasses
Defined in:
monster_maze/movable.crConstant Summary
-
Radius =
Size // 2
-
Size =
64
-
Speed =
256
Constructors
Instance Method Summary
- #collides?(dx, dy, box : Box, box_x, box_y)
- #collides?(dx, dy, circle : Circle, cx, cy)
- #collides?(circle : Circle, cx, cy)
- #collides?(dx, dy, movable : Movable)
- #collides?(movable : Movable)
- #collision_circle : Circle
- #collision_cx
- #collision_cy
- #collision_radius
- #collision_x
- #collision_y
- #cx
- #cy
- #draw(window : SF::RenderWindow)
- #dx : Int32 | Float32
- #dy : Int32 | Float32
- #jump(x : Float32 | Int32, y : Float32 | Int32)
- #jump_to_tile(row, col)
- #move(dx, dy)
- #move_with_collidable_tiles(tiles)
- #move_with_level(level_width, level_height)
- #move_with_movables(movables)
- #moved? : Bool
- #size
- #speed
- #update_movement(frame_time, speed = speed, level_width = 0, level_height = 0, collidable_tiles = [] of TileData, movables = [] of Movable)
- #update_with_direction_and_speed(frame_time, speed)
- #x : Int32 | Float32
- #y : Int32 | Float32
Constructor Detail
Instance Method Detail
def update_movement(frame_time, speed = speed, level_width = 0, level_height = 0, collidable_tiles = [] of TileData, movables = [] of Movable)
#