Welcome
Welcome to the forums of AntiRTFM's Absolute N00b Spoonfeed C++ Tutorials!

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, <a href="/profile.php?mode=register">join our community today</a>!

Small Game

Finished making your own program (thats not part of the practicing forums) ? Show it off here

Small Game

Postby pipey85 on Tue Aug 11, 2009 4:59 am

Before you guys attempt to play this, I must warn you that it is intended for an older audience as there are many drug related references. If you find this kind of thing offensive please dont say you havent been warned..... Other than that please enjoy my 1st release of of my 1st game =D

EDIT: release 1.1


Code: Select all
// TheDTGame.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "stdlib.h"
#include <iomanip>
#include <cstdlib>//for rand()
#include <windows.h>//for Sleep()
#include <iostream>
using namespace std;

int SmokeSpliff (int *s);
void DChoice (int *pXp, int *s, int *w, int *r, int *SpliffC);
int ChooseWeed(int *s, int *SpliffC);
int ChooseAcid(int *s, int *w, int *r);
int ChooseEcstasy(int *w, int *r);
int ChooseCoccaine(int *s, int *w, int *r);
int SleepyPlace();
int WastedPlace();
int RaveyPlace();
int GoToBed(int *s);
int GoToSofa(int *s, int *SpliffC);
int GoToPub(int *s, int *pXp, bool *pisHippyHappy);
int GoToWoods(int *w);
int GoToPark(int *w, int *SpliffC, int *pXp, bool *pisHippyHappy);
int BounceOffWalls(int *w);
int GoToClub(int *r, int *pXp, int SpliffC);
int GoToParty(int *r);
int RaveInWales(int *r, bool *pisHippyHappy);
bool RandomHippy(int *pXp, int *SpliffC);
void PrintStats(int *s, int *w, int *r, int *SpliffC, int *pXp);
void ChoosePlace(int *s, int *w, int *r, int *SpliffC, int *pXp, bool *pisHippyHappy);
void GameOver (int *pXp);
void DrawRepMatrix();// for acid trip (repetitive)
void DrawMsgMatrix();// for acid trip (message)
void DrawWastedFace();

void main()
{
   int xp = 0, Sleepness = 0, Wastedness = 0, Raveness = 0, SpliffCounter = 0;
   int *s = &Sleepness, *w = &Wastedness, *r = &Raveness, *SpliffC = &SpliffCounter, *pXp = &xp;
   bool isHippyHappy = false, *pisHippyHappy = &isHippyHappy;


for (int a = 0; a < 20; a++)   
      cout << "\\**/";
   cout << "\t\t\tWelcome Drug Takers! Lets take some drugs!" << endl;
   cout << setw(80) << "Created by Pipey85\n";
for (int a = 0; a < 20; a++)   
      cout << "\\**/";

while (xp < 50)
{
   
   DChoice(pXp, s, w, r, SpliffC);
   cout << endl << endl;
   
   cout << "\n\n" << setw(40) << "Press ENTER to continue";
   cin.get();
   PrintStats(s, w, r, SpliffC, pXp);
}//end of while(xp < 50)
DrawWastedFace();
*pisHippyHappy = RandomHippy(pXp, SpliffC);
PrintStats(s, w, r, SpliffC, pXp);
ChoosePlace (s, w, r, SpliffC, pXp, pisHippyHappy);
ChoosePlace (s, w, r, SpliffC, pXp, pisHippyHappy);



GameOver(pXp);

}


int SmokeSpliff (int *s)
{
cout << "You Smoke the spilff gaining 3xp";
*s += 10;
return 3;
}

void DChoice (int *pXp, int *s, int *w, int *r, int *SpliffC)
{
   int choice;
   bool error1 = true;

   while (error1)
   {
      error1 = false;
     
      cout << "Which will you take?\n\n";
      cout << "1.Weed\n2.Acid\n3.Ecstatsy\n4.Coccaine >>> ";
      cin >> choice;
     
      switch (choice)
{
case 1:
   {*pXp += ChooseWeed(s, SpliffC);
   break;}
case 2:
   {*pXp += ChooseAcid(s, w, r);
   break;}
case 3:
   {*pXp += ChooseEcstasy(w, r);
   break;}
case 4:
   {*pXp += ChooseCoccaine(s, w, r);
   break;}
default:
   error1 = true;
}
   }
   
}

void PrintStats(int *s, int *w, int *r, int *SpliffC, int *pXp)
{
   cin.get();
   system("cls");
   for (int a = 0; a < 40; a++)   
      cout << "=)";
   cout << "\nNumber of Spliffs: " << *SpliffC << "\t\tTotal XP: " << *pXp << endl;
   cout << "\n\tSleepiness: " << *s << "\t\tWastedness: " << *w << "\t\tRaveness: " << *r << endl;
      for (int a = 0; a < 40; a++)   
      cout << "(=";
      cout << "\n";
   
}
int ChooseWeed(int *s, int *SpliffC)
{
   int SmokeOrSave = 4, xp = 0;
   while (SmokeOrSave > 2 || SmokeOrSave < 0)
   {
   cout << "You roll a phatie bom batie\nHEEELLLL YEAAAHH!\nYou gain 10xp";
   cout << "\n\nDo you decide to\n1.Smoke it\n2.Stash it for later? >>> ";
   cin >> SmokeOrSave;
   }
   xp +=10;
   if (SmokeOrSave == 1)
   xp += SmokeSpliff(s);
   else if (SmokeOrSave == 2)
   {
      cout << "\nYou stash the Spliff in your fagbox for later";
      ++(*SpliffC);
      *s += 5;
   }
   else
   {
      cout << "\nThat wasn't an option, due to your clumsiness you didnt even";
      cout << "\nget to smoke your spliff";
   }

   return xp;
}
int ChooseAcid(int *s, int *w, int *r)
{
   
   cout << "\nYou slip a tab onto your tongue, it takes a while";
   for (int count = 0; count < 6; count++)
   {
      Sleep(500);
      cout << '.';     
   }

   cout << "\nSomething doesn't feel right, you feel like your in the matrix!\n\n";
   Sleep (300);
   
   DrawRepMatrix();
   DrawMsgMatrix();
   DrawRepMatrix();

   *s += 5;
   *w += 15;
   *r += 5;
   return 10;
}
int ChooseEcstasy(int *w, int *r)
{
   cout << "You start to come up really quickly!\nYAAAAY!\nYou gain 10xp";
   *w += 5;
   *r += 15;
   return 10;
}
int ChooseCoccaine(int *s, int *w, int *r)
{
   cout << "You snort a phat line!\nOOOHHHHHH YYYEEEEAAAAAAHHHHHH!\nYou gain 10xp";
   *w += 5;
   *r += 5;
   return 10;
}
   bool RandomHippy(int *pXp, int *SpliffC)
   {
      char ShareSpliff;
      cout << "\nOn your way, you encounter a random hippy who looks incredibly wasted\n";
      cout << "and in dire need of a spliff.";
      if (*SpliffC)
      {
         cout << "\nDo you share a spliff with the hippy? [y/n] >>> ";
         cin >> ShareSpliff;
         if (ShareSpliff == 'y' || ShareSpliff == 'Y')
         {
            cout << "\nThe hippy is eternally grateful and says he wont forget you.\nYou gain 5xp";
            *pXp += 5;
            --(*SpliffC);
            cout << "\n\n" << setw(40) << "Press ENTER to continue";
            cin.get();
            return true;
         }
         else
         {
            cout << "\nYou ignore the hippy in need, you lose 5xp!";
            *pXp -= 5;
            return false;

         }
      }
      else
      {
         cout << "\nToo bad you dont have any spliffs stashed away!";
         cout << "\n\n" << setw(40) << "Press ENTER to continue";
         cin.get();
         return false;
      }
   }
int GoToBed(int *s)
{
   cout << "\nYou Lazily climb into bed and fall asleep as soon as your head";
   cout <<   "\ntouches the pillow.";
   cout << "\nYou lose 10 sleepiness but gain 5xp!";
   *s -= 10;
   return 5;
}

int GoToSofa(int *s, int *SpliffC)
{
   cout << "\nYou head for the sofa and get a good cotch going gaining 5xp.";
   if (*SpliffC)
   {
      cout << "\nYou spark one of the doobies you rolled earlier.\nIt tastes good as you chillax in front of a film";
      cout << "\nYou gain 15 comfy xp's!";
      --(*SpliffC);
      return 20;
   }
   else
   return 5;
}

int GoToPub(int *s, int *pXp, bool *pisHippyHappy)
{
   cout << "\nYou walk into the pub....";
   if (*pisHippyHappy);
   {
      char YoN;
      cout << "\nYou see the random hippy in the corner, he asks you for another spliff.";
      cout << "\nDo you give him one? [y/n]";
      cin >> YoN;
      if (YoN == 'y' || YoN == 'Y')
      {
         cout << "\n\nThe hippys grin widens as he tokes your green.\nYou gain 25xp";
         *pisHippyHappy = true;
         *pXp += 25;
      }
      else
      {
         cout << "The hippy grumbles as you turn him down, you lose 5xp";
         *pXp -= 5;
      }

   }   
      cout << "\nThen you walk up to the bar and order shots of sambucca at the bar";
      cout << "\n\n\t\t\t\tSAMBUCCA RULES!!!\n\nYou gain 20xp";
      *s -= 10;

   return 20;
}

int GoToWoods(int *w)
{
   cout << "\nYou get to the woods and find a tree to climb, you climb to the top";
   cout << "\nand pretend your a monkey.\nThe sheer fun grants you 20xp =)";
   *w -= 10;
   return 20;
}

int GoToPark(int *w, int *SpliffC, int *pXp, bool *pisHippyHappy)
{
   *pisHippyHappy = RandomHippy(pXp, SpliffC);
   cin.get();
   cout << "\nYou find another wasted person on the swings and challenge them to a swing off";
   cout << "\nSwinging upside down seems to impress him\nSwinging 20 xp for your coolness!";
   *w -= 10;
   return 20;
}

int BounceOffWalls(int *w)
{
   cout << "\nYou go a lil crazy and start jumping into the walls and manage to land a\nbackflip off the wall";
   cout << "\nYou land yourself 20 acrobatic xp's";
   *w -= 10;
   return 20;
}

int GoToClub(int *r, int *pXp, int *SpliffC)
{
   if (*SpliffC && ((*pXp) % 3 == 0))
   {
     
      cout << "\nThe bouncer searches you as you enter and takes all your";
      cout << "\nspliffs from you\nOUTRAGEOUS you lose 40xp!";
      *SpliffC = 0;
      *r -= 15;
      return -40;

     
   }
   else
   {
      cout << "\nYou get into the club and groove your lil ass off";
      cout << "\nYour out of this world moves grant you 20 ass shaking xp's";
      *r-= 15;
      return 20;   
   }
   
}

int GoToParty(int *r)
{
   cout << "\nYou go to an amazing house party and teach people the typewriter dance";
   cout << "\nYour amazing dancing skills put an extra 20 xp's onto your total!";
   *r -= 10;
   return 20;
}

int RaveInWales(int *r, bool *pisHippyHappy)
{
   if (*pisHippyHappy)
   {
      cout << "\nThe happy hippy offers you a lift to Wales for the big outdoor rave!";
      cout << "\nYou start dancing in the trees and impress the DJ!\nYou gain a 'tree'mendous 50xp!";
      *r -= 20;
      return 50;
   }
   else
   {
      cout << "\nYou have no way of getting to wales so you buy a Welsh flag";
      cout << "\nand dance in front of it";
      cout << "\nYour nifty lil moves gain you 10 xp";
      *r -= 10;
      return 10;
   }
   
}

