The layout is now also coming from the bosses.json file so it's totally configured there.

This commit is contained in:
Zed A. Shaw 2025-10-23 23:11:48 -04:00
parent e5fa76b03c
commit 2d836a9e2a
6 changed files with 27 additions and 17 deletions

View file

@ -146,8 +146,14 @@ namespace textures {
return result;
}
SpriteTexture get_sprite(const string& name) {
return get(name, TMGR.sprite_textures);
SpriteTexture get_sprite(const string& name, bool duped) {
auto& st = get(name, TMGR.sprite_textures);
if(duped) {
st.sprite = make_shared<sf::Sprite>(*st.sprite);
}
return st;
}
SpriteTexture get_icon(const string& name) {