Add a couple of rats that help the rat king. Render them behind.

This commit is contained in:
Zed A. Shaw 2025-10-19 00:55:39 -04:00
parent 71e3c97cf0
commit e99c07b50c
2 changed files with 6 additions and 4 deletions

View file

@ -19,7 +19,9 @@
}, },
"fixtures": [ "fixtures": [
{"name": "torch_crappy", "scale": 0.8, "cell": "torch1"}, {"name": "torch_crappy", "scale": 0.8, "cell": "torch1"},
{"name": "torch_crappy", "scale": 0.8, "cell": "torch2"} {"name": "torch_crappy", "scale": 0.8, "cell": "torch2"},
{"name": "rat_with_sword", "scale": 0.8, "cell": "boss13"},
{"name": "rat_with_sword", "scale": 0.8, "cell": "boss16"}
] ]
}, },
{"_type": "Combat", "hp": 20, "max_hp": 20, "damage": 20, "dead": false}, {"_type": "Combat", "hp": 20, "max_hp": 20, "damage": 20, "dead": false},

View file

@ -108,12 +108,12 @@ namespace boss {
$arena.render(window); $arena.render(window);
window.draw(*$boss_sprite.sprite);
window.draw(*$player_sprite.sprite);
for(auto& fixture : $fixtures) { for(auto& fixture : $fixtures) {
window.draw(*fixture.st.sprite); window.draw(*fixture.st.sprite);
} }
window.draw(*$boss_sprite.sprite);
window.draw(*$player_sprite.sprite);
} }
bool UI::mouse(float x, float y, Modifiers mods) { bool UI::mouse(float x, float y, Modifiers mods) {