Escapist::Room
Inherits JSON::Serializable < Reference < Object
Constants
BorderColor = SF::Color.new(102, 102, 102)
BorderOutlineThickness = 8
SectionTiles = 15
TileFloorColor = SF::Color.new(6, 6, 6)
TileGridColor = SF::Color.new(13, 13, 13)
TileGridOutlineThickness = 2
TileSize = 128
Constructors
new(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceClass methods
tile_size
SourceInstance methods
clear_entered(*args, **options)
Sourceclear_entered(*args, **options, &)
Sourcecols
Sourcedisplay_name
Sourcedoors
Sourcedraw(window : SF::RenderWindow, p : Player | Nil)
Sourcedraw_border(window)
Sourcedraw_floor(window)
Sourcedraw_tile_cell(window, col, row)
Sourcedraw_tile_grid(window)
Sourceentered(*args, **options)
Sourceentered(*args, **options, &)
Sourceheight
Sourcekey
Sourcemove_tile_obj(col, row, new_col, new_row)
Sourceremove_tile_obj(col, row)
Sourcerows
Sources_cols
Sources_rows
Sourcespawn_player(player, room_key)
Sourcetile_obj?(col, row)
Sourcetile_size
Sourcetiles
Sourcetiles_near(x, y)
Sourceupdate(frame_time, keys : Keys, p : Player | Nil)
Sourceupdate_laser_blocks(frame_time)
Sourceupdate_laser_switches
Sourceupdate_tiles
Sourcewidth
Source