Well i promised you the code and here it is.
Code:
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
char key;
char tutorial;
char done;
int score;
int randomnumber;
int iSecret;
int combo;
string randomsong;
int length=-1;
int multipl = 1;
string str;
string str2, str3;
size_t pos;
int perfect = 0;
void delay ( int seconds )
{
clock_t endwait;
endwait = clock () + seconds * CLOCKS_PER_SEC ;
while (clock() < endwait) {}
}
int main()
{
cout << "Welcome to Tap Tap Revenge Console Edtition!"<<endl;
cout << "Would you like a quick tutorial? <Y/N>"<<endl;
cin >> tutorial;
if (tutorial == 'Y' || tutorial == 'y') {
cout << "Ok here's how it goes: When the sign appears, press the desired key. Just as: if '<-' comes up, you press 'a' for '->' you press 'd' and for '||' you press 's'. Easy. Done? <Y>"<<endl;
cin >> done;
if (done == 'Y' || done == 'y') {
goto start;
}
}
else{goto start;}
start:
cout << "Wait a second it's loading";
delay (1);
cout<< ".";
delay (1);
cout<< ".";
delay (1);
cout<< "."<<endl;
cout << "10% loaded... (initialising tappers..)" << endl;
delay (1);
cout << "23% loaded... (positioning the tappers..)" << endl;
delay (2);
cout << "30% loaded... (wasting time..)" << endl;
delay (1);
reload:
cout << "58% loaded... (loading up the track..)" << endl;
ifstream thetrackfile ("Track.txt");
//thetrackfile.open("Track.txt", ios::in);
if (thetrackfile.is_open())
{
if ( thetrackfile.good() )
{
getline (thetrackfile,str);
}
thetrackfile.close();
}
else {cout << "No file detected, creating file with a random song..."<<endl;
delay (1);
ofstream thetrackfilenew ("Track.txt");
// thetrackfilenew << "left@right@mid@left@mid@right@mid@mid@right@left@right@mid@right@right@right@mid@left@right@left@mid@right@left@mid@mid@left@right@right@mid@right@left@mid@right@left@right@mid@left@right@finish";
for (int i; i<100; i++) {
randomnumber = rand() % 3 + 1;
if (randomnumber==1) {
thetrackfilenew << "left@";
}
if (randomnumber==2) {
thetrackfilenew << "mid@";
}
if (randomnumber==3) {
thetrackfilenew << "right@";
}
}
thetrackfilenew << "finish";
thetrackfilenew.close();
cout << "File succesfully created and installed default song, attempting to reload the requested file..." << endl;
goto reload;
}
delay (3);
cout << "70% loaded... (simulating the song..)" << endl;
delay (1);
cout << "89% loaded... (writing a letter to Santa..)" << endl;
delay (1);
cout << "100% loaded... (starting up!)" << endl;
cout <<endl;
cout <<endl;
cout <<endl;
cout <<endl;
cout <<endl;
cout <<endl;
cout <<endl;
cout << "Get ready!" <<endl;
Track:
if (-1<perfect & perfect <15) {
multipl = 1;
}
if (15<perfect& perfect<30) {
multipl = 2;
}
if (30<perfect& perfect<45) {
multipl = 4;
}
if (45<perfect& perfect<50) {
multipl = 8;
}
if (50<perfect) {
multipl = 16;
}
length = length + str2.length()+1;
//cout << str.length() <<endl;
//cout << length <<endl;
//cout << str.find("@")<<endl;
str3 = str.substr (length);
str2 = str.substr (length,str3.find("@"));
if (str2 == "left") {iSecret = 1;}
if (str2 =="mid") {iSecret = 2;}
if (str2 == "right") {iSecret = 3;}
if (str2 == "finish") {
cout<< "WOW! That's amasing! You scored " << score<< " points! Hope you enjoyed my game. KiralyCraft a.k.a. Kiraly[RO]. Distribute the game!"<<endl;
system("PAUSE");
exit(0);}
//cout << str2 <<endl;
//
//iSecret = rand() % 3 + 1;
//cout << "-DEBUG- " << iSecret << " -DEBUG-"<<endl;
if (iSecret==1) {
cout << " /#######/ | | ( ) " << "Score: " << score<< endl;
cout << " /#######/ | | ( ) " << "Multiplier: " << multipl << endl;
cout << " /#######/ | | ( ) " << "Streak: " << perfect << endl;
cout << " /#######/ | | ( )" << endl;
cout << " /#######/ | | ( )" << endl;
cout << " /#######/ | | ( )" << endl;
cout << " -########- - - - - " << endl;
cout << " -############- - - - - " << endl;
cout << " -############- - - - -" << endl;
cout << " -##########- - - - - " << endl;
cout << " -######- - - - - " << endl;
cout << " - - - - " << endl;
cin >> key;
if (key== 'A'||key =='a') {
score = score + 1*multipl;
perfect = perfect + 1;
system("CLS");
}
else {goto Done;}
delay (1);
goto Track;
}
if (iSecret==2) {
cout << " / / |###| ( ) " << "Score: " << score<< endl;
cout << " / / |###| ( ) " << "Multiplier: " << multipl << endl;
cout << " / / |###| ( ) " << "Streak: " << perfect << endl;
cout << " / / |###| ( )" << endl;
cout << " / / |###| ( )" << endl;
cout << " / / |###| ( )" << endl;
cout << " - - -###- - - " << endl;
cout << " - - -#######- - - " << endl;
cout << " - - -#########- - -" << endl;
cout << " - - -#########- - - " << endl;
cout << " - - -#####- - - " << endl;
cout << " - - - - " << endl;
cin >> key;
if (key== 'S'||key =='s') {
score = score + 1*multipl;
perfect = perfect + 1;
system("CLS");
}
else {goto Done;}
delay (1);
goto Track;
}
if (iSecret==3) {
cout << " / / | | (####) " << "Score: " << score<< endl;
cout << " / / | | (####) " << "Multiplier: " << multipl << endl;
cout << " / / | | (####) " << "Streak: " << perfect << endl;
cout << " / / | | (####)" << endl;
cout << " / / | | (####)" << endl;
cout << " / / | | (####)" << endl;
cout << " - - - - -####- " << endl;
cout << " - - - - -#######- " << endl;
cout << " - - - - -##########-" << endl;
cout << " - - - - -########- " << endl;
cout << " - - - - -#####- " << endl;
cout << " - - - - " << endl;
cin >> key;
if (key== 'D'||key =='d') {
score = score + 1*multipl;
perfect = perfect + 1;
system("CLS");
}
else {goto Done;}
delay (1);
goto Track;
}
Done:
cout << "You failed miserabely doing " << score << " points! Made by KiralyCraft as known as Kiraly[RO]. Distribuite the game!" <<endl;
//ifstream track ("Tracks.txt");
////track.open("Tracks.txt", ios::app);
//getline (track,line);
//cout << line << endl;
system("PAUSE");
}
//void left(){
// cout << "<-" << endl;
// cin >> key;
// if (key= 'A') {
// score = score + 1;
// }
// delay (1);
//}
//void middle() {}
//void right(){}
_________________
Look, im just a Signature....
And containing universe boot-up sequence...
Do not alter at ANY circumstances....
If you have any problems, please shut the universe down and restart....
Microsoft (Gods Division)
WHERE IS MY FUCKING COOKIE?!?!