int SleepyPlace()
{
   int PlaceChoice;
   while (1)
   {
   cout << "\nNow that you are all stoned and sleepy, where do you go?";
   cout << "\n1.To bed\n2.To the sofa\n3.To the pub? >>> ";
   cin >> PlaceChoice;

   if (PlaceChoice == 1)
      return 1;
   else if (PlaceChoice == 2)
      return 2;
   else if (PlaceChoice == 3)
      return 3;
   }
}

int WastedPlace()
{
   int PlaceChoice;
   while(1)
   {
   cout << "\nNow that you are all wasted, where do you go?";
   cout << "\n1.To the woods\n2.To the park\n3.To bounce off the walls? >>> ";
   cin >> PlaceChoice;

   if (PlaceChoice == 1)
      return 4;
   else if (PlaceChoice == 2)
      return 5;
   else if (PlaceChoice == 3)
      return 6;
   }
}

int RaveyPlace()
{
   int PlaceChoice;
   while (1)
   {
   cout << "\nNow that you are all raved up, where would you like to go?";
   cout << "\n1.To the club\n2.To the party\n3.To the rave in wales? >>> ";
   cin >> PlaceChoice;

   if (PlaceChoice == 1)
      return 7;
   else if (PlaceChoice == 2)
      return 8;
   else if (PlaceChoice == 3)
      return 9;
   }
}
void ChoosePlace(int *s, int *w, int *r, int *SpliffC, int *pXp, bool *pisHippyHappy)
{
   int Place;
   
   if (*s >= *w && *s >= *r)
   {
   Place = SleepyPlace();
   }

   else if (*w >= *s && *w >= *r)
   {
   Place = WastedPlace();
   }

   else if (*r >= *s && *r >= *w)
   {
   Place = RaveyPlace();
   }

switch (Place)
{
case 1:   {*pXp += GoToBed(s);
      break;}
case 2: {*pXp += GoToSofa(s, SpliffC);
      break;}
case 3: {*pXp += GoToPub(s, pXp, pisHippyHappy);
      break;}
case 4: {*pXp += GoToWoods(w);
      break;}
case 5: {*pXp += GoToPark(w, SpliffC, pXp, pisHippyHappy);
      break;}
case 6: {*pXp += BounceOffWalls(w);
      break;}
case 7: {*pXp += GoToClub(r, pXp, SpliffC);
      break;}
case 8: {*pXp += GoToParty(r);
      break;}
case 9: {*pXp += RaveInWales(r, pisHippyHappy);     
      break;}
}//end of switch (Place)
   cout << "\n\n" << setw(40) << "Press ENTER to continue";
   cin.get();
   PrintStats(s, w, r, SpliffC, pXp);
}

void GameOver(int *pXp)
{
   system("cls");
   cout << "\n\n\n\n\n\n\n\n" << setw(40) << right << 'G'; Sleep(500); cout << 'A'; Sleep(500); cout << 'M'; Sleep(500); cout << "E\n";
   cout << setw(40) << right << 'O'; Sleep(500); cout << 'V'; Sleep(500); cout << 'E'; Sleep(500); cout << "R\n\n";

   cout << setw(35) << right << "You Scored " << *pXp << " Xp";

   Sleep (4000);
}

void DrawRepMatrix()
{
   for (int a = 0; a < 2000; a++)
   {
      Sleep(3);
      cout << (rand()%2==0);
   }
}

void DrawMsgMatrix()
{


   for (int a = 0; a < 20; a++)
   {
      Sleep(3);
      cout << (rand()%2==0);
   }

      cout << "                                        ";//Leave string blank

   for (int a = 0; a < 40; a++)
   {
      Sleep(3);
      cout << (rand()%2==0);
   }

      cout << "                 THIS SHIT              ";//INSERT over blank string (top line)

   for (int a = 0; a < 40; a++)
   {
      Sleep(3);
      cout << (rand()%2==0);
   }
   
      cout << "                 IS REALLY              ";//INSERT over blank string (second line)

   for (int a = 0; a < 40; a++)
   {
      Sleep(3);
      cout << (rand()%2==0);
   }

      cout << "                   TRIPPY               ";//INSERT over blank string (bottom line)

   for (int a = 0; a < 40; a++)
   {
      Sleep(3);
      cout << (rand()%2==0);
   }

      cout << "                                        ";//Leave string blank

   for (int a = 0; a < 20; a++)
   {
      Sleep(3);
      cout << (rand()%2==0);
   }
}

void DrawWastedFace()
{
   const int sleept = 250;
   const int Mid = 50;
   for (int a = 1; a < 5; a++)
   {
      system("cls");
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"    /-----\\  /-----\\    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    |   %%|  |%%   |    \n";
      cout << setw(Mid) << left <<"    |   %%|  |%%   |    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    \\-----/  \\-----/      \n";
      cout << setw(Mid) << left <<"                          \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00         \n";
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     \\\\_________//      \n";
      cout << setw(Mid) << left <<"      \\         /       \n";
      cout << setw(Mid) << left <<"       \\_______/        \n";
      cout << setw(Mid) << left <<"                        \n";
      Sleep (sleept);

   

      system("cls");
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"    /-----\\  /-----\\    \n";
      cout << setw(Mid) << left <<"    |   %%|  |%%   |    \n";
      cout << setw(Mid) << left <<"    |   %%|  |%%   |    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    \\-----/  \\-----/      \n";
      cout << setw(Mid) << left <<"                          \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00         \n";
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     \\\\_________//      \n";
      cout << setw(Mid) << left <<"      \\         /       \n";
      cout << setw(Mid) << left <<"       \\_______/        \n";
      cout << setw(Mid) << left <<"                        \n";
      Sleep (sleept);



      system("cls");
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"    /-----\\  /-----\\    \n";
      cout << setw(Mid) << left <<"    |  %% |  | %%  |    \n";
      cout << setw(Mid) << left <<"    |  %% |  | %%  |    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    \\-----/  \\-----/      \n";
      cout << setw(Mid) << left <<"                          \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00         \n";
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     \\\\_________//      \n";
      cout << setw(Mid) << left <<"      \\         /       \n";
      cout << setw(Mid) << left <<"       \\_______/        \n";
      cout << setw(Mid) << left <<"                        \n";
      Sleep (sleept);

      system("cls");
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"    /-----\\  /-----\\    \n";
      cout << setw(Mid) << left <<"    | %%  |  |  %% |    \n";
      cout << setw(Mid) << left <<"    | %%  |  |  %% |    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    \\-----/  \\-----/      \n";
      cout << setw(Mid) << left <<"                          \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00         \n";
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     \\\\_________//      \n";
      cout << setw(Mid) << left <<"      \\         /       \n";
      cout << setw(Mid) << left <<"       \\_______/        \n";
      cout << setw(Mid) << left <<"                        \n";
      Sleep (sleept);

      system("cls");
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"    /-----\\  /-----\\    \n";
      cout << setw(Mid) << left <<"    |%%   |  |   %%|    \n";
      cout << setw(Mid) << left <<"    |%%   |  |   %%|    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    \\-----/  \\-----/      \n";
      cout << setw(Mid) << left <<"                          \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00         \n";
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     \\\\_________//      \n";
      cout << setw(Mid) << left <<"      \\         /       \n";
      cout << setw(Mid) << left <<"       \\_______/        \n";
      cout << setw(Mid) << left <<"                        \n";
      Sleep (sleept);

      system("cls");
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"    /-----\\  /-----\\    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    |%%   |  |   %%|    \n";
      cout << setw(Mid) << left <<"    |%%   |  |   %%|    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    \\-----/  \\-----/      \n";
      cout << setw(Mid) << left <<"                          \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00         \n";
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     \\\\_________//      \n";
      cout << setw(Mid) << left <<"      \\         /       \n";
      cout << setw(Mid) << left <<"       \\_______/        \n";
      cout << setw(Mid) << left <<"                        \n";
      Sleep (sleept);

      system("cls");
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"    /-----\\  /-----\\    \n";
         cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    |%%   |  |   %%|    \n";
      cout << setw(Mid) << left <<"    |%%   |  |   %%|    \n";
      cout << setw(Mid) << left <<"    \\-----/  \\-----/      \n";
      cout << setw(Mid) << left <<"                          \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00         \n";
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     \\\\_________//      \n";
      cout << setw(Mid) << left <<"      \\         /       \n";
      cout << setw(Mid) << left <<"       \\_______/        \n";
      cout << setw(Mid) << left <<"                        \n";
      Sleep (sleept);

      system("cls");
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"    /-----\\  /-----\\    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    | %%  |  |  %% |    \n";
      cout << setw(Mid) << left <<"    | %%  |  |  %% |    \n";
      cout << setw(Mid) << left <<"    \\-----/  \\-----/      \n";
      cout << setw(Mid) << left <<"                          \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00         \n";
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     \\\\_________//      \n";
      cout << setw(Mid) << left <<"      \\         /       \n";
      cout << setw(Mid) << left <<"       \\_______/        \n";
      cout << setw(Mid) << left <<"                        \n";
      Sleep (sleept);

      system("cls");
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"    /-----\\  /-----\\    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    |  %% |  | %%  |    \n";
      cout << setw(Mid) << left <<"    |  %% |  | %%  |    \n";
      cout << setw(Mid) << left <<"    \\-----/  \\-----/      \n";
      cout << setw(Mid) << left <<"                          \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00         \n";
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     \\\\_________//      \n";
      cout << setw(Mid) << left <<"      \\         /       \n";
      cout << setw(Mid) << left <<"       \\_______/        \n";
      cout << setw(Mid) << left <<"                        \n";
      Sleep (sleept);

      system("cls");
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"    /-----\\  /-----\\    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    |   %%|  |%%   |    \n";
      cout << setw(Mid) << left <<"    |   %%|  |%%   |    \n";
      cout << setw(Mid) << left <<"    \\-----/  \\-----/      \n";
      cout << setw(Mid) << left <<"                          \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00         \n";
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     \\\\_________//      \n";
      cout << setw(Mid) << left <<"      \\         /       \n";
      cout << setw(Mid) << left <<"       \\_______/        \n";
      cout << setw(Mid) << left <<"                        \n";
      Sleep (sleept);
}
}


Any ideas, pointers or even lectures :P are always welcome.
Have fun guys! (and gals)!
Last edited by pipey85 on Sun Sep 13, 2009 1:44 pm, edited 1 time in total.
Pardon my n00bness, what I lack in C++ I make up for in time spent reading about C++ :P
pipey85
 
Posts: 40
Joined: Mon Jun 22, 2009 6:11 pm

Re: Small Game

Postby cr1541 on Tue Aug 11, 2009 6:18 am

Good job bro. I just started to teach myself C++ as my first language. What's your history with programming?

Keep it up!

P.S. - Remember you need some brain cells to be a programmer. Just a reminder!

Peace
cr1541
 
Posts: 1
Joined: Tue Aug 11, 2009 5:57 am

Re: Small Game

Postby pipey85 on Tue Aug 11, 2009 6:51 am

This too is my 1st language, ive only been programming for nearly a month, and this is just a project that uses all the cool things ive learnt, need something to fill the gap since I stopped doing all those fun things.... *sigh*

I found antiRTFM videos very useful (even though ive yet to watch past vid 30) the whole thing with classes looks quite confusing, but nevetheless, its next on the agenda.

My goal is to get my computer to do all my thinking for me, leaving my empty brain cells to vegetate comfortably =P
Happy Coding!
Pardon my n00bness, what I lack in C++ I make up for in time spent reading about C++ :P
pipey85
 
Posts: 40
Joined: Mon Jun 22, 2009 6:11 pm

Re: Small Game

Postby ReiKo on Tue Aug 11, 2009 10:37 am

Nice, keep up the good work! :)
User avatar
ReiKo
 
Posts: 115
Joined: Sat May 09, 2009 5:11 pm

