class RPG::Levels::World
Defined in:
rpg/levels/world.cr
Constant Summary
-
TileColor =
SF::Color.new(0, 63, 0)
Constructors
Instance Method Summary
Instance methods inherited from class RPG::Level
cols : Int32
cols,
dialog : Dialog
dialog,
dialog_key : String
dialog_key,
dialog_show(key : String, message_key : String)
dialog_show,
dialog_yml_file
dialog_yml_file,
draw(window : SF::RenderWindow)
draw,
draw_tile(window, x, y)
draw_tile,
draw_tiles(window)
draw_tiles,
height
height,
init_dialog_data
init_dialog_data,
objs : Array(Collidable)
objs,
play_bump_sound
play_bump_sound,
player : Player
player,
player_col : Int32
player_col,
player_collision_checks
player_collision_checks,
player_row : Int32
player_row,
rows : Int32
rows,
sound_bump : SF::Sound
sound_bump,
start
start,
tile_size
tile_size,
to_tile(col, row)
to_tile,
update(frame_time, keys : Keys, mouse : Mouse, joysticks : Joysticks)
update,
width
width
Constructor methods inherited from class RPG::Level
new(player : Player, rows : Int32 = 9, cols : Int32 = 9, player_row : Int32 = 0, player_col : Int32 = 0)
new
Constructor Detail
Instance Method Detail
def
draw_tile(window, x, y)
#