Refactored out the tilemap since it was mostly doing nothing useful.
This commit is contained in:
parent
ea9f6bf383
commit
3a745d492a
15 changed files with 40 additions and 187 deletions
|
@ -417,9 +417,8 @@ void Raycaster::update_level(GameLevel level) {
|
|||
$sprites.clear();
|
||||
|
||||
$level = level;
|
||||
// BUG: this is way too complex, please make it easier, the issue is that I need to convert the maps to visible tiles and that involves wstring convert, but this is many steps done probably over and over
|
||||
auto& tiles = $level.map->tiles();
|
||||
$map = textures::convert_char_to_texture(tiles.$tile_ids);
|
||||
|
||||
$map = $level.map->tiles();
|
||||
|
||||
$level.world->query<components::Sprite>([&](const auto ent, auto& sprite) {
|
||||
// player doesn't need a sprite
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue