moteur.c
By: a guest | Mar 21st, 2010 | Syntax:
C | Size: 0.96 KB | Hits: 81 | Expires: Never
#include "moteur.h"
void CheckLoad(ge_Image *image, char *nom)
{
if(image)
{
printf(nom);
printf("was been loaded");
}else
{
printf(nom);
printf("was unabled to load");
}
}
int ChangePos(int position_y_depart, int position_y_new)
{
int retour = position_y_depart;
if(position_y_depart == 0)
{
retour = position_y_new;
}
return retour;
}
void MoveViseur()
{
if (pad.Buttons & PSP_CTRL_RIGHT)
{
xv += vitesse;
}
else if (pad.Buttons & PSP_CTRL_LEFT)
{
xv -= vitesse;
}
else if (pad.Buttons & PSP_CTRL_UP)
{
xv -= vitesse;
}
else if (pad.Buttons & PSP_CTRL_DOWN)
{
xv += vitesse;
}
}
void IncrementScore()
{
if ((pad.Buttons & PSP_CTRL_CROSS) && (bbleu_y == yv) && (xv = 60))
{
score++;
}
if ((pad.Buttons & PSP_CTRL_CROSS) && (bjaune_y == yv) && (xv = 60))
{
score++;
}
if ((pad.Buttons & PSP_CTRL_CROSS) && (bvert_y == yv) && (xv = 60))
{
score++;
}
}