Mario: added destructible modifier to editor
This commit is contained in:
@@ -12,8 +12,12 @@ void MarioVisitor::visit( const SDLPP::RenderObject &obj ) {
|
||||
onGround = true;
|
||||
groundY = obj.getPos().getY();
|
||||
} else if ( from == MARIO_LEFT_SIDE_DETECT ) {
|
||||
if(!left && !right)
|
||||
movement_blockage = obj.getPos();
|
||||
left = true;
|
||||
} else if (from == MARIO_RIGHT_SIDE_DETECT ) {
|
||||
if(!left && !right)
|
||||
movement_blockage = obj.getPos();
|
||||
right = true;
|
||||
} else if (from == MARIO_TOP_DETECT) {
|
||||
top_hit = true;
|
||||
|
||||
Reference in New Issue
Block a user