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:
@@ -17,6 +17,9 @@ void MarioVisitor::visit( const SDLPP::RenderObject &obj ) {
|
||||
right = true;
|
||||
} else if (from == MARIO_TOP_DETECT) {
|
||||
top_hit = true;
|
||||
} else if (from == MARIO_TOP_LEFT_DETECT || from == MARIO_TOP_RIGHT_DETECT) {
|
||||
rightleftpos = obj.getPos();
|
||||
top_left_right = true;
|
||||
}
|
||||
break;
|
||||
case DEATH_ID:
|
||||
|
||||
Reference in New Issue
Block a user