maj
This commit is contained in:
@@ -15,5 +15,16 @@ void deplacement(int* p) {
|
||||
|
||||
if (Touche() == "Xk_Left") {
|
||||
|
||||
p[tete_x][tete_y] = 0;
|
||||
|
||||
p[tete_x-1][tete_y] = 1;
|
||||
|
||||
p[queue_x][queue_y] = 0;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -11,12 +11,20 @@
|
||||
#define NBR_POMME 5
|
||||
#define TAILLE_SERPENT 10
|
||||
|
||||
struct serpent {
|
||||
int* ;
|
||||
int* queue;
|
||||
}
|
||||
|
||||
|
||||
int** plateau_init(void) {
|
||||
|
||||
int ligne_pomme, colonne_pomme, i;
|
||||
|
||||
int** tableau = NULL;
|
||||
|
||||
struct serpent
|
||||
|
||||
|
||||
srand(time(NULL));
|
||||
|
||||
@@ -38,6 +46,7 @@ int** plateau_init(void) {
|
||||
|
||||
tableau[((LIGNES/2)-5)+i][COLONNES/2] = 1;
|
||||
|
||||
serpent
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user