changes about intuitiveness & add complete support of teleporters

This commit is contained in:
Milang 2020-01-25 11:35:07 +01:00
parent fc84f10122
commit dbf5416ba7
10 changed files with 475 additions and 461 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -374,6 +374,14 @@ void set_level(int w, int l)
mario.p.x=25;
mario.p.y=16;
teleport_t t[]=
{
{57,6, 212,12, MK_LITTLE}
};
set_teleporteurs(t, sizeof(t)/sizeof(teleport_t));
}
else if (w+1==1 && l+1==2)
{

View File

@ -102,6 +102,7 @@ static void levelchanger(int w)
}
else
{
dienretry:
new_game();
mario_smaller();
mario_immunity=0;
@ -111,6 +112,8 @@ static void levelchanger(int w)
set_best_time(w, choice, get_time_spent());
}
set_highscore(w, choice, get_score());
if (s==0)
goto dienretry;
}
}
@ -282,7 +285,8 @@ int play_level(int w, int l)
{
timer_stop(0);
// TODO ajouter temps au score etc
sleep_ms(3,3000);
if (finish_level==1)
sleep_ms(3,3000);
return finish_level;
}

View File

@ -38,6 +38,7 @@ void teleport_active()
}
mario.p.x=t.tx*8;
mario.p.y=t.ty*8;
mario.p.vx=mario.p.vy=0;
}
}
}