Diff for games/mines/mines.c between version 1.5 and 1.6
| version 1.5, 2003/06/27 02:18:31 |
version 1.6, 2003/07/12 12:43:13 |
|
|
| /* $Platon: games/mines/mines.c,v 1.4 2003/06/22 18:40:34 nepto Exp $ */ |
/* $Platon: games/mines/mines.c,v 1.5 2003/06/27 02:18:31 nepto Exp $ */ |
| |
|
| /* CONSTS */ |
/* CONSTS */ |
| #define EXENAME "mines.exe" |
#define EXENAME "mines.exe" |
| Line 893 BYTE DoAll(void) /* {{{ */ |
|
| Line 893 BYTE DoAll(void) /* {{{ */ |
|
| } |
} |
| else if (sqmark(x,y)==1) { |
else if (sqmark(x,y)==1) { |
| setcolor(YELLOW); |
setcolor(YELLOW); |
| line(xoff+barsize*x,yoff+barsize*y,xoff+barsize*x+barsize-1,yoff+barsize*y+barsize-1); |
line(xoff + barsize * x, |
| line(xoff+barsize*x,yoff+barsize*y+barsize-1,xoff+barsize*x+barsize-1,yoff+barsize*y); |
yoff + barsize * y, |
| |
xoff + barsize * x + barsize - 1, |
| |
yoff + barsize * y + barsize - 1); |
| |
line(xoff + barsize * x, |
| |
yoff + barsize * y + barsize - 1, |
| |
xoff + barsize * x + barsize - 1, |
| |
yoff + barsize * y); |
| } |
} |
| } |
} |
| } |
} |
| showmouse(); |
showmouse(); |
| while (kbhit())(void)getch(); |
while (kbhit()) |
| while (!releasebutton(0,NULL,NULL)&&!kbhit()); |
(void) getch(); |
| |
while (! releasebutton(0, NULL, NULL) && ! kbhit()); |
| hidemouse(); |
hidemouse(); |
| DrawDefWindow(500,190,290,"Upsss... SMOLA!"); |
DrawDefWindow(500,190,290,"Upsss... SMOLA!"); |
| outtextxy(getmaxx()/2,243,"Chces hrat znovu?"); |
outtextxy(getmaxx()/2,243,"Chces hrat znovu?"); |
| DrawNormButton(getmaxx()/2-65,262,"","Ano",GREEN,WHITE,WHITE); |
DrawNormButton(getmaxx()/2-65,262,"","Ano",GREEN,WHITE,WHITE); |
| DrawNormButton(getmaxx()/2+65,262,"","Nie",RED,WHITE,WHITE); |
DrawNormButton(getmaxx()/2+65,262,"","Nie",RED,WHITE,WHITE); |
| showmouse(); |
showmouse(); |
| while (kbhit())(void)getch(); |
while (kbhit()) |
| |
(void) getch(); |
| while (1) { |
while (1) { |
| if ((releasebutton(0,&x,&y)&&isinnormbutton(x,y,getmaxx()/2-65,262)) |
if ((but = releasebutton(0, &x, &y)) != 0) { |
| ||(kbhit()&&getch()==EOL)){ |
if (isinnormbutton(x, y, getmaxx() / 2 - 65, 262)) { |
| FadeOut(); |
FadeOut(); |
| return(1); |
return 1; |
| |
} |
| |
if (isinnormbutton(x, y, getmaxx() / 2 + 65, 262)) |
| |
return 0; |
| |
} |
| |
if (kbhit()) { |
| |
but = getch(); |
| |
if (but == EOL) { |
| |
FadeOut(); |
| |
return 1; |
| |
} |
| |
if (but == ESC) |
| |
return 0; |
| } |
} |
| if ((releasebutton(0,&x,&y)&&isinnormbutton(x,y,getmaxx()/2+65,262)) |
|
| ||(kbhit()&&getch()==ESC)) |
|
| return(0); |
|
| } |
} |
| } else { /* GAME WIN */ |
} else { /* GAME WIN */ |
| register int k, items; |
register int k, items; |
Platon Group <platon@platon.org> http://platon.org/
|
|