class MonsterMaze::Level
- MonsterMaze::Level
- Reference
- Object
Direct Known Subclasses
Defined in:
monster_maze/level.crConstant Summary
-
EmptyString =
""
-
GameWinDuration =
500.milliseconds
-
OilFillSheetFile =
"./assets/tiles/oil_fill.png"
-
SoundFootsteps =
"./assets/sounds/footsteps.ogg"
-
SoundOilDip =
"./assets/sounds/oil_dip.ogg"
-
SoundThud =
"./assets/sounds/thud.ogg"
-
TextColorFocused =
SF::Color.new(255, 127, 0)
-
TileSheetDataFile =
"./assets/tiles/tiles.json"
-
TileSheetFile =
"./assets/tiles/tiles.png"
-
VisibilitySize =
16
-
VisibilitySizeFactor =
TileSize // VisibilitySize
Constructors
Instance Method Summary
- #close_collidable_movables(movable : Movable)
- #close_collidable_tiles(movable : Movable)
- #close_oil_pools(movable : Movable)
- #collision_with_circle?(x, y, size)
- #cols : Int32
- #draw(window : SF::RenderWindow)
- #draw_collision_tiles(window)
- #draw_game_over_menu(window)
- #draw_visibility(window)
- #exit? : Bool
- #game_over?
- #game_win?
- #height
- #init
- #init_finish_area(finish_tile)
- #init_monsters
- #init_oil_pools(oil_pool_tile)
- #init_sounds
- #init_spawns(spawn_tile)
- #init_sprites
- #init_tiles
- #init_visibilities
- #monsters : Array(Monster)
- #oil_pools : Array(OilPool)
- #play_sound(sound : SF::Sound)
- #player : Player
- #reset
- #reset_visibility(tile_row, tile_col)
- #rows : Int32
- #spawn_monster(row, col)
- #tile_map_file
- #tile_sheet_data_file
- #tile_sheet_file
- #tile_size
- #tiles : Array(Array(Int32))
- #update(frame_time, keys : Keys, joysticks : Joysticks)
- #update_game_over(frame_time, keys, joysticks)
- #update_tile_visibility(tile_row, tile_col)
- #update_visibility
- #v_cols
- #v_rows
- #visibilities_from_tile(tile_row, tile_col) : Array(VisibilityData)
- #width