plante piranha completée
This commit is contained in:
parent
eb1e3e1fc6
commit
b6ae4b8cc9
BIN
SuperCbr.g1a
BIN
SuperCbr.g1a
Binary file not shown.
17
src/tuyau.c
17
src/tuyau.c
|
@ -6,6 +6,7 @@
|
|||
#include <camera.h>
|
||||
#include <gint/std/string.h>
|
||||
#include <base.h>
|
||||
#include <ennemi.h>
|
||||
|
||||
static teleport_t teleporteurs[6]={0}; // 6 max
|
||||
static int nombre_teleporteurs=0; // Nombre d'entités utilisés dans le niveau actuel
|
||||
|
@ -56,7 +57,21 @@ void teleportersActive()
|
|||
mario.p.vx=0; mario.p.vy=0; // Disables every move of mario
|
||||
cameraAdjust();
|
||||
|
||||
for (i=0; i<ennemis_global_size; i++) plante_tour
|
||||
for (int j=0; j<ennemis_global_size; j++) if (ennemis_global[j].type==PLANTE_ID) for (int k=0; k<99; k++) plante_tour(&ennemis_global[j]);
|
||||
|
||||
const tuyau_t c = *((tuyau_t*)worldGetCell(mario.p.x, mario.p.y));
|
||||
|
||||
if (c.type==TUYAU && c.y==2) // animation de sortie
|
||||
{
|
||||
for (int j=0; j<8; j++)
|
||||
{
|
||||
dclear(C_WHITE); worldDraw(0,0); dupdate();
|
||||
waitNextFrame(); waitNextFrame();
|
||||
mario.p.y++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue