test77
auto test77 =
q{--- test77
//
struct Tile {
bool blocked;
bool block_sight;
}
struct GameMap {
enum map_width = 40;
enum map_height = 40;
Tile[40][40] tiles;
}
void initialize_tiles(GameMap* map) {
for (i32 y = 0; y < map.map_height; ++y) {
for (i32 x = 0; x < map.map_width; ++x) {
map.tiles[y][x].blocked = true;
map.tiles[y][x].block_sight = true;
}
}
}
};
tests passing
functionsvariables