class RPG::Level
- RPG::Level
- Reference
- Object
Direct Known Subclasses
Defined in:
rpg/level.crConstant Summary
-
SoundBumpFile =
"./assets/sounds/bump.ogg"
-
TileSize =
64
Constructors
Instance Method Summary
- #cols : Int32
- #dialog : Dialog
- #dialog_key : String
- #dialog_show(key : String, message_key : String)
- #dialog_yml_file
- #draw(window : SF::RenderWindow)
- #draw_tile(window, x, y)
- #draw_tiles(window)
- #height
- #init_dialog_data
- #objs : Array(Collidable)
- #play_bump_sound
- #player : Player
- #player_col : Int32
- #player_collision_checks
- #player_row : Int32
- #rows : Int32
- #sound_bump : SF::Sound
- #start
- #tile_size
- #to_tile(col, row)
- #update(frame_time, keys : Keys, mouse : Mouse, joysticks : Joysticks)
- #width
Constructor Detail
def self.new(player : Player, rows : Int32 = 9, cols : Int32 = 9, player_row : Int32 = 0, player_col : Int32 = 0)
#