Friday, December 19, 2008

Sweet Iguh Final Release source code

/*
Project name : Sweet Iguh
Builder : Charles
Dilla
Handy
Vincent
*/

#include "stdio.h"
#include "time.h"
#include "conio.h"
#include "string.h"
#include "dos.h"
#include "stdlib.h"
#include "math.h"

char EG, nick[8], gbk, rep;
int pi, pl, l, spi, spl, ss, a, b, r, sd, ysd, ex, ey;
int x[15],y[15],i,yy[15],sc[15],exw[100],eyw[100],eiw;
float c, d , e, f, g;


void edw()
{
clrscr();
randomize();
textmode(C80); _setcursortype(0);

clrscr();

while(!kbhit())
{
exw[eiw] = rand()%80+1;
eyw[eiw] = rand()%25+1;
textcolor((random(15)+1)); gotoxy(exw[eiw],eyw[eiw]); cprintf("*");
}
}


void edl()
{
for(ex=1;ex<81;ex++)
{
for(ey=1;ey<26;ey++)
{
gotoxy(ex,ey);
printf("%c",178);
}
ex++;
for(ey=1;ey<26;ey++)
{
gotoxy(ex,ey);
printf("%c",178);
}
ex++;
for(ey=1;ey<26;ey++)
{
gotoxy(ex,ey);
printf("%c",178);
}
ex++;
for(ey=1;ey<26;ey++)
{
gotoxy(ex,ey);
printf("%c",178);
}
ex++;
for(ey=1;ey<26;ey++)
{
gotoxy(ex,ey);
printf("%c",178);
}
gotoxy(1,1);
_setcursortype(0);
sleep(1);
}
_setcursortype(0);
getchar();


do
{
textbackground(WHITE);
textcolor(RED);
clrscr();
gotoxy(35,15);
cprintf("MWAHAHAHAHA!!");
gotoxy(1,7);
cprintf("Mengherankan bukan??");
gotoxy(1,8);
cprintf("Ternyata Anda tidak sehebat yang saya kira. Belajar lagi ya nak!");
_setcursortype(0);
sleep(1);
clrscr();
gotoxy(1,7);
cprintf("Mengherankan bukan??");
gotoxy(1,8);
cprintf("Ternyata Anda tidak sehebat yang saya kira. Belajar lagi ya nak!");
_setcursortype(0);
sleep(1);
textbackground(BLACK);
textcolor(WHITE);
clrscr();
}
while(!kbhit());
}


void ssanimation()
{
for(i=0;i<15;i++)
{
x[i]=random(80);
yy[i]=random(25);
sc[i]=random(4);
if(sc[i]==0)sc[i]=10;
if(sc[i]==1)sc[i]=2;
if(sc[i]==2)sc[i]=1;
if(sc[i]==3)sc[i]=9;
}
while(!kbhit())
{
clrscr();
for(i=0;i<15;i++)
{
yy[i]++;
if(yy[i]>25)yy[i]=1;
y[i]=yy[i];
}
for(i=0;i<15;i++)
{
gotoxy(x[i],y[i]);
textcolor(sc[i]);
cprintf("S");
y[i]++;if(y[i]>25)y[i]=1;
gotoxy(x[i],y[i]);
textcolor(sc[i]);
cprintf("p");
y[i]++;if(y[i]>25)y[i]=1;
gotoxy(x[i],y[i]);
textcolor(sc[i]);
cprintf("e");
y[i]++;if(y[i]>25)y[i]=1;
gotoxy(x[i],y[i]);
textcolor(sc[i]);
cprintf("c");
y[i]++;if(y[i]>25)y[i]=1;
gotoxy(x[i],y[i]);
textcolor(sc[i]);
cprintf("i");
y[i]++;if(y[i]>25)y[i]=1;
gotoxy(x[i],y[i]);
textcolor(sc[i]);
cprintf("a");
y[i]++;if(y[i]>25)y[i]=1;
gotoxy(x[i],y[i]);
textcolor(sc[i]);
cprintf("l");
y[i]++;if(y[i]>25)y[i]=1;
gotoxy(x[i],y[i]);
textcolor(sc[i]);
cprintf(" ");
y[i]++;if(y[i]>25)y[i]=1;
gotoxy(x[i],y[i]);
textcolor(sc[i]);
cprintf("s");
y[i]++;if(y[i]>25)y[i]=1;
gotoxy(x[i],y[i]);
textcolor(sc[i]);
cprintf("t");
y[i]++;if(y[i]>25)y[i]=1;
gotoxy(x[i],y[i]);
textcolor(sc[i]);
cprintf("a");
y[i]++;if(y[i]>25)y[i]=1;
gotoxy(x[i],y[i]);
textcolor(sc[i]);
cprintf("g");
y[i]++;if(y[i]>25)y[i]=1;
gotoxy(x[i],y[i]);
textcolor(sc[i]);
cprintf("e");
_setcursortype(0);
}
sleep(1);
}
}


