Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include "gfx.h"
- #include <stdlib.h>
- #include <time.h>
- int score_add(int score1);
- int guess_minus(int guess1);
- int main()
- { //146
- char c,n;
- int x,y,score,guess;
- char *test = "Would you like to play a game? Y/N" ;
- char *start = "Press the Y button to start LEVEL 1";
- char *starttwo = "Press any button to start LEVEL 2";
- char *startthree = "Press any button to start LEVEL 3";
- char *a = "A";
- char *b = "B";
- char *cc = "C";
- char *d = "D";
- char *e = "E";
- char *f = "F";
- char *g = "G";
- char *h = "H";
- char *i = "I";
- char *j = "J";
- char *k = "K";
- char *l = "L";
- char *stagethree = "WELCOME TO LEVEL THREE";
- char *instruct = "INSTRUCTIONS";
- char *instructone = "1. Use your mouse to click on the correct color";
- char *instructtwo = "2. If you do not have a mouse, press the character on the keyboard following said character on the screen";
- char *instructthre = "3. You have 3 guesses, picking the wrong color 3 times would mean game over";
- char *final = "4. The high score is 5 so do your best yeaa";
- char *levelone = "LEVEL 1-1";
- char *leveltwo = "LEVEL 1-2";
- char *levelthree = "LEVEL 1-3";
- char *levelfour = "LEVEL 1-4";
- char *levelfive = "LEVEL 1-5";
- char *leveltwoone = "LEVEL 2-1";
- char *leveltwotwo = "LEVEL 2-2";
- char *leveltwothree = "LEVEL 2-3";
- char *leveltwofour = "LEVEL 2-4";
- char *leveltwofive = "LEVEL 2-5";
- char *levelthreeone = "LEVEL 3-1";
- char *finalone = "CONGRATULATIONS! THIS IS THE FINAL STAGE";
- char *finaltwo = "THERE IS ONLY ONE QUESTION, BUT IT IS THE HARDEST ONE";
- char *finalfinal = "YOU HAVE COMPLETED THE GAME! GOOD JOB!";
- char *congratsone = "CONGRATULATIONS you have completed level 1";
- char *congratstwo = "CONGRATULATIONS you have completed level 2";
- char *between = "Left click the mouse or press any key to continue";
- char *finish = "Press any button to quit";
- char *next = "Press Y to go to the next page";
- char *nexttwo = "Press any button to go to LEVEL 2";
- char *red = "RED";
- char *lblue = "LIGHT BLUE";
- char *dblue = "DARK BLUE";
- char *yellow = "YELLOW";
- char *dgreen = "DARK GREEN";
- char *lgreen = "LIGHT GREEN";
- char *brown = "BROWN";
- char *purple ="PURPLE";
- char *pink = "PINK";
- char *black = "BLACK";
- char *grey = "GREY";
- char *cyan = "CYAN";
- char *correct = "CORRECT";
- char *wrong = "WRONG";
- char *guessone = "You have 1 guesses left";
- char *guesstwo = "You have 2 guesses left";
- char *guessthree = "You have 3 guesses left";
- char *scorezero = "SCORE = 0";
- char *scoreone = "SCORE = 1";
- char *scoretwo = "SCORE = 2";
- char *scorethree = "SCORE = 3";
- char *scorefour = "SCORE = 4";
- char *scorefive = "SCORE = 5";
- char *whitetrapez = "WHITE TRAPEZIUM";
- char *end = "Okay, Please come again!";
- char *end1 = "Press any key to exit";
- char *gg = "You have 0 guesses left.";
- char *gameover = "GAME OVER";
- guess = 3;
- score = 0;
- gfx_open(3000,1000,"COLOR MATCHING GAME YAYY");
- gfx_clear_color(255,255,255);
- gfx_clear();
- gfx_color(0,0,0);
- gfx_text(test,800,500);
- c = gfx_wait();
- gfx_clear();
- gfx_text(instruct,50,50);
- gfx_text(instructone,50,100);
- gfx_text(instructtwo,50,150);
- gfx_text(instructthre,50,200);
- gfx_text(final,50,250);
- gfx_text(next,50,300);
- c = gfx_wait();
- gfx_clear();
- while (1) {//143
- x = gfx_xpos();
- y = gfx_ypos();
- if ((c =='Y') || (c == 'y'))
- {//165
- gfx_clear(); //level one start (125 - 241)
- gfx_text(start,800,500);
- c = gfx_wait();
- gfx_clear();
- gfx_text(levelone,1100,100);
- gfx_text(red,100,100);
- gfx_text(scorezero,100,200);
- gfx_text(guessthree,100,300);
- // setting line color
- gfx_color(0,0,0);
- //drawing vertical grid
- gfx_line(600,0,600,1000);
- gfx_line(800,0,800,1000);
- gfx_line(1000,0,1000,1000);
- //drawing horizontal grid
- gfx_line(600,200,1000,200);
- gfx_line(600,400,1000,400);
- gfx_line(600,600,1000,600);
- gfx_line(600,800,1000,800);
- gfx_line(600,1000,1000,1000);
- // drawing in circles with different colors
- gfx_color(0,0,0); //black
- gfx_fillcircle(700,100,150);
- gfx_color(255,0,0); //red
- gfx_fillcircle(900,100,150);
- gfx_color(0,255,0); //light green
- gfx_fillcircle(700,300,150);
- gfx_color(0,0,255); //light blue
- gfx_fillcircle(900,300,150);
- gfx_color(255,255,0); //yellow
- gfx_fillcircle(700,500,150);
- gfx_color(0,128,0); //dark green
- gfx_fillcircle(900,500,150);
- gfx_color(255,0,255); //pink
- gfx_fillcircle(700,700,150);
- gfx_color(128,0,128); //purple
- gfx_fillcircle(900,700,150);
- gfx_color(0,0,100); //dark blue
- gfx_fillcircle(700,900,150);
- gfx_color(204,102,0); //brown
- gfx_fillcircle(900,900,150);
- //Letter in circle
- gfx_color(0,0,0);
- gfx_text(a,610,102);
- gfx_text(b,810,102);
- gfx_text(cc,610,302);
- gfx_text(d,810,302);
- gfx_text(e,610,502);
- gfx_text(f,810,502);
- gfx_text(g,610,702);
- gfx_text(h,810,702);
- gfx_text(i,610,902);
- gfx_text(j,810,902);
- c = gfx_wait();
- if ( c == 'b' || (x >= 800 && x <= 1000) && (y >= 0 && y <= 200)) // correct decision
- {//140
- score = score_add(score);
- gfx_clear();
- gfx_text(correct,800,300);
- gfx_text(scoreone,800,400);
- gfx_text(guessthree,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",score);
- c = gfx_wait();
- gfx_clear();
- }//136
- else // wrong decision
- {//163
- guess = guess_minus(guess);
- gfx_clear();
- gfx_text(wrong,800,300);
- gfx_text(scorezero,800,400);
- gfx_text(guesstwo,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",guess);
- c = gfx_wait();
- gfx_clear();
- }//155
- if (score == 1)
- {
- gfx_text(guessthree,100,250);
- gfx_text(scoreone,100,200);
- }
- if (guess == 2)
- {
- gfx_text(guesstwo,100,250);
- gfx_text(scorezero,100,200);
- } //level one end (125 - 241)
- gfx_text(leveltwo,1100,100);//level two start (244 - 391)
- gfx_text(lblue,100,100);
- // setting line color
- gfx_color(0,0,0);
- //drawing vertical grid
- gfx_line(600,0,600,1000);
- gfx_line(800,0,800,1000);
- gfx_line(1000,0,1000,1000);
- //drawing horizontal grid
- gfx_line(600,200,1000,200);
- gfx_line(600,400,1000,400);
- gfx_line(600,600,1000,600);
- gfx_line(600,800,1000,800);
- gfx_line(600,1000,1000,1000);
- // drawing in circles with different colors
- gfx_color(255,0,255); //pink
- gfx_fillcircle(700,100,150);
- gfx_color(255,255,0); //yellow
- gfx_fillcircle(900,100,150);
- gfx_color(255,0,0); //red
- gfx_fillcircle(700,300,150);
- gfx_color(0,0,100); //dark blue
- gfx_fillcircle(900,300,150);
- gfx_color(204,102,0); //brown
- gfx_fillcircle(700,500,150);
- gfx_color(0,128,0); //dark green
- gfx_fillcircle(900,500,150);
- gfx_color(0,0,0); //black
- gfx_fillcircle(700,700,150);
- gfx_color(0,255,0); //light green
- gfx_fillcircle(900,700,150);
- gfx_color(0,0,255); //light blue
- gfx_fillcircle(700,900,150);
- gfx_color(128,0,128); //purple
- gfx_fillcircle(900,900,150);
- //Letter in circle
- gfx_color(0,0,0);
- gfx_text(a,610,102);
- gfx_text(b,810,102);
- gfx_text(cc,610,302);
- gfx_text(d,810,302);
- gfx_text(e,610,502);
- gfx_text(f,810,502);
- gfx_text(g,610,702);
- gfx_text(h,810,702);
- gfx_text(i,610,902);
- gfx_text(j,810,902);
- c = gfx_wait();
- gfx_color(0,0,0);
- if (c == 'i' || (gfx_xpos() >= 600 && gfx_xpos() <= 800) && (gfx_ypos() >= 800 && gfx_ypos() <= 1000)) // correct condition
- {//347
- score = score_add(score);
- if (score == 2)
- {//334
- gfx_clear();
- gfx_text(correct,800,300);
- gfx_text(scoretwo,800,400);
- gfx_text(guessthree,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",score);
- x = gfx_wait();
- gfx_clear();
- }//325
- else if (score == 1)
- {//346
- gfx_clear();
- gfx_text(correct,800,300);
- gfx_text(scoreone,800,400);
- gfx_text(guesstwo,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",score);
- c = gfx_wait();
- gfx_clear();
- }//337
- }//322
- else//wrong condition
- {//375
- guess = guess_minus(guess);
- if (guess == 2)
- {//361
- gfx_clear();
- gfx_text(wrong,800,300);
- gfx_text(scoreone,800,400);
- gfx_text(guesstwo,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",guess);
- c = gfx_wait();
- gfx_clear();
- }//353
- else if(guess == 1)
- {//374
- gfx_clear();
- gfx_text(wrong,800,300);
- gfx_text(scorezero,800,400);
- gfx_text(guessone,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",guess);
- c = gfx_wait();
- gfx_clear();
- }//365
- }//350
- if (score == 2)
- {
- gfx_text(guessthree,100,250);
- gfx_text(scoretwo,100,200);
- }
- if (score == 1)
- {
- gfx_text(guesstwo,100,250);
- gfx_text(scoreone,100,200);
- }
- if (score == 0)
- {
- gfx_text(guessone,100,250);
- gfx_text(scorezero,100,200);
- }//level two end (244-391)
- gfx_text(levelthree,1100,100);//level three (392 - 561)
- gfx_text(black,100,100);
- // setting line color
- gfx_color(0,0,0);
- //drawing vertical grid
- gfx_line(600,0,600,1000);
- gfx_line(800,0,800,1000);
- gfx_line(1000,0,1000,1000);
- //drawing horizontal grid
- gfx_line(600,200,1000,200);
- gfx_line(600,400,1000,400);
- gfx_line(600,600,1000,600);
- gfx_line(600,800,1000,800);
- gfx_line(600,1000,1000,1000);
- // drawing in circles with different colors
- gfx_color(0,0,255); //light blue
- gfx_fillcircle(700,100,150);
- gfx_color(255,0,255); //pink
- gfx_fillcircle(900,100,150);
- gfx_color(0,0,100); //dark blue
- gfx_fillcircle(700,300,150);
- gfx_color(0,255,0); //light green
- gfx_fillcircle(900,300,150);
- gfx_color(204,102,0); //brown
- gfx_fillcircle(700,500,150);
- gfx_color(0,0,0); //black
- gfx_fillcircle(900,500,150);
- gfx_color(0,128,0); //dark green
- gfx_fillcircle(700,700,150);
- gfx_color(128,0,128); //purple
- gfx_fillcircle(900,700,150);
- gfx_color(255,0,0); //red
- gfx_fillcircle(700,900,150);
- gfx_color(255,255,0); //yellow
- gfx_fillcircle(900,900,150);
- //Letter in circle
- gfx_color(0,0,0);
- gfx_text(a,610,102);
- gfx_text(b,810,102);
- gfx_text(cc,610,302);
- gfx_text(d,810,302);
- gfx_text(e,610,502);
- gfx_text(f,810,502);
- gfx_text(g,610,702);
- gfx_text(h,810,702);
- gfx_text(i,610,902);
- gfx_text(j,810,902);
- c = gfx_wait();
- gfx_color(0,0,0);
- if (c == 'f' || (gfx_xpos() >= 800 && gfx_xpos() <= 1000) && (gfx_ypos() >= 400 && gfx_ypos() <= 600)) // correct condition
- {// 506
- score = score_add(score);
- if (score == 3)
- {//481
- gfx_clear();
- gfx_text(correct,800,300);
- gfx_text(scorethree,800,400);
- gfx_text(guessthree,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",score);
- c = gfx_wait();
- gfx_clear();
- }//472
- else if (score == 2)
- {//493
- gfx_clear();
- gfx_text(correct,800,300);
- gfx_text(scoretwo,800,400);
- gfx_text(guesstwo,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",score);
- c = gfx_wait();
- gfx_clear();
- }//484
- else if (score == 1)
- {//505
- gfx_clear();
- gfx_text(correct,800,300);
- gfx_text(scoreone,800,400);
- gfx_text(guessone,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",score);
- c = gfx_wait();
- gfx_clear();
- }//496
- }//469
- else//wrong condition
- {//545
- guess = guess_minus(guess);
- if (guess == 2)
- {//521
- gfx_clear();
- gfx_text(wrong,800,300);
- gfx_text(scoretwo,800,400);
- gfx_text(guesstwo,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",guess);
- c = gfx_wait();
- gfx_clear();
- }//512
- else if(guess == 1)
- {//533
- gfx_clear();
- gfx_text(wrong,800,300);
- gfx_text(scoreone,800,400);
- gfx_text(guessone,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",guess);
- c = gfx_wait();
- gfx_clear();
- }//524
- else if (guess == 0)
- {//544
- gfx_clear();
- gfx_text(wrong,800,300);
- gfx_text(gg,800,350);
- gfx_text(gameover,800,400);
- gfx_text("Score = redacted", 800,450);
- gfx_text(finish,800,500);
- c = gfx_wait();
- break;
- }//536
- }//509
- if (score == 3)
- {
- gfx_text(guessthree,100,250);
- gfx_text(scorethree,100,200);
- }
- if (score == 2)
- {
- gfx_text(guesstwo,100,250);
- gfx_text(scoretwo,100,200);
- }
- if (score == 1)
- {
- gfx_text(guessone,100,250);
- gfx_text(scoreone,100,200);
- }//level three end(392 - 561)
- gfx_text(levelfour,1100,100);//level four start (563 -731)
- gfx_text(lgreen,100,100);
- // setting line color
- gfx_color(0,0,0);
- //drawing vertical grid
- gfx_line(600,0,600,1000);
- gfx_line(800,0,800,1000);
- gfx_line(1000,0,1000,1000);
- //drawing horizontal grid
- gfx_line(600,200,1000,200);
- gfx_line(600,400,1000,400);
- gfx_line(600,600,1000,600);
- gfx_line(600,800,1000,800);
- gfx_line(600,1000,1000,1000);
- // drawing in circles with different colors
- gfx_color(255,255,0); //yellow
- gfx_fillcircle(700,100,150);
- gfx_color(0,0,0); //black
- gfx_fillcircle(900,100,150);
- gfx_color(0,0,100); //dark blue
- gfx_fillcircle(700,300,150);
- gfx_color(128,0,128); //purple
- gfx_fillcircle(900,300,150);
- gfx_color(204,102,0); //brown
- gfx_fillcircle(700,500,150);
- gfx_color(255,0,255); //pink
- gfx_fillcircle(900,500,150);
- gfx_color(0,128,0); //dark green
- gfx_fillcircle(700,700,150);
- gfx_color(0,255,0); //light green
- gfx_fillcircle(900,700,150);
- gfx_color(0,0,255); //light blue
- gfx_fillcircle(700,900,150);
- gfx_color(255,0,0); //red
- gfx_fillcircle(900,900,150);
- //Letter in circle
- gfx_color(0,0,0);
- gfx_text(a,610,102);
- gfx_text(b,810,102);
- gfx_text(cc,610,302);
- gfx_text(d,810,302);
- gfx_text(e,610,502);
- gfx_text(f,810,502);
- gfx_text(g,610,702);
- gfx_text(h,810,702);
- gfx_text(i,610,902);
- gfx_text(j,810,902);
- c = gfx_wait();
- gfx_color(0,0,0);
- if (c == 'h' || (gfx_xpos() >= 800 && gfx_xpos() <= 1000) && (gfx_ypos() >= 600 && gfx_ypos() <= 800)) // correct condition
- {//677
- score = score_add(score);
- if (score == 4)
- {//653
- gfx_clear();
- gfx_text(correct,800,300);
- gfx_text(scorefour,800,400);
- gfx_text(guessthree,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",score);
- c = gfx_wait();
- gfx_clear();
- }//643
- else if (score == 3)
- {//655
- gfx_clear();
- gfx_text(correct,800,300);
- gfx_text(scorethree,800,400);
- gfx_text(guesstwo,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",score);
- c = gfx_wait();
- gfx_clear();
- }//664
- else if (score == 2)
- {//676
- gfx_clear();
- gfx_text(correct,800,300);
- gfx_text(scoretwo,800,400);
- gfx_text(guessone,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",score);
- c = gfx_wait();
- gfx_clear();
- }//667
- }//640
- else
- {//716
- guess = guess_minus(guess);
- if (guess == 2)
- {//692
- gfx_clear();
- gfx_text(wrong,800,300);
- gfx_text(scorethree,800,400);
- gfx_text(guesstwo,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",guess);
- c = gfx_wait();
- gfx_clear();
- }//683
- if (guess == 1)
- {//704
- gfx_clear();
- gfx_text(wrong,800,300);
- gfx_text(scoretwo,800,400);
- gfx_text(guessone,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",guess);
- c = gfx_wait();
- gfx_clear();
- }//695
- if (guess == 0)
- {//715
- gfx_clear();
- gfx_text(wrong,800,300);
- gfx_text(gg,800,350);
- gfx_text(gameover,800,400);
- gfx_text("Score = redacted", 800,450);
- gfx_text(finish,800,500);
- c = gfx_wait();
- break;
- }//707
- }//680
- if (score == 4)
- {
- gfx_text(guessthree,100,250);
- gfx_text(scorefour,100,200);
- }
- if (score == 3)
- {
- gfx_text(guesstwo,100,250);
- gfx_text(scorethree,100,200);
- }
- if (score == 2)
- {
- gfx_text(guessone,100,250);
- gfx_text(scoretwo,100,200);
- }// level four end (563 - 731)
- gfx_text(levelfive,1100,100);//level five start (733 -
- gfx_text(yellow,100,100);
- // setting line color
- gfx_color(0,0,0);
- //drawing vertical grid
- gfx_line(600,0,600,1000);
- gfx_line(800,0,800,1000);
- gfx_line(1000,0,1000,1000);
- //drawing horizontal grid
- gfx_line(600,200,1000,200);
- gfx_line(600,400,1000,400);
- gfx_line(600,600,1000,600);
- gfx_line(600,800,1000,800);
- gfx_line(600,1000,1000,1000);
- // drawing in circles with different colors
- gfx_color(128,0,128); //purple
- gfx_fillcircle(700,100,150);
- gfx_color(0,0,255); //light blue
- gfx_fillcircle(900,100,150);
- gfx_color(255,255,0); //yellow
- gfx_fillcircle(700,300,150);
- gfx_color(0,0,100); //dark blue
- gfx_fillcircle(900,300,150);
- gfx_color(204,102,0); //brown
- gfx_fillcircle(700,500,150);
- gfx_color(255,0,255); //pink
- gfx_fillcircle(900,500,150);
- gfx_color(0,128,0); //dark green
- gfx_fillcircle(700,700,150);
- gfx_color(255,0,0); //red
- gfx_fillcircle(900,700,150);
- gfx_color(0,255,0); //light green
- gfx_fillcircle(700,900,150);
- gfx_color(0,0,0); //black
- gfx_fillcircle(900,900,150);
- //Letter in circle
- gfx_color(0,0,0);
- gfx_text(a,610,102);
- gfx_text(b,810,102);
- gfx_text(cc,610,302);
- gfx_text(d,810,302);
- gfx_text(e,610,502);
- gfx_text(f,810,502);
- gfx_text(g,610,702);
- gfx_text(h,810,702);
- gfx_text(i,610,902);
- gfx_text(j,810,902);
- c = gfx_wait();
- gfx_color(0,0,0);
- if (c == 'c' || (gfx_xpos() >= 600 && gfx_xpos() <= 800) && (gfx_ypos() >= 200 && gfx_ypos() <= 400)) // correct condition
- {
- score = score_add(score);
- if (score == 5)
- {//140
- gfx_clear();
- gfx_text(correct,800,300);
- gfx_text(scorefive,800,400);
- gfx_text(guessthree,800,450);
- //printf("%d\n",score);
- c = gfx_wait();
- gfx_clear();
- }//136
- if (score == 4)
- {//140
- gfx_clear();
- gfx_text(correct,800,300);
- gfx_text(scorefour,800,400);
- gfx_text(guesstwo,800,450);
- //printf("%d\n",score);
- c = gfx_wait();
- gfx_clear();
- }//136
- if (score == 3)
- {//140
- gfx_clear();
- gfx_text(correct,800,300);
- gfx_text(scorethree,800,400);
- gfx_text(guessone,800,450);
- //printf("%d\n",score);
- c = gfx_wait();
- gfx_clear();
- }//136
- }
- else
- {
- guess = guess_minus(guess);
- if (guess == 2)
- {
- gfx_clear();
- gfx_text(wrong,800,300);
- gfx_text(scorefour,800,400);
- gfx_text(guesstwo,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",guess);
- c = gfx_wait();
- gfx_clear();
- }
- if (guess == 1)
- {
- gfx_clear();
- gfx_text(wrong,800,300);
- gfx_text(scorethree,800,400);
- gfx_text(guessone,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",guess);
- c = gfx_wait();
- gfx_clear();
- }
- if (guess == 0)
- {
- gfx_clear();
- gfx_text(wrong,800,300);
- gfx_text(gg,800,350);
- gfx_text(gameover,800,400);
- gfx_text("Score = redacted", 800,450);
- gfx_text(finish,800,500);
- c = gfx_wait();
- break;
- }
- }
- if (score == 5)
- {
- gfx_text(scorefive,100,200);
- gfx_text(nexttwo,100,100);
- }
- if (score == 4)
- {
- gfx_text(scorefour,100,200);
- gfx_text(nexttwo,100,100);
- }
- if (score == 3)
- {
- gfx_text(scorethree,100,200);
- gfx_text(nexttwo,100,100);
- }
- c = gfx_wait();
- score = 0;
- guess = 3;
- //level one(91 - 183)
- gfx_clear();
- gfx_text(starttwo,800,500);
- c = gfx_wait();
- gfx_clear();
- gfx_color(0,0,0);
- gfx_text(leveltwoone,1100,100);
- gfx_text(grey,100,100);
- gfx_text(scorezero,100,200);
- gfx_text(guessthree,100,300);
- // setting line color
- gfx_color(0,0,0);
- //drawing vertical grid
- gfx_line(600,0,600,800);
- gfx_line(800,0,800,800);
- gfx_line(1000,0,1000,800);
- gfx_line(1200,0,1200,800);
- //drawing horizontal grid
- gfx_line(600,200,1200,200);
- gfx_line(600,400,1200,400);
- gfx_line(600,600,1200,600);
- gfx_line(600,800,1200,800);
- // drawing in circles with different colors
- gfx_color(0,0,0); //black
- gfx_fillcircle(700,100,150);
- gfx_color(255,0,0); //red
- gfx_fillcircle(900,100,150);
- gfx_color(0,255,0); //light green
- gfx_fillcircle(700,300,150);
- gfx_color(0,0,255); //light blue
- gfx_fillcircle(900,300,150);
- gfx_color(255,255,0); //yellow
- gfx_fillcircle(700,500,150);
- gfx_color(0,128,0); //dark green
- gfx_fillcircle(900,500,150);
- gfx_color(255,0,255); //pink
- gfx_fillcircle(700,700,150);
- gfx_color(128,0,128); //purple
- gfx_fillcircle(900,700,150);
- gfx_color(0,0,100); //dark blue
- gfx_fillcircle(1100,100,150);
- gfx_color(0,255,255); //cyan
- gfx_fillcircle(1100,300,150);
- gfx_color(204,102,0); //brown
- gfx_fillcircle(1100,500,150);
- gfx_color(112,128,144); //grey
- gfx_fillcircle(1100,700,150);
- //Letter in circle
- gfx_color(0,0,0);
- gfx_text(a,610,102);
- gfx_text(b,810,102);
- gfx_text(cc,1010,102);
- gfx_text(d,610,302);
- gfx_text(e,810,302);
- gfx_text(f,1010,302);
- gfx_text(g,610,502);
- gfx_text(h,810,502);
- gfx_text(i,1010,502);
- gfx_text(j,610,702);
- gfx_text(k,810,702);
- gfx_text(l,1010,702);
- c = gfx_wait();
- if (c == 'l' || (x >= 1000 && x <= 1200) && (y >= 600 && y <= 800)) // correct decision
- {//140
- score = score_add(score);
- gfx_clear();
- gfx_text(correct,800,300);
- gfx_text(scoreone,800,400);
- gfx_text(guessthree,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",score);
- c = gfx_wait();
- gfx_clear();
- }//136
- else // wrong decision
- {//163
- guess = guess_minus(guess);
- gfx_clear();
- gfx_text(wrong,800,300);
- gfx_text(scorezero,800,400);
- gfx_text(guesstwo,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",guess);
- c = gfx_wait();
- gfx_clear();
- }//155
- if (score == 1)
- {
- gfx_text(guessthree,100,250);
- gfx_text(scoreone,100,200);
- }
- if (guess == 2)
- {
- gfx_text(guesstwo,100,250);
- gfx_text(scorezero,100,200);
- }
- //level two(186 - 295)
- gfx_text(leveltwotwo,1100,100);
- gfx_text(purple,100,100);
- // setting line color
- gfx_color(0,0,0);
- //drawing vertical grid
- gfx_line(600,0,600,800);
- gfx_line(800,0,800,800);
- gfx_line(1000,0,1000,800);
- gfx_line(1200,0,1200,800);
- //drawing horizontal grid
- gfx_line(600,200,1200,200);
- gfx_line(600,400,1200,400);
- gfx_line(600,600,1200,600);
- gfx_line(600,800,1200,800);
- // drawing in circles with different colors
- gfx_color(255,0,0); //red
- gfx_fillcircle(700,100,150);
- gfx_color(255,255,0); //yellow
- gfx_fillcircle(900,100,150);
- gfx_color(0,0,255); //light blue
- gfx_fillcircle(700,300,150);
- gfx_color(0,255,0); //light green
- gfx_fillcircle(900,300,150);
- gfx_color(0,0,0); //black
- gfx_fillcircle(700,500,150);
- gfx_color(0,0,100); //dark green
- gfx_fillcircle(900,500,150);
- gfx_color(255,0,255); //pink
- gfx_fillcircle(700,700,150);
- gfx_color(128,0,128); //purple
- gfx_fillcircle(900,700,150);
- gfx_color(0,128,0); //dark blue
- gfx_fillcircle(1100,100,150);
- gfx_color(112,128,144); //grey
- gfx_fillcircle(1100,300,150);
- gfx_color(204,102,0); //brown
- gfx_fillcircle(1100,500,150);
- gfx_color(0,255,255); //cyan
- gfx_fillcircle(1100,700,150);
- //Letter in circle
- gfx_color(0,0,0);
- gfx_text(a,610,102);
- gfx_text(b,810,102);
- gfx_text(cc,1010,102);
- gfx_text(d,610,302);
- gfx_text(e,810,302);
- gfx_text(f,1010,302);
- gfx_text(g,610,502);
- gfx_text(h,810,502);
- gfx_text(i,1010,502);
- gfx_text(j,610,702);
- gfx_text(k,810,702);
- gfx_text(l,1010,702);
- c = gfx_wait();
- gfx_color(0,0,0);
- if (c == 'k' || (gfx_xpos() >= 800 && gfx_xpos() <= 1000) && (gfx_ypos() >= 600 && gfx_ypos() <= 900)) // correct condition
- {
- score = score_add(score);
- if (score == 2)
- {//140
- gfx_clear();
- gfx_text(correct,800,300);
- gfx_text(scoretwo,800,400);
- gfx_text(guessthree,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",score);
- x = gfx_wait();
- gfx_clear();
- }//136
- else if (score == 1)
- {//140
- gfx_clear();
- gfx_text(correct,800,300);
- gfx_text(scoreone,800,400);
- gfx_text(guesstwo,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",score);
- c = gfx_wait();
- gfx_clear();
- }//136
- }
- else//wrong condition
- {//163
- guess = guess_minus(guess);
- if (guess == 2)
- {
- gfx_clear();
- gfx_text(wrong,800,300);
- gfx_text(scoreone,800,400);
- gfx_text(guesstwo,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",guess);
- c = gfx_wait();
- gfx_clear();
- }//155
- else if(guess == 1)
- {
- gfx_clear();
- gfx_text(wrong,800,300);
- gfx_text(scorezero,800,400);
- gfx_text(guessone,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",guess);
- c = gfx_wait();
- gfx_clear();
- }//155
- }
- if (score == 2)
- {
- gfx_text(guessthree,100,250);
- gfx_text(scoretwo,100,200);
- }
- if (score == 1)
- {
- gfx_text(guesstwo,100,250);
- gfx_text(scoreone,100,200);
- }
- if (score == 0)
- {
- gfx_text(guessone,100,250);
- gfx_text(scorezero,100,200);
- }
- gfx_text(leveltwothree,1100,100);//level three (313 -
- gfx_text(lgreen,100,100);
- // setting line color
- gfx_color(0,0,0);
- //drawing vertical grid
- gfx_line(600,0,600,800);
- gfx_line(800,0,800,800);
- gfx_line(1000,0,1000,800);
- gfx_line(1200,0,1200,800);
- //drawing horizontal grid
- gfx_line(600,200,1200,200);
- gfx_line(600,400,1200,400);
- gfx_line(600,600,1200,600);
- gfx_line(600,800,1200,800);
- // drawing in circles with different colors
- gfx_color(0,0,255); //light blue
- gfx_fillcircle(700,100,150);
- gfx_color(255,0,0); //red
- gfx_fillcircle(900,100,150);
- gfx_color(0,128,0); //dark green
- gfx_fillcircle(700,300,150);
- gfx_color(0,0,0); //black
- gfx_fillcircle(900,300,150);
- gfx_color(255,255,0); //yellow
- gfx_fillcircle(700,500,150);
- gfx_color(0,255,255); //cyan
- gfx_fillcircle(900,500,150);
- gfx_color(112,128,144); //grey
- gfx_fillcircle(700,700,150);
- gfx_color(128,0,128); //purple
- gfx_fillcircle(900,700,150);
- gfx_color(204,102,0); //brown
- gfx_fillcircle(1100,100,150);
- gfx_color(0,0,100); //dark blue
- gfx_fillcircle(1100,300,150);
- gfx_color(0,255,0); //light green
- gfx_fillcircle(1100,500,150);
- gfx_color(255,0,255); //pink
- gfx_fillcircle(1100,700,150);
- //Letter in circle
- gfx_color(0,0,0);
- gfx_text(a,610,102);
- gfx_text(b,810,102);
- gfx_text(cc,1010,102);
- gfx_text(d,610,302);
- gfx_text(e,810,302);
- gfx_text(f,1010,302);
- gfx_text(g,610,502);
- gfx_text(h,810,502);
- gfx_text(i,1010,502);
- gfx_text(j,610,702);
- gfx_text(k,810,702);
- gfx_text(l,1010,702);
- c = gfx_wait();
- gfx_color(0,0,0);
- if (c == 'i' || (gfx_xpos() >= 1000 && gfx_xpos() <= 1200) && (gfx_ypos() >= 400 && gfx_ypos() <= 600)) // correct condition
- {
- score = score_add(score);
- if (score == 3)
- {//140
- gfx_clear();
- gfx_text(correct,800,300);
- gfx_text(scorethree,800,400);
- gfx_text(guessthree,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",score);
- c = gfx_wait();
- gfx_clear();
- }//136
- else if (score == 2)
- {//140
- gfx_clear();
- gfx_text(correct,800,300);
- gfx_text(scoretwo,800,400);
- gfx_text(guesstwo,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",score);
- c = gfx_wait();
- gfx_clear();
- }//136
- else if (score == 1)
- {//140
- gfx_clear();
- gfx_text(correct,800,300);
- gfx_text(scoreone,800,400);
- gfx_text(guessone,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",score);
- c = gfx_wait();
- gfx_clear();
- }//136
- }
- else//wrong condition
- {//163
- guess = guess_minus(guess);
- if (guess == 2)
- {
- gfx_clear();
- gfx_text(wrong,800,300);
- gfx_text(scoretwo,800,400);
- gfx_text(guesstwo,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",guess);
- c = gfx_wait();
- gfx_clear();
- }//155
- else if(guess == 1)
- {
- gfx_clear();
- gfx_text(wrong,800,300);
- gfx_text(scoreone,800,400);
- gfx_text(guessone,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",guess);
- c = gfx_wait();
- gfx_clear();
- }//155
- else if (guess == 0)
- {
- gfx_clear();
- gfx_text(wrong,800,300);
- gfx_text(gg,800,350);
- gfx_text(gameover,800,400);
- gfx_text("Score = redacted", 800,450);
- gfx_text(finish,800,500);
- c = gfx_wait();
- break;
- }
- }//66
- if (score == 3)
- {
- gfx_text(guessthree,100,250);
- gfx_text(scorethree,100,200);
- }
- if (score == 2)
- {
- gfx_text(guesstwo,100,250);
- gfx_text(scoretwo,100,200);
- }
- if (score == 1)
- {
- gfx_text(guessone,100,250);
- gfx_text(scoreone,100,200);
- }
- gfx_text(leveltwofour,1100,100);//level four
- gfx_text(dblue,100,100);
- // setting line color
- gfx_color(0,0,0);
- //drawing vertical grid
- gfx_line(600,0,600,800);
- gfx_line(800,0,800,800);
- gfx_line(1000,0,1000,800);
- gfx_line(1200,0,1200,800);
- //drawing horizontal grid
- gfx_line(600,200,1200,200);
- gfx_line(600,400,1200,400);
- gfx_line(600,600,1200,600);
- gfx_line(600,800,1200,800);
- // drawing in circles with different colors
- gfx_color(112,128,144); //grey
- gfx_fillcircle(700,100,150);
- gfx_color(255,0,0); //red
- gfx_fillcircle(900,100,150);
- gfx_color(0,0,0); //black
- gfx_fillcircle(700,300,150);
- gfx_color(0,0,255); //light blue
- gfx_fillcircle(900,300,150);
- gfx_color(0,255,255); //cyan
- gfx_fillcircle(700,500,150);
- gfx_color(0,128,0); //dark green
- gfx_fillcircle(900,500,150);
- gfx_color(255,0,255); //pink
- gfx_fillcircle(700,700,150);
- gfx_color(128,0,128); //purple
- gfx_fillcircle(900,700,150);
- gfx_color(0,255,0); //light green
- gfx_fillcircle(1100,100,150);
- gfx_color(255,255,0); //yellow
- gfx_fillcircle(1100,300,150);
- gfx_color(0,0,100); //dark blue
- gfx_fillcircle(1100,500,150);
- gfx_color(204,102,0); //brown
- gfx_fillcircle(1100,700,150);
- //Letter in circle
- gfx_color(0,0,0);
- gfx_text(a,610,102);
- gfx_text(b,810,102);
- gfx_text(cc,1010,102);
- gfx_text(d,610,302);
- gfx_text(e,810,302);
- gfx_text(f,1010,302);
- gfx_text(g,610,502);
- gfx_text(h,810,502);
- gfx_text(i,1010,502);
- gfx_text(j,610,702);
- gfx_text(k,810,702);
- gfx_text(l,1010,702);
- c = gfx_wait();
- gfx_color(0,0,0);
- if (c == 'i' || (gfx_xpos() >= 1000 && gfx_xpos() <= 1200) && (gfx_ypos() >= 400 && gfx_ypos() <= 600)) // correct condition
- {
- score = score_add(score);
- if (score == 4)
- {//140
- gfx_clear();
- gfx_text(correct,800,300);
- gfx_text(scorefour,800,400);
- gfx_text(guessthree,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",score);
- c = gfx_wait();
- gfx_clear();
- }//136
- else if (score == 3)
- {//140
- gfx_clear();
- gfx_text(correct,800,300);
- gfx_text(scorethree,800,400);
- gfx_text(guesstwo,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",score);
- c = gfx_wait();
- gfx_clear();
- }//136
- else if (score == 2)
- {//140
- gfx_clear();
- gfx_text(correct,800,300);
- gfx_text(scoretwo,800,400);
- gfx_text(guessone,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",score);
- c = gfx_wait();
- gfx_clear();
- }//136
- }
- else
- {
- guess = guess_minus(guess);
- if (guess == 2)
- {
- gfx_clear();
- gfx_text(wrong,800,300);
- gfx_text(scorethree,800,400);
- gfx_text(guesstwo,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",guess);
- c = gfx_wait();
- gfx_clear();
- }
- if (guess == 1)
- {
- gfx_clear();
- gfx_text(wrong,800,300);
- gfx_text(scoretwo,800,400);
- gfx_text(guessone,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",guess);
- c = gfx_wait();
- gfx_clear();
- }
- if (guess == 0)
- {
- gfx_clear();
- gfx_text(wrong,800,300);
- gfx_text(gg,800,350);
- gfx_text(gameover,800,400);
- gfx_text("Score = redacted", 800,450);
- gfx_text(finish,800,500);
- c = gfx_wait();
- break;
- }
- }
- if (score == 4)
- {
- gfx_text(guessthree,100,250);
- gfx_text(scorefour,100,200);
- }
- if (score == 3)
- {
- gfx_text(guesstwo,100,250);
- gfx_text(scorethree,100,200);
- }
- if (score == 2)
- {
- gfx_text(guessone,100,250);
- gfx_text(scoretwo,100,200);
- }
- gfx_text(leveltwofive,1100,100);//level five
- gfx_text(pink,100,100);
- // setting line color
- gfx_color(0,0,0);
- //drawing vertical grid
- gfx_line(600,0,600,800);
- gfx_line(800,0,800,800);
- gfx_line(1000,0,1000,800);
- gfx_line(1200,0,1200,800);
- //drawing horizontal grid
- gfx_line(600,200,1200,200);
- gfx_line(600,400,1200,400);
- gfx_line(600,600,1200,600);
- gfx_line(600,800,1200,800);
- // drawing in circles with different colors
- gfx_color(255,0,255); //pink
- gfx_fillcircle(700,100,150);
- gfx_color(0,255,0); //light green
- gfx_fillcircle(900,100,150);
- gfx_color(0,0,255); //light blue
- gfx_fillcircle(700,300,150);
- gfx_color(255,0,0); //red
- gfx_fillcircle(900,300,150);
- gfx_color(255,255,0); //yellow
- gfx_fillcircle(700,500,150);
- gfx_color(0,128,0); //dark green
- gfx_fillcircle(900,500,150);
- gfx_color(0,0,0); //black
- gfx_fillcircle(700,700,150);
- gfx_color(0,255,255); //cyan
- gfx_fillcircle(900,700,150);
- gfx_color(0,0,100); //dark blue
- gfx_fillcircle(1100,100,150);
- gfx_color(128,0,128); //purple
- gfx_fillcircle(1100,300,150);
- gfx_color(112,128,144); //grey
- gfx_fillcircle(1100,500,150);
- gfx_color(204,102,0); //brown
- gfx_fillcircle(1100,700,150);
- //Letter in circle
- gfx_color(0,0,0);
- gfx_text(a,610,102);
- gfx_text(b,810,102);
- gfx_text(cc,1010,102);
- gfx_text(d,610,302);
- gfx_text(e,810,302);
- gfx_text(f,1010,302);
- gfx_text(g,610,502);
- gfx_text(h,810,502);
- gfx_text(i,1010,502);
- gfx_text(j,610,702);
- gfx_text(k,810,702);
- gfx_text(l,1010,702);
- c = gfx_wait();
- gfx_color(0,0,0);
- if (c == 'a' || (gfx_xpos() >= 600 && gfx_xpos() <= 800) && (gfx_ypos() >= 0 && gfx_ypos() <= 200)) // correct condition
- {
- score = score_add(score);
- if (score == 5)
- {//140
- gfx_clear();
- gfx_text(correct,800,300);
- gfx_text(scorefive,800,400);
- gfx_text(guessthree,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",score);
- c = gfx_wait();
- gfx_clear();
- }//136
- if (score == 4)
- {//140
- gfx_clear();
- gfx_text(correct,800,300);
- gfx_text(scorefour,800,400);
- gfx_text(guesstwo,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",score);
- c = gfx_wait();
- gfx_clear();
- }//136
- if (score == 3)
- {//140
- gfx_clear();
- gfx_text(correct,800,300);
- gfx_text(scorethree,800,400);
- gfx_text(guessone,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",score);
- c = gfx_wait();
- gfx_clear();
- }//136
- }
- else
- {
- guess = guess_minus(guess);
- if (guess == 2)
- {
- gfx_clear();
- gfx_text(wrong,800,300);
- gfx_text(scorefour,800,400);
- gfx_text(guesstwo,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",guess);
- c = gfx_wait();
- gfx_clear();
- }
- if (guess == 1)
- {
- gfx_clear();
- gfx_text(wrong,800,300);
- gfx_text(scorethree,800,400);
- gfx_text(guessone,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",guess);
- c = gfx_wait();
- gfx_clear();
- }
- if (guess == 0)
- {
- gfx_clear();
- gfx_text(wrong,800,300);
- gfx_text(gg,800,350);
- gfx_text(gameover,800,400);
- gfx_text("Score = redacted", 800,450);
- gfx_text(finish,800,500);
- c = gfx_wait();
- break;
- }
- }
- gfx_text(congratstwo,100,100);
- if (score == 5)
- {
- gfx_text(scorefive,100,200);
- }
- if (score == 4)
- {
- gfx_text(scorefour,100,200);
- }
- if (score == 3)
- {
- gfx_text(scorethree,100,200);
- }
- gfx_text(startthree,100,150);
- c = gfx_wait();
- guess = 1;
- score = 0;
- gfx_open(3000,1000,"bew");
- gfx_clear_color(0,0,0);
- gfx_clear();
- gfx_color(255,255,255);
- gfx_text(stagethree,800,500);
- gfx_text(between,800,550);
- c = gfx_wait();
- gfx_clear();
- gfx_text(finalone,800,500);
- gfx_text(finaltwo,800,550);
- c = gfx_wait();
- gfx_clear();
- gfx_color(255,255,255);
- gfx_text(levelthreeone,1300,100);
- gfx_text(whitetrapez,100,100);
- gfx_text(scorezero,100,200);
- gfx_text(guessone,100,300);
- //setting line color
- gfx_color(255,255,255);
- //drawing vertical grid
- gfx_line(600,0,600,800);
- gfx_line(800,0,800,800);
- gfx_line(1000,0,1000,800);
- gfx_line(1200,0,1200,800);
- //drawing horizontal grid
- gfx_line(600,200,1200,200);
- gfx_line(600,400,1200,400);
- gfx_line(600,600,1200,600);
- gfx_line(600,800,1200,800);
- // triangle
- gfx_color(0,255,0);//light green
- gfx_line(650,75,750,75);
- gfx_line(750,75,700,125);
- gfx_line(700,125,650,75);
- gfx_color(138,43,226);//purple
- gfx_line(850,75,950,75);
- gfx_line(950,75,900,125);
- gfx_line(900,125,850,75);
- gfx_color(220,20,60);//red
- gfx_line(1050,75,1150,75);
- gfx_line(1150,75,1100,125);
- gfx_line(1100,125,1050,75);
- //parallelogram
- gfx_color(255,255,255);//white
- gfx_line(635,275,660,325);
- gfx_line(735,275,760,325);
- gfx_line(635,275,735,275);
- gfx_line(660,325,760,325);
- gfx_color(72,209,204);//light blue
- gfx_line(835,275,860,325);
- gfx_line(935,275,960,325);
- gfx_line(835,275,935,275);
- gfx_line(860,325,960,325);
- gfx_color(0,0,255);//dark blue
- gfx_line(1035,275,1060,325);
- gfx_line(1135,275,1160,325);
- gfx_line(1035,275,1135,275);
- gfx_line(1060,325,1160,325);
- //diamond
- gfx_color(0,0,255); //blue
- gfx_line(650,700,700,750);
- gfx_line(700,750,750,700);
- gfx_line(750,700,700,650);
- gfx_line(700,650,650,700);
- gfx_color(0,128,0); //dark green
- gfx_line(850,700,900,750);
- gfx_line(900,750,950,700);
- gfx_line(950,700,900,650);
- gfx_line(900,650,850,700);
- gfx_color(0,255,0);//light green
- gfx_line(1050,700,1100,750);
- gfx_line(1100,750,1150,700);
- gfx_line(1150,700,1100,650);
- gfx_line(1100,650,1050,700);
- //circle
- gfx_color(255,0,255); //pink
- gfx_circle(700,500,100);
- gfx_color(255,105,180); //light pink
- gfx_circle(900,500,100);
- gfx_color(255,255,0); //yellow
- gfx_circle(1100,500,100);
- //Letter in circle
- gfx_color(255,255,255);
- gfx_text(a,610,102);
- gfx_text(b,810,102);
- gfx_text(cc,1010,102);
- gfx_text(d,610,302);
- gfx_text(e,810,302);
- gfx_text(f,1010,302);
- gfx_text(g,610,502);
- gfx_text(h,810,502);
- gfx_text(i,1010,502);
- gfx_text(j,610,702);
- gfx_text(k,810,702);
- gfx_text(l,1010,702);
- c = gfx_wait();
- if(c == 'd' || (gfx_xpos() >= 600 && gfx_xpos() <= 800) && (gfx_ypos() >= 200 && gfx_ypos() <= 400))
- {
- gfx_clear();
- gfx_text(correct,800,300);
- gfx_text(scoreone,800,400);
- gfx_text(guessone,800,450);
- gfx_text(between,800,500);
- //printf("%d\n",score);
- c = gfx_wait();
- gfx_clear();
- gfx_text("Score = You won, it doesn't matter", 800,400);
- gfx_text("Time taken = More than 1 minute", 800,450);
- gfx_text(finalfinal,800,500);
- gfx_wait();
- break;
- }
- else // wrong decision
- {//163
- gfx_clear();
- gfx_color(255,255,255);
- gfx_text(wrong,800,300);
- gfx_text(gg,800,350);
- gfx_text(gameover,800,400);
- gfx_text("Score = redacted", 800,450);
- gfx_text(finish,800,500);
- c = gfx_wait();
- break;
- }//155
- c = gfx_wait();
- }//if
- }//while
- }// program end
- int score_add(int score1)
- {
- score1 = ++score1;
- return(score1);
- }
- int guess_minus(int guess1)
- {
- guess1 = --guess1;
- return(guess1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement