Mario: destroy blocks 1 at a time, if jumping and would hit only with small side, move Mario a bit so the jump is successful
This commit is contained in:
+1
-1
@@ -119,7 +119,7 @@ void doInput( std::shared_ptr< SDLPP::Scene > scene ) {
|
||||
pollEvents( *scene );
|
||||
auto prevPos = mario->getDoubleRect().first;
|
||||
scene->updateScene();
|
||||
MarioVisitor mv{};
|
||||
MarioVisitor mv(mario->getMovement().getY() < 0);
|
||||
scene->visitCollisions( *mario, mv );
|
||||
if ( mv.isDead() ) {
|
||||
quit = true;
|
||||
|
||||
Reference in New Issue
Block a user