- // printf("Snail <-> Badguy %s %s %s %s %s\n", hit.left?"left":"", hit.right?"right":"", hit.top?"top":"", hit.bottom?"bottom":"", hit.crush?"crush":"");
- if( hit.left && dir == LEFT ){
- dir = RIGHT;
- sprite->set_action( "right" );
- physic.set_velocity_x(-physic.get_velocity_x());
- } else if( hit.right && dir == RIGHT ){
- dir = LEFT;
- sprite->set_action( "left" );
- physic.set_velocity_x(-physic.get_velocity_x());
- }
- return CONTINUE;