Re: Small Game

Postby ShadowTH on Tue Aug 18, 2009 7:52 am

nice work. i hope to be at your skill level one day ^^
ShadowTH
 
Posts: 6
Joined: Tue Aug 18, 2009 7:39 am

Re: Small Game

Postby sawm on Sat Aug 29, 2009 4:13 am

dude that was a funny game some how i had to change 2 things for it to work maybe vista's being gay xD hope to do something that big son realy loved it lol'ed alot oh and true you need brain cells to program but what gives you more imagination and ideas for programing then killing them brain cells :D only got 1 life and its hella way to short might as well live it hardcore ? guess its a mater of opinion xD anyways really loved it hope to see you net program if its not already done and posted ^^

-sawm <3-
sawm
 
Posts: 8
Joined: Fri Aug 28, 2009 3:24 pm

Re: Small Game

Postby pipey85 on Sat Aug 29, 2009 3:54 pm

Code: Select all
// TheDTGame.cpp : Defines the entry point for the console application.
//

//added matrix to acid trip =)
//add chance to top up on drugs



#include "stdafx.h"
#include "stdlib.h"
#include <iomanip>
#include <cstdlib>//for rand()
#include <windows.h>//for Sleep()
#include <iostream>
using namespace std;

int SmokeSpliff (int *s);
void DChoice (int *pXp, int *s, int *w, int *r, int *SpliffC);
int ChooseWeed(int *s, int *SpliffC);
int ChooseAcid(int *s, int *w, int *r);
int ChooseEcstasy(int *w, int *r);
int ChooseCoccaine(int *s, int *w, int *r);
int SleepyPlace();
int WastedPlace();
int RaveyPlace();
int GoToBed(int *s);
int GoToSofa(int *s, int *SpliffC);
int GoToPub(int *s, int *pXp, bool *pisHippyHappy);
int GoToWoods(int *w);
int GoToPark(int *w, int *SpliffC, int *pXp, bool *pisHippyHappy);
int BounceOffWalls(int *w);
int GoToClub(int *r, int *pXp, int SpliffC);
int GoToParty(int *r);
int RaveInWales(int *r, bool *pisHippyHappy);
bool RandomHippy(int *pXp, int *SpliffC);
void PrintStats(int *s, int *w, int *r, int *SpliffC, int *pXp);
void ChoosePlace(int *s, int *w, int *r, int *SpliffC, int *pXp, bool *pisHippyHappy);
void GameOver (int *pXp);
void DrawRepMatrix();// for acid trip (repetitive)
void DrawMsgMatrix();// for acid trip (message)
void DrawWastedFace();

void main()
{
   int xp = 0, Sleepness = 0, Wastedness = 0, Raveness = 0, SpliffCounter = 0;
   int *s = &Sleepness, *w = &Wastedness, *r = &Raveness, *SpliffC = &SpliffCounter, *pXp = &xp;
   bool isHippyHappy = false, *pisHippyHappy = &isHippyHappy;


for (int a = 0; a < 20; a++)   
      cout << "\\**/";
   cout << "\t\t\tWelcome Drug Takers! Lets take some drugs!" << endl;
   cout << setw(80) << "Created by Pipey85\n";
for (int a = 0; a < 20; a++)   
      cout << "\\**/";

while (xp < 50)
{
   
   DChoice(pXp, s, w, r, SpliffC);
   cout << endl << endl;
   
   cout << "\n\n" << setw(40) << "Press ENTER to continue";
   cin.get();
   PrintStats(s, w, r, SpliffC, pXp);
}//end of while(xp < 50)
DrawWastedFace();
*pisHippyHappy = RandomHippy(pXp, SpliffC);
PrintStats(s, w, r, SpliffC, pXp);
ChoosePlace (s, w, r, SpliffC, pXp, pisHippyHappy);
ChoosePlace (s, w, r, SpliffC, pXp, pisHippyHappy);



GameOver(pXp);

}


int SmokeSpliff (int *s)
{
cout << "You Smoke the spilff gaining 3xp";
*s += 10;
return 3;
}

void DChoice (int *pXp, int *s, int *w, int *r, int *SpliffC)
{
   int choice;
   bool error1 = true;

   while (error1)
   {
      error1 = false;
      
      cout << "Which will you take?\n\n";
      cout << "1.Weed\n2.Acid\n3.Ecstatsy\n4.Coccaine >>> ";
      cin >> choice;
      
      switch (choice)
{
case 1:
   {*pXp += ChooseWeed(s, SpliffC);
   break;}
case 2:
   {*pXp += ChooseAcid(s, w, r);
   break;}
case 3:
   {*pXp += ChooseEcstasy(w, r);
   break;}
case 4:
   {*pXp += ChooseCoccaine(s, w, r);
   break;}
default:
   error1 = true;
}
   }
   
}

void PrintStats(int *s, int *w, int *r, int *SpliffC, int *pXp)
{
   cin.get();
   system("cls");
   for (int a = 0; a < 40; a++)   
      cout << "=)";
   cout << "\nNumber of Spliffs: " << *SpliffC << "\t\tTotal XP: " << *pXp << endl;
   cout << "\n\tSleepiness: " << *s << "\t\tWastedness: " << *w << "\t\tRaveness: " << *r << endl;
      for (int a = 0; a < 40; a++)   
      cout << "(=";
      cout << "\n";
   
}
int ChooseWeed(int *s, int *SpliffC)
{
   int SmokeOrSave = 4, xp = 0;
   while (SmokeOrSave > 2 || SmokeOrSave < 0)
   {
   cout << "You roll a phatie bom batie\nHEEELLLL YEAAAHH!\nYou gain 10xp";
   cout << "\n\nDo you decide to\n1.Smoke it\n2.Stash it for later? >>> ";
   cin >> SmokeOrSave;
   }
   xp +=10;
   if (SmokeOrSave == 1)
   xp += SmokeSpliff(s);
   else if (SmokeOrSave == 2)
   {
      cout << "\nYou stash the Spliff in your fagbox for later";
      ++(*SpliffC);
      *s += 5;
   }
   else
   {
      cout << "\nThat wasn't an option, due to your clumsiness you didnt even";
      cout << "\nget to smoke your spliff";
   }

   return xp;
}
int ChooseAcid(int *s, int *w, int *r)
{
   
   cout << "\nYou slip a tab onto your tongue, it takes a while";
   for (int count = 0; count < 6; count++)
   {
      Sleep(500);
      cout << '.';      
   }

   cout << "\nSomething doesn't feel right, you feel like your in the matrix!\n\n";
   Sleep (300);
   
   DrawRepMatrix();
   DrawMsgMatrix();
   DrawRepMatrix();

   *s += 5;
   *w += 15;
   *r += 5;
   return 10;
}
int ChooseEcstasy(int *w, int *r)
{
   cout << "You start to come up really quickly!\nYAAAAY!\nYou gain 10xp";
   *w += 5;
   *r += 15;
   return 10;
}
int ChooseCoccaine(int *s, int *w, int *r)
{
   cout << "You snort a phat line!\nOOOHHHHHH YYYEEEEAAAAAAHHHHHH!\nYou gain 10xp";
   *w += 5;
   *r += 5;
   return 10;
}
   bool RandomHippy(int *pXp, int *SpliffC)
   {
      char ShareSpliff;
      cout << "\nOn your way, you encounter a random hippy who looks incredibly wasted\n";
      cout << "and in dire need of a spliff.";
      if (*SpliffC)
      {
         cout << "\nDo you share a spliff with the hippy? [y/n] >>> ";
         cin >> ShareSpliff;
         if (ShareSpliff == 'y' || ShareSpliff == 'Y')
         {
            cout << "\nThe hippy is eternally grateful and says he wont forget you.\nYou gain 5xp";
            *pXp += 5;
            --(*SpliffC);
            cout << "\n\n" << setw(40) << "Press ENTER to continue";
            cin.get();
            return true;
         }
         else
         {
            cout << "\nYou ignore the hippy in need, you lose 5xp!";
            *pXp -= 5;
            return false;

         }
      }
      else
      {
         cout << "\nToo bad you dont have any spliffs stashed away!";
         cout << "\n\n" << setw(40) << "Press ENTER to continue";
         cin.get();
         return false;
      }
   }
int GoToBed(int *s)
{
   cout << "\nYou Lazily climb into bed and fall asleep as soon as your head";
   cout <<   "\ntouches the pillow.";
   cout << "\nYou lose 10 sleepiness but gain 5xp!";
   *s -= 10;
   return 5;
}

int GoToSofa(int *s, int *SpliffC)
{
   cout << "\nYou head for the sofa and get a good cotch going gaining 5xp.";
   if (*SpliffC)
   {
      cout << "\nYou spark one of the doobies you rolled earlier.\nIt tastes good as you chillax in front of a film";
      cout << "\nYou gain 15 comfy xp's!";
      --(*SpliffC);
      return 20;
   }
   else
   return 5;
}

int GoToPub(int *s, int *pXp, bool *pisHippyHappy)
{
   cout << "\nYou walk into the pub....";
   if (*pisHippyHappy);
   {
      char YoN;
      cout << "\nYou see the random hippy in the corner, he asks you for another spliff.";
      cout << "\nDo you give him one? [y/n]";
      cin >> YoN;
      if (YoN == 'y' || YoN == 'Y')
      {
         cout << "\n\nThe hippys grin widens as he tokes your green.\nYou gain 25xp";
         *pisHippyHappy = true;
         *pXp += 25;
      }
      else
      {
         cout << "The hippy grumbles as you turn him down, you lose 5xp";
         *pXp -= 5;
      }

   }   
      cout << "\nThen you walk up to the bar and order shots of sambucca at the bar";
      cout << "\n\n\t\t\t\tSAMBUCCA RULES!!!\n\nYou gain 20xp";
      *s -= 10;

   return 20;
}

int GoToWoods(int *w)
{
   cout << "\nYou get to the woods and find a tree to climb, you climb to the top";
   cout << "\nand pretend your a monkey.\nThe sheer fun grants you 20xp =)";
   *w -= 10;
   return 20;
}

int GoToPark(int *w, int *SpliffC, int *pXp, bool *pisHippyHappy)
{
   *pisHippyHappy = RandomHippy(pXp, SpliffC);
   cin.get();
   cout << "\nYou find another wasted person on the swings and challenge them to a swing off";
   cout << "\nSwinging upside down seems to impress him\nSwinging 20 xp for your coolness!";
   *w -= 10;
   return 20;
}

int BounceOffWalls(int *w)
{
   cout << "\nYou go a lil crazy and start jumping into the walls and manage to land a\nbackflip off the wall";
   cout << "\nYou land yourself 20 acrobatic xp's";
   *w -= 10;
   return 20;
}

int GoToClub(int *r, int *pXp, int *SpliffC)
{
   if (*SpliffC && ((*pXp) % 3 == 0))
   {
      
      cout << "\nThe bouncer searches you as you enter and takes all your";
      cout << "\nspliffs from you\nOUTRAGEOUS you lose 40xp!";
      *SpliffC = 0;
      *r -= 15;
      return -40;

      
   }
   else
   {
      cout << "\nYou get into the club and groove your lil ass off";
      cout << "\nYour out of this world moves grant you 20 ass shaking xp's";
      *r-= 15;
      return 20;   
   }
   
}

int GoToParty(int *r)
{
   cout << "\nYou go to an amazing house party and teach people the typewriter dance";
   cout << "\nYour amazing dancing skills put an extra 20 xp's onto your total!";
   *r -= 10;
   return 20;
}

