This commit is contained in:
2023-12-07 16:16:15 +01:00
parent 36be240e31
commit 4c48419721
2 changed files with 20 additions and 0 deletions

View File

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

View File

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