Aprilon
http://aprilon.org/forum/

Please give me a rate
http://aprilon.org/forum/viewtopic.php?f=6&t=2144
Page 2 of 2

Author:  NoThInG1337rofl [ 28 Dec 2011, 14:23 ]
Post subject:  Re: Please give me a rate

Your game is too hard :<

Author:  Bloody [ 28 Dec 2011, 16:25 ]
Post subject:  Re: Please give me a rate

NoThInG1337rofl wrote:
Your game is too hard :<

Code:
WOW! That's amasing! You scored 4994 points! Hope you enjoyed my game. KiralyCraft a.k.a. Kiraly[RO]. Distribute the game!

Jelly? :3:

Author:  |LorD| Kiraly [ 29 Dec 2011, 14:36 ]
Post subject:  Re: Please give me a rate

LifeTimeBLOOD wrote:
NoThInG1337rofl wrote:
Your game is too hard :<

Code:
WOW! That's amasing! You scored 4994 points! Hope you enjoyed my game. KiralyCraft a.k.a. Kiraly[RO]. Distribute the game!

Jelly? :3:

Really?!

Author:  1337Wince [ 29 Dec 2011, 17:11 ]
Post subject:  Re: Please give me a rate

|LorD| Kiraly wrote:
LifeTimeBLOOD wrote:
NoThInG1337rofl wrote:
Your game is too hard :<

Code:
WOW! That's amasing! You scored 4994 points! Hope you enjoyed my game. KiralyCraft a.k.a. Kiraly[RO]. Distribute the game!

Jelly? :3:

Really?!


Something you will learn quickly here in Aprilon, is that LifeTimeBLOOD owns in all games.

Author:  ManIAc [ 29 Dec 2011, 17:44 ]
Post subject:  Re: Please give me a rate

Or you could read the post on the previous side, where he says he made a program to play it for him. ,:]

Author:  1337Wince [ 29 Dec 2011, 18:34 ]
Post subject:  Re: Please give me a rate

ManIAc wrote:
Or you could read the post on the previous side, where he says he made a program to play it for him. ,:]


I call hax.

Author:  |LorD| Kiraly [ 30 Dec 2011, 09:15 ]
Post subject:  Re: Please give me a rate

Lawl :D

Author:  Jamza [ 30 Dec 2011, 13:08 ]
Post subject:  Re: Please give me a rate

Doesn't even work for me. I ran it, it failed. Just sits at the same place.

Code:
Last login: Fri Dec 30 11:29:22 on console
Jamess-MacBook-Pro:~ James$ cd Desktop/
Jamess-MacBook-Pro:Desktop James$ wine TTR.exe
Welcome to Tap Tap Revenge Console Edtition!
Would you like a quick tutorial? <Y/N>
n
Wait a second it's loading...
10% loaded... (initialising tappers..)
23% loaded... (positioning the tappers..)
30% loaded... (wasting time..)
58% loaded...  (loading up the track..)
70% loaded...  (simulating the song..)
89% loaded...  (writing a letter to Santa..)
100% loaded...  (starting up!)







Get ready!
         /       /   |   |  (####)    Score: 0
        /       /    |   |   (####)   Multiplier: 1
       /       /     |   |    (####)  Streak: 0
      /       /      |   |     (####)
     /       /       |   |      (####)
    /       /        |   |       (####)
   -        -        -   -        -####- 
 -            -    -       -     -#######-
 -            -   -         -   -##########-
  -          -    -         -    -########-   
    -      -        -     -        -#####-   
      -  -             -              -

Author:  |LorD| Kiraly [ 30 Dec 2011, 17:32 ]
Post subject:  Re: Please give me a rate

Jamza wrote:
Doesn't even work for me. I ran it, it failed. Just sits at the same place.

Code:
Last login: Fri Dec 30 11:29:22 on console
Jamess-MacBook-Pro:~ James$ cd Desktop/
Jamess-MacBook-Pro:Desktop James$ wine TTR.exe
Welcome to Tap Tap Revenge Console Edtition!
Would you like a quick tutorial? <Y/N>
n
Wait a second it's loading...
10% loaded... (initialising tappers..)
23% loaded... (positioning the tappers..)
30% loaded... (wasting time..)
58% loaded...  (loading up the track..)
70% loaded...  (simulating the song..)
89% loaded...  (writing a letter to Santa..)
100% loaded...  (starting up!)







Get ready!
         /       /   |   |  (####)    Score: 0
        /       /    |   |   (####)   Multiplier: 1
       /       /     |   |    (####)  Streak: 0
      /       /      |   |     (####)
     /       /       |   |      (####)
    /       /        |   |       (####)
   -        -        -   -        -####- 
 -            -    -       -     -#######-
 -            -   -         -   -##########-
  -          -    -         -    -########-   
    -      -        -     -        -#####-   
      -  -             -              -

well in try entering Y at the tutorial part, and read that. meanwhile, in this case you gotta press "d" then Enter. I know its a pain to press Enter too, but i can't really find a way to do without. Sorry.

Author:  |LorD| Kiraly [ 30 Dec 2011, 17:36 ]
Post subject:  Re: Please give me a rate

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(){}

Page 2 of 2 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/