Mario: Add restart and background color for menus
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
#include "goomba_visitor.hpp"
|
||||
|
||||
std::shared_ptr<SDLPP::Visitor>
|
||||
getVisitor(const MarioBlock &block, SDLPP::Scene &scene, bool &quit,
|
||||
getVisitor(const MarioBlock &block, SDLPP::Scene &scene, bool &death,
|
||||
int &coin_count,
|
||||
std::vector<std::shared_ptr<MarioBlock>> &moving_objects) {
|
||||
std::shared_ptr<SDLPP::Visitor> result{};
|
||||
@@ -13,7 +13,7 @@ getVisitor(const MarioBlock &block, SDLPP::Scene &scene, bool &quit,
|
||||
case MARIO_ID:
|
||||
result = std::static_pointer_cast<SDLPP::Visitor>(
|
||||
std::make_shared<MarioVisitor>(block.getMovement().getY() < 0,
|
||||
scene, quit, coin_count,
|
||||
scene, death, coin_count,
|
||||
moving_objects));
|
||||
break;
|
||||
case MUSHROOM_ID:
|
||||
|
||||
Reference in New Issue
Block a user