Mario: detect left/right collision
This commit is contained in:
@@ -8,8 +8,10 @@ void MarioVisitor::visit( const SDLPP::RenderObject &obj ) {
|
||||
case FLOOR_OVERWORLD_ID:
|
||||
if ( from == MARIO_FLOOR_DETECT )
|
||||
onGround = true;
|
||||
else if ( from == MARIO_SIDE_DETECT )
|
||||
stop = true;
|
||||
else if ( from == MARIO_LEFT_SIDE_DETECT )
|
||||
left = true;
|
||||
else if (from == MARIO_RIGHT_SIDE_DETECT )
|
||||
right = true;
|
||||
break;
|
||||
case DEATH_ID:
|
||||
death = true;
|
||||
|
||||
Reference in New Issue
Block a user