Mario: set scene's background objects

This commit is contained in:
2021-08-07 21:59:06 +02:00
parent 0608202483
commit e283b36229
2 changed files with 14 additions and 2 deletions
+2 -2
View File
@@ -79,7 +79,7 @@ public:
// TODO remove coin_block?
coin_block = coin;
_scene.addObject(coin);
_scene.setZIndex(coin, 1);
_scene.moveZJustAboveBackground(coin);
}
bool hasCoinBlock() {
@@ -96,7 +96,7 @@ public:
void setMushroomBlock(std::shared_ptr<MarioBlock> &mushroom) {
_scene.addObject(mushroom);
_scene.setZIndex(mushroom, 1);
_scene.moveZJustAboveBackground(mushroom);
_moving_objects.push_back(mushroom);
}