changes about intuitiveness & add complete support of teleporters

dev
Milang 3 years ago
parent fc84f10122
commit dbf5416ba7
  1. BIN
      SuperCbr.g1a
  2. BIN
      build-fx/SuperCbr.bin
  3. BIN
      build-fx/SuperCbr.elf
  4. 921
      build-fx/map
  5. BIN
      build-fx/src/level.c.o
  6. BIN
      build-fx/src/levelchanger.c.o
  7. BIN
      build-fx/src/tuyau.c.o
  8. 8
      src/level.c
  9. 6
      src/levelchanger.c
  10. 1
      src/tuyau.c

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.

@ -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)
{

@ -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;
}

@ -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;
}
}
}
Loading…
Cancel
Save