added an icon on windows
This commit is contained in:
parent
b6f9db8264
commit
98e9aef965
11 changed files with 104 additions and 100 deletions
36
Makefile
36
Makefile
|
@ -1,18 +1,18 @@
|
||||||
#COPYRIGHT no one cares lol
|
#COPYRIGHT no one cares lol
|
||||||
|
|
||||||
#files to compile
|
#files to compile
|
||||||
|
|
||||||
OBJS = src/main.cpp src/TobeeRPG.h src/RPG.cpp
|
OBJS = src/main.cpp src/TobeeRPG.h src/RPG.cpp
|
||||||
|
|
||||||
#compiler to use
|
#compiler to use
|
||||||
|
|
||||||
CC = g++
|
CC = g++
|
||||||
|
|
||||||
#name of muh bin lel
|
#name of muh bin lel
|
||||||
|
|
||||||
OBJ_NAME = TobeeRPG
|
OBJ_NAME = TobeeRPG
|
||||||
|
|
||||||
#no regerts cuz its all together now
|
#no regerts cuz its all together now
|
||||||
|
|
||||||
all : $(OBJS)
|
all : $(OBJS)
|
||||||
$(CC) $(OBJS) -o $(OBJ_NAME)
|
$(CC) $(OBJS) -o $(OBJ_NAME)
|
||||||
|
|
36
README.md
36
README.md
|
@ -1,18 +1,18 @@
|
||||||
THIS GAME/CODE CONTAINS CURSE WORDS AND OTHER OBSCENITIES
|
THIS GAME/CODE CONTAINS CURSE WORDS AND OTHER OBSCENITIES
|
||||||
|
|
||||||
This is game I made for my good friend Tobi
|
This is game I made for my good friend Tobi
|
||||||
To build you need git,make, and g++
|
To build you need git,make, and g++
|
||||||
|
|
||||||
Building
|
Building
|
||||||
|
|
||||||
1. git clone https://gitdab.com/Canneddonuts/Tobee_RPG
|
1. git clone https://gitdab.com/Canneddonuts/Tobee_RPG
|
||||||
2. cd Tobee_RPG
|
2. cd Tobee_RPG
|
||||||
3. make
|
3. make
|
||||||
|
|
||||||
To run
|
To run
|
||||||
|
|
||||||
*nix
|
*nix
|
||||||
./TobeeRPG
|
./TobeeRPG
|
||||||
|
|
||||||
windows
|
windows
|
||||||
TobeeRPG.exe
|
TobeeRPG.exe
|
||||||
|
|
2
compileWindows.bat
Normal file
2
compileWindows.bat
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
@echo off
|
||||||
|
g++ src/main.cpp src/TobeeRPG.h src/RPG.cpp res/icon.o -o TobeeRPG.exe
|
BIN
res/icon.ico
Normal file
BIN
res/icon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
BIN
res/icon.o
Normal file
BIN
res/icon.o
Normal file
Binary file not shown.
1
res/main.rc
Normal file
1
res/main.rc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
MAIN ICON "icon.ico"
|
1
res_src/Tobi RPG Ico-20210812-132500.piskel
Normal file
1
res_src/Tobi RPG Ico-20210812-132500.piskel
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{"modelVersion":2,"piskel":{"name":"Tobi RPG Ico","description":"","fps":12,"height":64,"width":64,"layers":["{\"name\":\"Layer 1\",\"opacity\":1,\"frameCount\":1,\"chunks\":[{\"layout\":[[0]],\"base64PNG\":\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAABj0lEQVR4nO3b0a7DIAgGYOve/5Gb7qpL09opP6AiXJBsOajsG9ouzUmfbTvOyJfXpfePSJW/VyIzx7MjbUcaWoAQ5BnHvv+idUy6D2wJTQzO+gFQySltuaUAkHicAZILIcW/5ZoC0GhjEwDUrVRaYykAJMcsAGWv/8tdAoCTzwFAahcBkEQLAPDwDIAAWBCgnp/mAEDGIYfdtB1Qal001yxAK0ItZykA5DAzDUCBaBlrFuAfBGXMEIDRgW4dNwBo95gBqEG4AeCiBUAABIA/ACQCYOTi1cfv2jHN4/GZO4D7605jLolaTAJI1qIGIPHNTQvAzePmINf5ZQCQb7cbALIFAoABIPXhVQC05kIOR3GAt0lnBWhZD7oMIu3fWqgJgOuEPQCord0F4JyUW5gGAGXLid4JShTUexz5KjAaAA0xAO2W7AuQ8PsABAEFkEAQ7YC3gjQBtIJ1J0hFWA6AirAkQAnBHQACNfqDNwNIhnuA2SJ7B3DfAQHgHSDOgAC4/Roc/t/cnSN7fzyet3R8AR1BzJlVyvHgAAAAAElFTkSuQmCC\"}]}"],"hiddenFrames":[""]}}
|
BIN
res_src/Tobi RPG Ico.png
Normal file
BIN
res_src/Tobi RPG Ico.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 456 B |
76
src/RPG.cpp
76
src/RPG.cpp
|
@ -1,38 +1,38 @@
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "TobeeRPG.h"
|
#include "TobeeRPG.h"
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
void RPG(){
|
void RPG(){
|
||||||
int TobiHP = 10;
|
int TobiHP = 10;
|
||||||
int BadGuyHP = 5;
|
int BadGuyHP = 5;
|
||||||
// makes a variable for user input
|
// makes a variable for user input
|
||||||
int UsrIn;
|
int UsrIn;
|
||||||
cout << "'GIMME YO FUCKIN' MONEY' said the badguy\n";
|
cout << "'GIMME YO FUCKIN' MONEY' said the badguy\n";
|
||||||
cout << "You need to help him\n";
|
cout << "You need to help him\n";
|
||||||
// this is an infinite loop
|
// this is an infinite loop
|
||||||
while (true){
|
while (true){
|
||||||
cout << "Tobi's HP is: " << TobiHP << endl;
|
cout << "Tobi's HP is: " << TobiHP << endl;
|
||||||
cout << "BadDude's HP is: " << BadGuyHP << endl;
|
cout << "BadDude's HP is: " << BadGuyHP << endl;
|
||||||
cout << "You can type 1 to kick the guys dick or type 2 to do nothing: ";
|
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
|
// this reads the number you typed and then writes it to the variable UsrIn
|
||||||
cin >> UsrIn;
|
cin >> UsrIn;
|
||||||
if(UsrIn==1){
|
if(UsrIn==1){
|
||||||
cout << "Tobi used dick kick\n";
|
cout << "Tobi used dick kick\n";
|
||||||
BadGuyHP -= 2;
|
BadGuyHP -= 2;
|
||||||
cout << "BadDude says 'Ow My fuckin dick'\n";
|
cout << "BadDude says 'Ow My fuckin dick'\n";
|
||||||
} else if(UsrIn==2){
|
} else if(UsrIn==2){
|
||||||
cout << "BadDude used FUCKING LEAD TO THE HEAD!!!!!!\n";
|
cout << "BadDude used FUCKING LEAD TO THE HEAD!!!!!!\n";
|
||||||
TobiHP -= 999999;
|
TobiHP -= 999999;
|
||||||
cout << "BadDude says 'Fuckin loser scrub cunt wanker bitch'\n";
|
cout << "BadDude says 'Fuckin loser scrub cunt wanker bitch'\n";
|
||||||
}
|
}
|
||||||
if (TobiHP<=0) {
|
if (TobiHP<=0) {
|
||||||
cout << "Tobi fucking died 'Best ending' \n" << endl;
|
cout << "Tobi fucking died 'Best ending' \n" << endl;
|
||||||
// break ends the loop
|
// break ends the loop
|
||||||
break;
|
break;
|
||||||
} else if (BadGuyHP<=0) {
|
} else if (BadGuyHP<=0) {
|
||||||
cout << "Tobi killed a man 'Good ending' \n" << endl;
|
cout << "Tobi killed a man 'Good ending' \n" << endl;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
void RPG();
|
void RPG();
|
||||||
|
|
50
src/main.cpp
50
src/main.cpp
|
@ -1,25 +1,25 @@
|
||||||
/* This code has no license so you can do whatever you want with it.
|
/* This code has no license so you can do whatever you want with it.
|
||||||
made by M-C-O-B 2021
|
made by M-C-O-B 2021
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "TobeeRPG.h"
|
#include "TobeeRPG.h"
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
void PrgEnd() {
|
void PrgEnd() {
|
||||||
string Name; // this makes a string called name
|
string Name; // this makes a string called name
|
||||||
cout << "To exit the program please type your name: ";
|
cout << "To exit the program please type your name: ";
|
||||||
cin >> Name; // this gets what you typed
|
cin >> Name; // this gets what you typed
|
||||||
cout << "Thanks for playing: " << Name << endl;// this displays what you type
|
cout << "Thanks for playing: " << Name << endl;// this displays what you type
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(){
|
int main(){
|
||||||
cout << "Tobi was walking home from his long ass walk" << endl;
|
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 << "Then FROM OUTTA NOWHERE HE GOT JUMPED BY SOME ASSHOLE\n" << endl;
|
||||||
cout << "To play just type a number then hit enter" << 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;
|
cout << "Oh yeah if you type a letter the game fuckin breaks, enjoy\n" << endl;
|
||||||
RPG();
|
RPG();
|
||||||
cout << "Happy Birthday Tobi\n";
|
cout << "Happy Birthday Tobi\n";
|
||||||
PrgEnd();
|
PrgEnd();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue