Now have a configurable displayable tilemap to do better tiles.
This commit is contained in:
parent
b66a3154c7
commit
7fe6ad174d
10 changed files with 40 additions and 16 deletions
|
@ -188,7 +188,7 @@ void System::draw_map(DinkyECS::World &world, Map &game_map, const Matrix &light
|
|||
|
||||
for(size_t y = 0; y < end_y; ++y) {
|
||||
for(size_t x = 0; x < end_x; ++x) {
|
||||
string tile = tiles[start.y+y][start.x+x] == L'#' ? config.WALL_TILE : config.FLOOR_TILE;
|
||||
const string& tile = tiles.at(start.x+x, start.y+y);
|
||||
int light_value = debug.LIGHT ? 160 : lighting[start.y+y][start.x+x];
|
||||
|
||||
if(tile == config.WALL_TILE) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue