Mario: top collision detection

This commit is contained in:
2021-05-23 23:57:29 +02:00
parent 8672830db8
commit bea479bf72
4 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ void loadMap( std::shared_ptr< SDLPP::Scene > &scene,
}
}
bool collision = false;
if ( id == FLOOR_ID ) {
if ( id == FLOOR_ID || id == BRICK_ID || id == BRICK_TOP_ID ) {
collision = true;
}
// TODO add modifiers to createTerrainBlock