void outborder()
{
int xb, yb, gxb, gyb;
gxb=205;
gyb=186;
for(xb=2;xb<80;xb++)
{
gotoxy(xb,1);
printf("%c", gxb);
}
sleep(1);
for(yb=2;yb<25;yb++)
{
gotoxy(80,yb);
printf("%c", gyb);
}
sleep(1);
for(xb=2;xb<80;xb++)
{
gotoxy(xb,25);
printf("%c", gxb);
}
sleep(1);
for(yb=2;yb<25;yb++)
{
gotoxy(1,yb);
printf("%c", gyb);
}
_setcursortype(0);
sleep(1);
}


void outbordernd()
{
int xb, yb, gxb, gyb;
gxb=205;
gyb=186;
for(xb=2;xb<80;xb++)
{
gotoxy(xb,1);
printf("%c", gxb);
}
for(yb=2;yb<25;yb++)
{
gotoxy(80,yb);
printf("%c", gyb);
}
for(xb=2;xb<80;xb++)
{
gotoxy(xb,25);
printf("%c", gxb);
}
for(yb=2;yb<25;yb++)
{
gotoxy(1,yb);
printf("%c", gyb);
}
}


void inputgbk()
{
gotoxy(23,7);
printf("Gunting(G) / Batu(B) / Kertas(K) ??");
do
{
fflush(stdin);
gotoxy(40,9);
printf(" ");
gotoxy(40,9);
scanf("%c", &gbk);
pl=(int)gbk;
if(pl!=71 && pl!=66 && pl!=75)
{
gotoxy(9,8);
printf("Input yang anda masukkan salah! Silahkan masukkan kembali(G/B/K)");
}
}
while(pl!=71 && pl!=66 && pl!=75);
}


void specialstage()
{
clrscr();
gotoxy(34,2);
printf("Special stage\n");
ss=random(2);
gotoxy(1,7);
if(ss==0)
{
a=random(2);
if(a==0)
{
printf("Kali ini saya akan memberi sedikit kisi-kisi\n saya akan mengeluarkan ");
pi=random(3);
if(pi==0)printf("gunting");
if(pi==1)printf("batu");
if(pi==2)printf("kertas");
r=0;
}
if(a==1)
{
printf("Kali ini saya akan memberi sedikit kisi-kisi\n saya akan mengeluarkan ");
b=random(3);
if(b==0)printf("gunting");
if(b==1)printf("batu");
if(b==2)printf("kertas");
}
}
if(ss==1)
{
printf("Periksalah validitas dari aritmatika berikut,\n");
printf("bila valid, maka saya akan mengeluarkan sesuai apa yang saya katakan,\n");
printf("bila tidak valid, maka sebaliknya tetapi bisa juga sesuai\n");
a=random(2);
b=random(4);
d=random(100);
e=random(100);
f=random(10)+1;
g=random(10)+1;
if(f==g)
{
ss=random(2)+1;
g=g+ss;
}
if(a==0)
{
if(b==0)
{
c=d+e;
printf("%.0f + %.0f = %.0f\n", d, e, c);
}
if(b==1)
{
c=d-e;
printf("%.0f - %.0f = %.0f\n", d, e, c);
}
if(b==2)
{
c=d*e;
printf("%.2f x %.2f = %.2f\n", d, e, c);
}
if(b==3)
{
c=d/e;
printf("%.2f / %.2f = %.2f\n", d, e, c);
}
pi=random(3);
if(pi==0)printf("Jika benar saya akan mengeluarkan Gunting");
if(pi==1)printf("Jika benar saya akan mengeluarkan Batu");
if(pi==2)printf("Jika benar saya akan mengeluarkan Kertas");
r=0;
}
if(a==1)
{
if(b==0)
{
c=d+e+f-g;
printf("%.0f + %.0f = %.0f\n", d, e, c);
}
if(b==1)
{
c=d-e+f-g;
printf("%.0f - %.0f = %.0f\n", d, e, c);
}
if(b==2)
{
c=d*e+f-g;
printf("%.2f x %.2f = %.2f\n", d, e, c);
}
if(b==3)
{
c=d/e+f-g;
printf("%.2f / %.2f = %.2f\n", d, e, c);
}
pi=random(3);
if(pi==0)printf("Jika benar saya akan mengeluarkan Gunting");
if(pi==1)printf("Jika benar saya akan mengeluarkan Batu");
if(pi==2)printf("Jika benar saya akan mengeluarkan Kertas");
r=1;
}
}
sleep(5);
}


