Modif menu et images menu
This commit is contained in:
parent
ab5a0f6c49
commit
12166505f6
BIN
Images/Fleche1.png
Normal file
BIN
Images/Fleche1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
BIN
Images/Fleche2.png
Normal file
BIN
Images/Fleche2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
BIN
Images/Menu1.png
Normal file
BIN
Images/Menu1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
BIN
Images/Menu2.png
Normal file
BIN
Images/Menu2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.6 KiB |
BIN
Images/Start(2).png
Normal file
BIN
Images/Start(2).png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.6 KiB |
BIN
Images/Start.png
Normal file
BIN
Images/Start.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.3 KiB |
46
menu.c
46
menu.c
@ -1,23 +1,47 @@
|
|||||||
#include<stdio.h>
|
|
||||||
#include<stdlib.h>
|
#include<stdlib.h>
|
||||||
#include<graph.h>
|
#include<graph.h>
|
||||||
|
#include<stdio.h>
|
||||||
|
|
||||||
//nombre de paire min = 4
|
//nombre de paire min = 4
|
||||||
|
|
||||||
void main(void){
|
int main(void){
|
||||||
char *choix="Coucou";
|
int xpos;
|
||||||
|
int ypos;
|
||||||
|
int i=4;
|
||||||
|
char choix[50];
|
||||||
InitialiserGraphique();
|
InitialiserGraphique();
|
||||||
CreerFenetre(0,0,1024,576);
|
CreerFenetre(0,0,1024,576);
|
||||||
couleur c=CouleurParComposante(255,255,255);
|
couleur c=CouleurParComposante(255,255,255);
|
||||||
ChoisirCouleurDessin(c);
|
ChoisirCouleurDessin(c);
|
||||||
ChargerImage("Images/background.png",0,0,0,0,1024,576);
|
ChargerImage("Images/background.png",0,0,0,0,1024,576);
|
||||||
DessinerRectangle(300,10,300,50);
|
ChargerImage("Images/Menu1.png",276,19,0,0,476,63);
|
||||||
RemplirRectangle(300,10,300,50);
|
|
||||||
DessinerRectangle(300,300,300,50);
|
|
||||||
RemplirRectangle(300,300,300,50);
|
|
||||||
c=CouleurParComposante(0,0,0);
|
c=CouleurParComposante(0,0,0);
|
||||||
ChoisirCouleurDessin(c);
|
ChoisirCouleurDessin(c);
|
||||||
EcrireTexte(300,30,"Jeu de Paires",2);
|
ChargerImage("Images/Menu2.png",323,250,0,0,383,44);
|
||||||
EcrireTexte(400,335,choix,1);
|
ChargerImage("Images/Fleche1.png",290,253,0,0,33,39);
|
||||||
Touche();
|
ChargerImage("Images/Fleche2.png",710,253,0,0,34,39);
|
||||||
FermerGraphique();
|
ChargerImage("Images/Start.png",375,400,0,0,280,79);
|
||||||
|
c=CouleurParComposante(255,255,255);
|
||||||
|
ChoisirCouleurDessin(c);
|
||||||
|
RemplirRectangle(300,300,300,50);
|
||||||
|
while(1){
|
||||||
|
if(SourisCliquee()==1){
|
||||||
|
xpos=_X;
|
||||||
|
ypos=_Y;
|
||||||
|
printf("x %d y %d\n",xpos,ypos);
|
||||||
|
if((xpos<=291 && xpos<=320) && (ypos>=256 && ypos<=287)){
|
||||||
|
printf("a");
|
||||||
|
/*i++;
|
||||||
|
if (i==21){
|
||||||
|
i=4;
|
||||||
|
}
|
||||||
|
snprintf(choix,50,"%d",i);
|
||||||
|
c=CouleurParComposante(255,255,255);
|
||||||
|
ChoisirCouleurDessin(c);
|
||||||
|
RemplirRectangle(300,300,300,50);
|
||||||
|
EcrireTexte(300,300,choix,2);*/
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return 1;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user