maj
This commit is contained in:
@@ -6,9 +6,8 @@
|
||||
#include <stdlib.h>
|
||||
#include <graph.h>
|
||||
#include "plateau_init.h"
|
||||
#include "ajout_score.c"
|
||||
|
||||
#define CYCLE 1000000L
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -16,7 +15,9 @@ void start (void) {
|
||||
|
||||
couleur green, grey, yellow, red, black, white;
|
||||
|
||||
int** tableau = plateau_init();
|
||||
int* plateau_tete_queue = plateau_init();
|
||||
|
||||
int** tableau = plateau_tete_queue[0];
|
||||
|
||||
int i, j;
|
||||
|
||||
@@ -28,15 +29,6 @@ void start (void) {
|
||||
|
||||
int score=0;
|
||||
|
||||
|
||||
|
||||
|
||||
InitialiserGraphique();
|
||||
|
||||
/*initialisation de la taille de la fenetre de jeux*/
|
||||
|
||||
CreerFenetre(10,10,1450,840);
|
||||
|
||||
|
||||
/* remplisage du fond d'écran */
|
||||
|
||||
@@ -93,7 +85,7 @@ void start (void) {
|
||||
/* remplissage du plateau de jeux avec les couleur adéquate */
|
||||
|
||||
|
||||
for (i = 0; i < LIGNES; i++) {
|
||||
for (i = 0; i < LIGNES; i++) {
|
||||
for (j = 0; j < COLONNES; j++) {
|
||||
|
||||
if ( tableau[i][j] == 0) {
|
||||
@@ -103,7 +95,7 @@ void start (void) {
|
||||
RemplirRectangle(20*(j+1),20*(i+1),20,20);
|
||||
}
|
||||
|
||||
if ( tableau[i][j] == 1 || tableau[i][j] == -1 || tableau[i][j] == -2) {
|
||||
if ( tableau[i][j] == 1) {
|
||||
|
||||
yellow = CouleurParComposante(255,255,0);
|
||||
ChoisirCouleurDessin(yellow);
|
||||
@@ -134,13 +126,6 @@ void start (void) {
|
||||
free(tableau);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Touche();
|
||||
FermerGraphique();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user