Tobee_RPG/src/RPG.cpp

39 lines
1.2 KiB
C++

#include <iostream>
#include "TobeeRPG.h"
using namespace std;
void RPG(){
int TobiHP = 10;
int BadGuyHP = 5;
// makes a variable for user input
int UsrIn;
cout << "'GIMME YO FUCKIN' MONEY' said the badguy\n";
cout << "You need to help him\n";
// this is an infinite loop
while (true){
cout << "Tobi's HP is: " << TobiHP << endl;
cout << "BadDude's HP is: " << BadGuyHP << endl;
cout << "You can type 1 to kick the guys dick or type 2 to do nothing: ";
// this reads the number you typed and then writes it to the variable UsrIn
cin >> UsrIn;
if(UsrIn==1){
cout << "Tobi used dick kick\n";
BadGuyHP -= 2;
cout << "BadDude says 'Ow My fuckin dick'\n";
} else if(UsrIn==2){
cout << "BadDude used FUCKING LEAD TO THE HEAD!!!!!!\n";
TobiHP -= 999999;
cout << "BadDude says 'Fuckin loser scrub cunt wanker bitch'\n";
}
if (TobiHP<=0) {
cout << "Tobi fucking died 'Best ending' \n" << endl;
// break ends the loop
break;
} else if (BadGuyHP<=0) {
cout << "Tobi killed a man 'Good ending' \n" << endl;
break;
}
}
}