ecran acceuil
This commit is contained in:
parent
11b6a7d7dd
commit
90d4108192
79
snake/ecr_lancement.c
Normal file
79
snake/ecr_lancement.c
Normal file
@ -0,0 +1,79 @@
|
|||||||
|
#include <stdlib.h>
|
||||||
|
#include <graph.h>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
int main(void) {
|
||||||
|
|
||||||
|
couleur grey, green, yellow, red;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
InitialiserGraphique();
|
||||||
|
|
||||||
|
CreerFenetre(10,10,1450,840);
|
||||||
|
|
||||||
|
grey = CouleurParComposante(50,205,50);
|
||||||
|
ChoisirCouleurDessin(grey);
|
||||||
|
RemplirRectangle(0,0,1450,840);
|
||||||
|
|
||||||
|
|
||||||
|
yellow = CouleurParComposante(255,255,0);
|
||||||
|
ChoisirCouleurDessin(yellow);
|
||||||
|
RemplirRectangle(100,100,1200,6);
|
||||||
|
RemplirRectangle(1300,100,6,220);
|
||||||
|
RemplirRectangle(90,320,1216,6);
|
||||||
|
RemplirRectangle(90,320,6,165);
|
||||||
|
RemplirRectangle(90,485,200,6);
|
||||||
|
RemplirRectangle(270,465,30,46);
|
||||||
|
DessinerSegment(300, 470, 380, 440);
|
||||||
|
DessinerSegment(300, 469, 380, 439);
|
||||||
|
DessinerSegment(300, 468, 380, 438);
|
||||||
|
DessinerSegment(300, 467, 380, 437);
|
||||||
|
|
||||||
|
|
||||||
|
EcrireTexte(700,200, "SNAKE", 2);
|
||||||
|
|
||||||
|
|
||||||
|
red = CouleurParComposante(255,0,0);
|
||||||
|
ChoisirCouleurDessin(red);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
EcrireTexte(400,500, "space = play", 2);
|
||||||
|
|
||||||
|
EcrireTexte(1000,500, "echap = quit", 2);
|
||||||
|
|
||||||
|
while (1) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
FermerGraphique();
|
||||||
|
|
||||||
|
return EXIT_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
BIN
snake/jeu-snake.jpeg
Normal file
BIN
snake/jeu-snake.jpeg
Normal file
Binary file not shown.
After ![]() (image error) Size: 48 KiB |
BIN
snake/lancement
Executable file
BIN
snake/lancement
Executable file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user