GUI for combat now works better and I can create sprites for things if I want.
This commit is contained in:
parent
46de98e6f4
commit
49a71e257e
10 changed files with 55 additions and 18 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue