Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Kyle McMenomy Round Peg Program
- #include "DarkGDK.h"
- void DarkGDK() {
- int x,y;
- x = dbRND(640);
- y = dbRND(340);
- dbBox(x, y, x + 50, y + 50);
- int Pegx;
- int Pegy;
- dbPrint("Find the center point. Ender a x coordinate");
- Pegx = atoi(dbInput());
- dbPrint("Find the center point. Ender a y coordinate");
- Pegy = atoi(dbInput());
- while (Pegx != x && Pegy != y)
- {
- dbCLS();
- dbBox(x, y, x + 50, y + 50);
- dbCircle(Pegx,Pegy,25);
- dbPrint("Find the center point. Ender a x coordinate");
- Pegx = atoi(dbInput());
- dbPrint("Find the center point. Ender a y coordinate");
- Pegy = atoi(dbInput());
- }
- dbPrint("CONGRATULATIONS YOU WIN!!");
- dbWaitKey();
- }
Add Comment
Please, Sign In to add comment