int RaveInWales(int *r, bool *pisHippyHappy)
{
   if (*pisHippyHappy)
   {
      cout << "\nThe happy hippy offers you a lift to Wales for the big outdoor rave!";
      cout << "\nYou start dancing in the trees and impress the DJ!\nYou gain a 'tree'mendous 50xp!";
      *r -= 20;
      return 50;
   }
   else
   {
      cout << "\nYou have no way of getting to wales so you buy a Welsh flag";
      cout << "\nand dance in front of it";
      cout << "\nYour nifty lil moves gain you 10 xp";
      *r -= 10;
      return 10;
   }
   
}

int SleepyPlace()
{
   int PlaceChoice;
   while (1)
   {
   cout << "\nNow that you are all stoned and sleepy, where do you go?";
   cout << "\n1.To bed\n2.To the sofa\n3.To the pub? >>> ";
   cin >> PlaceChoice;

   if (PlaceChoice == 1)
      return 1;
   else if (PlaceChoice == 2)
      return 2;
   else if (PlaceChoice == 3)
      return 3;
   }
}

int WastedPlace()
{
   int PlaceChoice;
   while(1)
   {
   cout << "\nNow that you are all wasted, where do you go?";
   cout << "\n1.To the woods\n2.To the park\n3.To bounce off the walls? >>> ";
   cin >> PlaceChoice;

   if (PlaceChoice == 1)
      return 4;
   else if (PlaceChoice == 2)
      return 5;
   else if (PlaceChoice == 3)
      return 6;
   }
}

int RaveyPlace()
{
   int PlaceChoice;
   while (1)
   {
   cout << "\nNow that you are all raved up, where would you like to go?";
   cout << "\n1.To the club\n2.To the party\n3.To the rave in wales? >>> ";
   cin >> PlaceChoice;

   if (PlaceChoice == 1)
      return 7;
   else if (PlaceChoice == 2)
      return 8;
   else if (PlaceChoice == 3)
      return 9;
   }
}
void ChoosePlace(int *s, int *w, int *r, int *SpliffC, int *pXp, bool *pisHippyHappy)
{
   int Place;
   
   if (*s >= *w && *s >= *r)
   {
   Place = SleepyPlace();
   }

   else if (*w >= *s && *w >= *r)
   {
   Place = WastedPlace();
   }

   else if (*r >= *s && *r >= *w)
   {
   Place = RaveyPlace();
   }

switch (Place)
{
case 1:   {*pXp += GoToBed(s);
      break;}
case 2: {*pXp += GoToSofa(s, SpliffC);
      break;}
case 3: {*pXp += GoToPub(s, pXp, pisHippyHappy);
      break;}
case 4: {*pXp += GoToWoods(w);
      break;}
case 5: {*pXp += GoToPark(w, SpliffC, pXp, pisHippyHappy);
      break;}
case 6: {*pXp += BounceOffWalls(w);
      break;}
case 7: {*pXp += GoToClub(r, pXp, SpliffC);
      break;}
case 8: {*pXp += GoToParty(r);
      break;}
case 9: {*pXp += RaveInWales(r, pisHippyHappy);      
      break;}
}//end of switch (Place)
   cout << "\n\n" << setw(40) << "Press ENTER to continue";
   cin.get();
   PrintStats(s, w, r, SpliffC, pXp);
}

void GameOver(int *pXp)
{
   system("cls");
   cout << "\n\n\n\n\n\n\n\n" << setw(40) << right << 'G'; Sleep(500); cout << 'A'; Sleep(500); cout << 'M'; Sleep(500); cout << "E\n";
   cout << setw(40) << right << 'O'; Sleep(500); cout << 'V'; Sleep(500); cout << 'E'; Sleep(500); cout << "R\n\n";

   cout << setw(35) << right << "You Scored " << *pXp << " Xp";

   Sleep (4000);
}

void DrawRepMatrix()
{
   for (int a = 0; a < 2000; a++)
   {
      Sleep(3);
      cout << (rand()%2==0);
   }
}

void DrawMsgMatrix()
{


   for (int a = 0; a < 20; a++)
   {
      Sleep(3);
      cout << (rand()%2==0);
   }

      cout << "                                        ";//Leave string blank

   for (int a = 0; a < 40; a++)
   {
      Sleep(3);
      cout << (rand()%2==0);
   }

      cout << "                 THIS SHIT              ";//INSERT over blank string (top line)

   for (int a = 0; a < 40; a++)
   {
      Sleep(3);
      cout << (rand()%2==0);
   }
   
      cout << "                 IS REALLY              ";//INSERT over blank string (second line)

   for (int a = 0; a < 40; a++)
   {
      Sleep(3);
      cout << (rand()%2==0);
   }

      cout << "                   TRIPPY               ";//INSERT over blank string (bottom line)

   for (int a = 0; a < 40; a++)
   {
      Sleep(3);
      cout << (rand()%2==0);
   }

      cout << "                                        ";//Leave string blank

   for (int a = 0; a < 20; a++)
   {
      Sleep(3);
      cout << (rand()%2==0);
   }
}

