Mario: mushroom interaction with Mario

This commit is contained in:
2021-08-07 21:42:51 +02:00
parent 7b2adac922
commit f04dc1e23b
4 changed files with 30 additions and 5 deletions
+3
View File
@@ -58,6 +58,9 @@ void MarioVisitor::visit( const SDLPP::RenderObject &obj ) {
newX = obj.getDoubleRect().first.getX() +
obj.getDoubleRect().second.getX();
break;
case MUSHROOM_ID:
mushroom = true;
break;
default:
break;
}