enble back scrolling due to high difficulty of 1-2
This commit is contained in:
parent
9fdd601693
commit
40ce577590
11
src/world.c
11
src/world.c
|
@ -173,11 +173,12 @@ void reset_camera()
|
|||
}
|
||||
|
||||
int world_get_real_x0() //mario delta en 0,0
|
||||
{ if (mario.p.x>mario_x_max)
|
||||
mario_x_max=mario.p.x;
|
||||
if (mario_x_max-40>mario.p.x)
|
||||
mario_x_max=mario.p.x;
|
||||
return min(max(mario_x_max-40,0),w_current_x*8-128);
|
||||
{ //if (mario.p.x>mario_x_max)
|
||||
// mario_x_max=mario.p.x;
|
||||
//if (mario_x_max-40>mario.p.x)
|
||||
// mario_x_max=mario.p.x;
|
||||
//return min(max(mario_x_max-40,0),w_current_x*8-128);
|
||||
return min(max(mario.p.x-40,0),w_current_x*8-128);
|
||||
}
|
||||
|
||||
void reload_camera()
|
||||
|
|
Loading…
Reference in New Issue