void DrawWastedFace()
{
   const int sleept = 250;
   const int Mid = 50;
   for (int a = 1; a < 5; a++)
   {
      system("cls");
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"    /-----\\  /-----\\    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    |   %%|  |%%   |    \n";
      cout << setw(Mid) << left <<"    |   %%|  |%%   |    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    \\-----/  \\-----/      \n";
      cout << setw(Mid) << left <<"                          \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00         \n";
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     \\\\_________//      \n";
      cout << setw(Mid) << left <<"      \\         /       \n";
      cout << setw(Mid) << left <<"       \\_______/        \n";
      cout << setw(Mid) << left <<"                        \n";
      Sleep (sleept);

   

      system("cls");
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"    /-----\\  /-----\\    \n";
      cout << setw(Mid) << left <<"    |   %%|  |%%   |    \n";
      cout << setw(Mid) << left <<"    |   %%|  |%%   |    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    \\-----/  \\-----/      \n";
      cout << setw(Mid) << left <<"                          \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00         \n";
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     \\\\_________//      \n";
      cout << setw(Mid) << left <<"      \\         /       \n";
      cout << setw(Mid) << left <<"       \\_______/        \n";
      cout << setw(Mid) << left <<"                        \n";
      Sleep (sleept);



      system("cls");
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"    /-----\\  /-----\\    \n";
      cout << setw(Mid) << left <<"    |  %% |  | %%  |    \n";
      cout << setw(Mid) << left <<"    |  %% |  | %%  |    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    \\-----/  \\-----/      \n";
      cout << setw(Mid) << left <<"                          \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00         \n";
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     \\\\_________//      \n";
      cout << setw(Mid) << left <<"      \\         /       \n";
      cout << setw(Mid) << left <<"       \\_______/        \n";
      cout << setw(Mid) << left <<"                        \n";
      Sleep (sleept);

      system("cls");
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"    /-----\\  /-----\\    \n";
      cout << setw(Mid) << left <<"    | %%  |  |  %% |    \n";
      cout << setw(Mid) << left <<"    | %%  |  |  %% |    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    \\-----/  \\-----/      \n";
      cout << setw(Mid) << left <<"                          \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00         \n";
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     \\\\_________//      \n";
      cout << setw(Mid) << left <<"      \\         /       \n";
      cout << setw(Mid) << left <<"       \\_______/        \n";
      cout << setw(Mid) << left <<"                        \n";
      Sleep (sleept);

      system("cls");
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"    /-----\\  /-----\\    \n";
      cout << setw(Mid) << left <<"    |%%   |  |   %%|    \n";
      cout << setw(Mid) << left <<"    |%%   |  |   %%|    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    \\-----/  \\-----/      \n";
      cout << setw(Mid) << left <<"                          \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00         \n";
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     \\\\_________//      \n";
      cout << setw(Mid) << left <<"      \\         /       \n";
      cout << setw(Mid) << left <<"       \\_______/        \n";
      cout << setw(Mid) << left <<"                        \n";
      Sleep (sleept);

      system("cls");
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"    /-----\\  /-----\\    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    |%%   |  |   %%|    \n";
      cout << setw(Mid) << left <<"    |%%   |  |   %%|    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    \\-----/  \\-----/      \n";
      cout << setw(Mid) << left <<"                          \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00         \n";
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     \\\\_________//      \n";
      cout << setw(Mid) << left <<"      \\         /       \n";
      cout << setw(Mid) << left <<"       \\_______/        \n";
      cout << setw(Mid) << left <<"                        \n";
      Sleep (sleept);

      system("cls");
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"    /-----\\  /-----\\    \n";
         cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    |%%   |  |   %%|    \n";
      cout << setw(Mid) << left <<"    |%%   |  |   %%|    \n";
      cout << setw(Mid) << left <<"    \\-----/  \\-----/      \n";
      cout << setw(Mid) << left <<"                          \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00         \n";
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     \\\\_________//      \n";
      cout << setw(Mid) << left <<"      \\         /       \n";
      cout << setw(Mid) << left <<"       \\_______/        \n";
      cout << setw(Mid) << left <<"                        \n";
      Sleep (sleept);

      system("cls");
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"    /-----\\  /-----\\    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    | %%  |  |  %% |    \n";
      cout << setw(Mid) << left <<"    | %%  |  |  %% |    \n";
      cout << setw(Mid) << left <<"    \\-----/  \\-----/      \n";
      cout << setw(Mid) << left <<"                          \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00         \n";
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     \\\\_________//      \n";
      cout << setw(Mid) << left <<"      \\         /       \n";
      cout << setw(Mid) << left <<"       \\_______/        \n";
      cout << setw(Mid) << left <<"                        \n";
      Sleep (sleept);

      system("cls");
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"    /-----\\  /-----\\    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    |  %% |  | %%  |    \n";
      cout << setw(Mid) << left <<"    |  %% |  | %%  |    \n";
      cout << setw(Mid) << left <<"    \\-----/  \\-----/      \n";
      cout << setw(Mid) << left <<"                          \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00         \n";
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     \\\\_________//      \n";
      cout << setw(Mid) << left <<"      \\         /       \n";
      cout << setw(Mid) << left <<"       \\_______/        \n";
      cout << setw(Mid) << left <<"                        \n";
      Sleep (sleept);

      system("cls");
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"    /-----\\  /-----\\    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    |     |  |     |    \n";
      cout << setw(Mid) << left <<"    |   %%|  |%%   |    \n";
      cout << setw(Mid) << left <<"    |   %%|  |%%   |    \n";
      cout << setw(Mid) << left <<"    \\-----/  \\-----/      \n";
      cout << setw(Mid) << left <<"                          \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00           \n";
      cout << setw(Mid) << left <<"             00         \n";
      cout << setw(Mid) << left <<"                        \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     |           |      \n";
      cout << setw(Mid) << left <<"     \\\\_________//      \n";
      cout << setw(Mid) << left <<"      \\         /       \n";
      cout << setw(Mid) << left <<"       \\_______/        \n";
      cout << setw(Mid) << left <<"                        \n";
      Sleep (sleept);
}
}


hehehehe pay attention to the random hippy lol and Acid turns everything into the matrix LOL
Pardon my n00bness, what I lack in C++ I make up for in time spent reading about C++ :P
pipey85
 
Posts: 40
Joined: Mon Jun 22, 2009 6:11 pm

Re: Small Game

Postby cyberspy on Sun Sep 13, 2009 6:16 am

You stupid, you cant just give away this game like that, you should receive some money for this, its incredible.
cyberspy
 
Posts: 12
Joined: Sun Sep 13, 2009 4:14 am

Re: Small Game

Postby pipey85 on Sun Sep 13, 2009 1:20 pm

hehe thanks cyberspy, i had a lot of fun making it ;)
Pardon my n00bness, what I lack in C++ I make up for in time spent reading about C++ :P
pipey85
 
Posts: 40
Joined: Mon Jun 22, 2009 6:11 pm


Return to Full programs

Who is online

Users browsing this forum: No registered users and 0 guests

cron