commit 10e60e4e3c294292ec3f033243d1b5e78fbc308f Author: Mark B Date: Wed Aug 4 12:09:11 2021 -0400 first commit diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..15ae2f3 --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +#COPYRIGHT no one cares lol + +#files to compile + +OBJS = src/main.cpp + +#compiler to use + +CC = g++ + +#name of muh bin lel + +OBJ_NAME = TobeeRPG + +#no regerts cuz its all together now + +all : $(OBJS) + $(CC) $(OBJS) -o $(OBJ_NAME) diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..840a987 --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,59 @@ +/* This code has no license so you can do whatever you want with it. + made by M-C-O-B 2021 + */ + +#include +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 -= 4; + 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; + } + } + +} + +void PrgEnd() { + string Name; // this makes a string called name + cout << "To exit the program please type your name: "; + cin >> Name; // this gets what you typed + cout << "Thanks for playing: " << Name << endl;// this displays what you type +} + +int main(){ + cout << "Tobi was walking home from his long ass walk" << endl; + cout << "Then FROM OUTTA NOWHERE HE GOT JUMPED BY SOME ASSHOLE\n" << endl; + cout << "To play just type a number then hit enter" << endl; + cout << "Oh yeah if you type a letter the game fuckin breaks, enjoy\n" << endl; + RPG(); + cout << "Happy Birthday Tobi\n"; + PrgEnd(); + return 0; +}