//PinPopper Source Code #include #include #include #include #include #include main() { int gd = DETECT, gm, ch; std::cout << "Pin Popper !" << std::endl << "Coded By Dave Hatman & Ibrahim d'Ewood - Tweet: @CoinJewelsGifts - WebDevDuo" << std::endl << std::endl; std::cout << "The Aim Of This Game Is To Shoot The Nucleus of Each Enemy Double Bubble !" << std::endl; std::cout << "Each Double Bubble Has A Nucleus Which You Must Hit With Your Yellow Ack-Ack Gun" << std::endl; std::cout << "The Enemy Double Bubbles Expand & Shrink Whilst Their Nucleus Stays The Same Size..." << std::endl << std::endl; std::cout << "You Start Off With 1 Enemy Double Bubble Increasing To 256 Enemy Double Bubbles Each Decreasing In Size" << std::endl; std::cout << "9 Stages In All - Each Stage Becomes More Difficult Than The Former Stage Harder & Your Shelter Can Delapidate To Nothing " << std::endl; std::cout << "You Gain Points By Shooting The Nucleus Of Each Enemy Double Bubble In The Shortest Time" << std::endl << std::endl ; std::cout << "You Have Only One Life & Time Finished Is Important!" << std::endl; std::cout << "Anyone Who Finishes The 9th Stage Will Recieve A Code To Enter Into A Final With 11 Others" << std::endl; std::cout << "The Prize For The Winner Of The Showdown Will Be A Trophy & A Gift Voucher" << std::endl; std::cout << "All 12 Finalists Will Recieve A Gift Voucher!" << std::endl; std::cout << "The 12 Finalists Will Comprise Of The Quickest 12 Gameplayers To Receive A 9th Stage Finished Code" << std::endl << std::endl; std::cout << "The Top Prize Gift Voucher Will Be £250 With The 11 Other Finalists Receiving £50 Gift Vouchers & Medals...Good Luck!!!"; sleep(60); initgraph(&gd, &gm, "C:\\TC\\BGI"); setlinestyle( USERBIT_LINE, 3, 5 ); //YELLOW ARROW setcolor(YELLOW); line(10,10,50,50); //SHELTER setcolor(RED); circle(10,10,50); //ENEMY_BUBBLE while (1) { if ( kbhit() ) { // Stores the pressed key in ch ch = getch(); // Terminates the loop // when escape is pressed if (int(ch) == 27) break; } setcolor(RED); circle(200,200,75); sleep(1); setcolor(GREEN); circle(200,200,75); sleep(1); setcolor(YELLOW); circle(200,200,10); } closegraph(); return 0; }