void versus()
{
gotoxy(11,10);
if(pl==71)
{
printf(" %c%c%c%c%c%c\n",178,178,178,178,178,178);
gotoxy(11,11);
printf("%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178);
gotoxy(11,12);
printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178);
gotoxy(11,13);
printf("%c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178);
gotoxy(11,14);
printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178);
gotoxy(11,15);
printf("%c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178);
gotoxy(11,16);
printf("%c%c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178,178);
gotoxy(11,17);
printf("%c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178);
gotoxy(11,18);
printf(" %c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178);
}
if(pl==66)
{
printf(" %c%c%c%c%c%c\n",178,178,178,178,178,178);
gotoxy(11,11);
printf("%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178);
gotoxy(11,12);
printf("%c%c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178,178);
gotoxy(11,13);
printf("%c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178);
gotoxy(11,14);
printf("%c%c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178,178);
gotoxy(11,15);
printf("%c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178);
gotoxy(11,16);
printf("%c%c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178,178);
gotoxy(11,17);
printf("%c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178);
gotoxy(11,18);
printf(" %c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178);
}
if(pl==75)
{
printf(" %c%c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178,178);
gotoxy(11,11);
printf("%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178);
gotoxy(11,12);
printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178);
gotoxy(11,13);
printf("%c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178);
gotoxy(11,14);
printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178);
gotoxy(11,15);
printf("%c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178);
gotoxy(11,16);
printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178);
gotoxy(11,17);
printf("%c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178);
gotoxy(11,18);
printf(" %c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178);
}

gotoxy(35,13);
printf("%c| |%c |%c%c%c%c\n",186,186,201,205,205,205);
gotoxy(35,14);
printf("%c| |%c |%c \n",186,186,186);
gotoxy(35,15);
printf("%c| |%c |%c%c%c%c\n",186,186,200,205,205,187);
gotoxy(35,16);
printf("%c| |%c |%c\n",186,186,186);
gotoxy(35,17);
printf("%c%c %c%c |%c\n",92,92,47,47,186);
gotoxy(35,18);
printf(" %c%c%c%c |%c%c%c%c\n\n",92,92,47,47,205,205,205,188);

gotoxy(51,10);
if(pi==0)
{
printf(" %c%c%c%c%c%c\n",178,178,178,178,178,178);
gotoxy(51,11);
printf(" %c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178);
gotoxy(51,12);
printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178);
gotoxy(51,13);
printf(" %c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178);
gotoxy(51,14);
printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178);
gotoxy(51,15);
printf(" %c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178);
gotoxy(51,16);
printf(" %c%c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178,178);
gotoxy(51,17);
printf(" %c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178);
gotoxy(51,18);
printf(" %c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178);
}
if(pi==1)
{
gotoxy(60,10);
printf(" %c%c%c%c%c%c\n",178,178,178,178,178,178);
gotoxy(60,11);
printf(" %c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178);
gotoxy(60,12);
printf("%c%c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178,178);
gotoxy(60,13);
printf(" %c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178);
gotoxy(60,14);
printf("%c%c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178,178);
gotoxy(60,15);
printf(" %c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178);
gotoxy(60,16);
printf("%c%c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178,178);
gotoxy(60,17);
printf(" %c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178);
gotoxy(60,18);
printf("%c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178);
}
if(pi==2)
{
printf(" %c%c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178,178);
gotoxy(51,11);
printf(" %c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178);
gotoxy(51,12);
printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178);
gotoxy(51,13);
printf(" %c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178);
gotoxy(51,14);
printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178);
gotoxy(51,15);
printf(" %c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178);
gotoxy(51,16);
printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178);
gotoxy(51,17);
printf(" %c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178);
gotoxy(51,18);
printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c\n",178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178);
}
}


void countdown()
{
gotoxy(40,11);
printf("3");
sleep(1);
gotoxy(40,12);
printf("2");
sleep(1);
gotoxy(40,13);
printf("1");
sleep(1);
}


void hasil()
{
gotoxy(34,11);
if(pl==71 && pi==0)
{
gotoxy(39,11);
printf("Draw");
}
if(pl==71 && pi==1)
{
printf("Pak Iguh menang");
spi++;
}
if(pl==71 && pi==2)
{
if(strlen(nick)==1)gotoxy(37,11);
if(strlen(nick)==2)gotoxy(37,11);
if(strlen(nick)==3)gotoxy(36,11);
if(strlen(nick)==4)gotoxy(36,11);
if(strlen(nick)==5)gotoxy(35,11);
if(strlen(nick)==6)gotoxy(35,11);
if(strlen(nick)==7)gotoxy(34,11);
if(strlen(nick)==8)gotoxy(34,11);
printf("%s menang",nick);
spl++;
}
if(pl==66 && pi==0)
{
if(strlen(nick)==1)gotoxy(37,11);
if(strlen(nick)==2)gotoxy(37,11);
if(strlen(nick)==3)gotoxy(36,11);
if(strlen(nick)==4)gotoxy(36,11);
if(strlen(nick)==5)gotoxy(35,11);
if(strlen(nick)==6)gotoxy(35,11);
if(strlen(nick)==7)gotoxy(34,11);
if(strlen(nick)==8)gotoxy(34,11);
printf("%s menang",nick);
spl++;
}
if(pl==66 && pi==1)
{
gotoxy(39,11);
printf("Draw");
}
if(pl==66 && pi==2)
{
printf("Pak Iguh menang");
spi++;
}
if(pl==75 && pi==0)
{
printf("Pak Iguh menang");
spi++;
}
if(pl==75 && pi==1)
{
if(strlen(nick)==1)gotoxy(37,11);
if(strlen(nick)==2)gotoxy(37,11);
if(strlen(nick)==3)gotoxy(36,11);
if(strlen(nick)==4)gotoxy(36,11);
if(strlen(nick)==5)gotoxy(35,11);
if(strlen(nick)==6)gotoxy(35,11);
if(strlen(nick)==7)gotoxy(34,11);
if(strlen(nick)==8)gotoxy(34,11);
printf("%s menang", nick);
spl++;
}
if(pl==75 && pi==2)
{
gotoxy(39,11);
printf("Draw");
}
}


void printnama()
{
if(strlen(nick)==1)gotoxy(26,2);
if(strlen(nick)==2)gotoxy(26,2);
if(strlen(nick)==3)gotoxy(25,2);
if(strlen(nick)==4)gotoxy(25,2);
if(strlen(nick)==5)gotoxy(24,2);
if(strlen(nick)==6)gotoxy(24,2);
if(strlen(nick)==7)gotoxy(23,2);
if(strlen(nick)==8)gotoxy(23,2);
printf("%s",nick);
gotoxy(48,2);
printf("Pak Iguh");
}


void printscore()
{
gotoxy(23,24);
printf("Win = %d", spl);
gotoxy(48,24);
printf("Win = %d", spi);
}


void main()
{
randomize();
clrscr();
_setcursortype(0);
sleep(2);
//Welcome
for(ysd=3;ysd<7;ysd++)
{
clrscr();
gotoxy(2,2);
for(sd=2;sd<80;sd++)
{
printf("=");
}
gotoxy(2,ysd);
for(sd=2;sd<80;sd++)
{
printf("=");
}
_setcursortype(0);
sleep(1);
}
outborder();
gotoxy(2,3);
printf("Sweet Iguh\n");
gotoxy(2,4);
printf("Just for fun, please enjoy it.. ^^\n");
gotoxy(2,5);
printf("By: Charles, Dilla, Handy, and Vincent\n");
_setcursortype(0);
sleep(1);
clrscr();
sleep(1);
//blink
do
{
gotoxy(2,2);
for(sd=2;sd<80;sd++)
{
textcolor(11);
cprintf("=");
}
gotoxy(2,6);
for(sd=2;sd<80;sd++)
{
textcolor(11);
cprintf("=");
}
outbordernd();
gotoxy(2,3);
textcolor(11);
cprintf("Sweet Iguh\n");
gotoxy(2,4);
textcolor(11);
cprintf("Just for fun, please enjoy it.. ^^\n");
gotoxy(2,5);
textcolor(11);
cprintf("By: Charles, Dilla, Handy, and Vincent\n");
gotoxy(2,7);
textcolor(10);
cprintf("Hit Enter to play the game, Esc for exit\n");
fflush(stdin);
_setcursortype(0);
EG=getch();
if((int)EG==27)
{
gotoxy(28,13);
printf("You will miss me so much..");
_setcursortype(0);
getch();
return 0;
}
}
while((int)EG!=13);
clrscr();

//intro
printf("Perkenalkan nama saya Iguh Widipangestu\n");
sleep(2);
printf("anda dapat memanggil saya Pak Iguh\n");
sleep(2);
printf("kali ini, saya akan mengajak anda bermain suit melawan saya\n");
sleep(2);
printf("barangsiapa yang scorenya lebih besar 3 daripada lawannya,\n");
sleep(2);
printf("maka dialah pemenangnya\n");
sleep(2);
printf("dan niscaya saya pasti menang\n");
for(l=0;l<5;l++)
{
sleep(1);
printf("ha ");
}
_setcursortype(0);
getch();


//input nick
do
{
clrscr();
gotoxy(1,2);
printf("( no space & <9 char )");
gotoxy(1,1);
printf("Oh iya.. Sebelumnya siapa namamu?? : ");
fflush(stdin);
scanf("%s", &nick);
if(strlen(nick)>8)
{
gotoxy(1,3);
printf("Nama tidak boleh lebih dari 8 huruf!");
getch();
}
}
while(strlen(nick)>8);
gotoxy(1,5);
printf("Baiklah %s, ayo kita mulai permainan ini!", nick);
sleep(3);

do
{
spi=0;
spl=0;

while(spi!=(spl+3) && spl!=(spi+3))
{
clrscr();
r=1;
if(((spl%3)==0 || ((spl+spi)%5)==0) && spl!=0 && spi!=0)
{
ssanimation();
specialstage();
}
clrscr();
printnama();
printscore();
inputgbk();

if(r==1)pi=random(3);
printf("\n\n");

countdown();
clrscr();
printnama();
printscore();
versus();
sleep(3);
hasil();
getch();
}
clrscr();
if(spi==(spl+3))
{
edl();
}
if(spl==(spi+3))
{
edw();
clrscr();
gotoxy(26,13);
printf("Wah!! boleh juga kemampuanmu!");
sleep(3);
getchar();
}
do
{
clrscr();
printf("Do you want to play again??(Y for yes, N for no) : ");
fflush(stdin);
scanf("%c", &rep);
}
while((int)rep!=89 && (int)rep!=78);
}
while((int)rep==89);

if((int)rep==78)
{
clrscr();
printf("Credits\n\n\n");
printf("Game concept\t\t: Vincent\n");
printf("Desain\t\t\t: Dilla, Handy, and Vincent\n");
printf("Special stage animation\t: Handy\n");
printf("Picture\t\t\t: Handy\n");
printf("Position\t\t: Dilla\n");
printf("Ending\t\t\t: Charles and Dilla\n");
printf("Coding\t\t\t: Vincent\n");
printf("User manual\t\t: Charles\n");
printf("Bug Tester\t\t: Charles, Dilla, and Handy\n");
printf("Bug checker\t\t: Vincent\n\n\n");
printf("Complier\t\t: Borland C++ 5.02\n");
printf("Virus Scanner\t\t: Avira and Kaspersky\n");
printf("Comment by\t\t: Charles\n");
printf("Special thanks to\t: Pak Iguh\n\n\n");
printf("Thank you for playing this game");
_setcursortype(0);
getch();
}
}

1 comment:

  1. kirain gw sweet iguh maenan apa...
    gtw nya suit cina..
    wakwak :D
    ada2 ajah...

    ReplyDelete