Mario: top collision detection
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user