Add a couple of rats that help the rat king. Render them behind.
This commit is contained in:
parent
71e3c97cf0
commit
e99c07b50c
2 changed files with 6 additions and 4 deletions
|
|
@ -19,7 +19,9 @@
|
|||
},
|
||||
"fixtures": [
|
||||
{"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},
|
||||
|
|
|
|||
|
|
@ -108,12 +108,12 @@ namespace boss {
|
|||
|
||||
$arena.render(window);
|
||||
|
||||
window.draw(*$boss_sprite.sprite);
|
||||
window.draw(*$player_sprite.sprite);
|
||||
|
||||
for(auto& fixture : $fixtures) {
|
||||
window.draw(*fixture.st.sprite);
|
||||
}
|
||||
|
||||
window.draw(*$boss_sprite.sprite);
|
||||
window.draw(*$player_sprite.sprite);
|
||||
}
|
||||
|
||||
bool UI::mouse(float x, float y, Modifiers mods) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue