t
This commit is contained in:
parent
5248a8a2a9
commit
5bcdcef45c
@ -4,8 +4,12 @@
|
||||
#include "serpent.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#define HAUTEUR 40
|
||||
#define LARGEUR 60
|
||||
#define TAILLE_CASE 19
|
||||
#define NOMBRE_POMMES 5
|
||||
#define NOMBRE_OBSTACLES 20
|
||||
#define CYCLE 100000L
|
||||
void Attendre(unsigned int millisecondes);
|
||||
void Graphique();
|
||||
void AffichageBasique();
|
||||
|
1
main.c
1
main.c
@ -1,4 +1,3 @@
|
||||
#include "main.h"
|
||||
#include "serpent.h"
|
||||
#include "pommes.h"
|
||||
#include "obstacles.h"
|
||||
|
25
main.h
25
main.h
@ -1,25 +0,0 @@
|
||||
#ifndef MAIN_H
|
||||
#define MAIN_H
|
||||
#include "serpent.h"
|
||||
#include "pommes.h"
|
||||
#include "obstacles.h"
|
||||
#include "graphique.h"
|
||||
#define HAUTEUR 40
|
||||
#define LARGEUR 60
|
||||
#define TAILLE_CASE 19
|
||||
#define NOMBRE_POMMES 5
|
||||
#define NOMBRE_OBSTACLES 20
|
||||
#define CYCLE 100000L
|
||||
void Attendre(unsigned int millisecondes);
|
||||
void InitialiserJeu(Serpent* serpent, Pommes* pommes, Obstacles* obstacles);
|
||||
void AffichageBasique();
|
||||
void AfficherScore(int score);
|
||||
void LibererMemoire(Serpent* serpent, Pommes* pommes, Obstacles* obstacles);
|
||||
void AfficheTemps(int minute, int seconde);
|
||||
void AfficherEcranFin(int score);
|
||||
int PauseJeu();
|
||||
void AfficherSerpent(Serpent* serpent);
|
||||
void GenererObstacles(Obstacles* obstacles, Pommes* pommes, Serpent* serpent);
|
||||
void DeplacerSerpent(Serpent* serpent, int* direction);
|
||||
int GestionCollision(Serpent* serpent, Pommes* pommes, Obstacles* obstacles, int perdu, int* score);
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user