GUI for combat now works better and I can create sprites for things if I want.

This commit is contained in:
Zed A. Shaw 2025-02-18 11:28:55 -05:00
parent 46de98e6f4
commit 49a71e257e
10 changed files with 55 additions and 18 deletions

View file

@ -353,7 +353,7 @@ void Raycaster::set_level(GameLevel level) {
// player doesn't need a sprite
if(player.entity == ent) return;
fmt::println("entity {} will have sprite named {}", ent, sprite.name);
auto sprite_txt = $textures.sprite_textures.at(sprite.name);
auto sprite_txt = $textures.get(sprite.name);
$sprites.try_emplace(ent, sprite_txt);
});
}