From 98e9aef96528b58027b9262f37dadce9771e0f55 Mon Sep 17 00:00:00 2001 From: Mark B Date: Thu, 12 Aug 2021 14:05:34 -0400 Subject: [PATCH] added an icon on windows --- Makefile | 36 +++++----- README.md | 36 +++++----- compileWindows.bat | 2 + res/icon.ico | Bin 0 -> 16958 bytes res/icon.o | Bin 0 -> 17238 bytes res/main.rc | 1 + res_src/Tobi RPG Ico-20210812-132500.piskel | 1 + res_src/Tobi RPG Ico.png | Bin 0 -> 456 bytes src/RPG.cpp | 76 ++++++++++---------- src/TobeeRPG.h | 2 +- src/main.cpp | 50 ++++++------- 11 files changed, 104 insertions(+), 100 deletions(-) create mode 100644 compileWindows.bat create mode 100644 res/icon.ico create mode 100644 res/icon.o create mode 100644 res/main.rc create mode 100644 res_src/Tobi RPG Ico-20210812-132500.piskel create mode 100644 res_src/Tobi RPG Ico.png diff --git a/Makefile b/Makefile index 5f9ede6..44bc658 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,18 @@ -#COPYRIGHT no one cares lol - -#files to compile - -OBJS = src/main.cpp src/TobeeRPG.h src/RPG.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) +#COPYRIGHT no one cares lol + +#files to compile + +OBJS = src/main.cpp src/TobeeRPG.h src/RPG.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/README.md b/README.md index 193c030..1962041 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,18 @@ -THIS GAME/CODE CONTAINS CURSE WORDS AND OTHER OBSCENITIES - -This is game I made for my good friend Tobi -To build you need git,make, and g++ - -Building - -1. git clone https://gitdab.com/Canneddonuts/Tobee_RPG -2. cd Tobee_RPG -3. make - -To run - -*nix -./TobeeRPG - -windows -TobeeRPG.exe +THIS GAME/CODE CONTAINS CURSE WORDS AND OTHER OBSCENITIES + +This is game I made for my good friend Tobi +To build you need git,make, and g++ + +Building + +1. git clone https://gitdab.com/Canneddonuts/Tobee_RPG +2. cd Tobee_RPG +3. make + +To run + +*nix +./TobeeRPG + +windows +TobeeRPG.exe diff --git a/compileWindows.bat b/compileWindows.bat new file mode 100644 index 0000000..1fa08ca --- /dev/null +++ b/compileWindows.bat @@ -0,0 +1,2 @@ +@echo off +g++ src/main.cpp src/TobeeRPG.h src/RPG.cpp res/icon.o -o TobeeRPG.exe \ No newline at end of file diff --git a/res/icon.ico b/res/icon.ico new file mode 100644 index 0000000000000000000000000000000000000000..6eb4ad14397dafd4867257057af7af2fb90aa84c GIT binary patch literal 16958 zcmeI4QEnSC3`FJj4*l+DjuG@^y?Ed*TM&3*NQ%;`&c?e59F54CA*r>EB#WfA+xGeT z+P1Gh+sm)kezewJw#OD~zqg0P|9-swTln>M`+h&`qusu}pS_v=v!Bh`<~7%|nf+N` z2j`vpWUu$@`TqX>{yLA7pT}cg|8H;iyFR|kd#?5?Yu0mxSK(weJ|kD@nH<4UpX5cH zqs4nYGp{(BLG!XkoTJ6Fo|#je^{*URGv1MMQO}Gk?)9xaS$o{0=n0XStDjnUCb?)#Eb% zXkApBeFz?%$?AK1?Zfgk-dm~baicsvh?UQnV2yjL<@WaKVR;&lR?C-t#O=j8q5(#HAdnU zKXL>|{^X5vD%!|%PrOo>9KlgN@a+;_0f2BwfdQTwU+X-8p^4z)~l*hp4HFn)vLN@HL4!Ui@Y@7TO<7y zKgvD-$Nv8P!*y>*Iftu{57%b;>zdgGhKhqLY$pfm6v&Z zc8)W6IO~u6jCbT5XUMQO1NmOQ5?kS+b?Bv7bJ40iSuH2a3AdNGe%^ky2mOe>+PxWi z`d&V&$@m@*YO9#FpKX3So1IV2$Z~jYBRT7BwbgxAKl7l@n~U0v%N#X=vs@)_{k(mz zhNqdS9o32Al^U5g>f6R=JZ3b}Jeilx+57i4Z)dCQXFO&!mHFvwu{R4jUcM5W@tDzE z^ZV~-Jj)Dw*OGiMUy03l%xEgtpZ!*9R50QCIbt<~gs9&i`PGyc+4(miX@+RNq1b^>JT?M<|i|$wLsZZ_y o>~XpGqWiG>=ePHx?cUsv+uL{Wd|ZCM(Q|X_pZ^Qs!sk1IKSH3-1poj5 literal 0 HcmV?d00001 diff --git a/res/icon.o b/res/icon.o new file mode 100644 index 0000000000000000000000000000000000000000..a9e944c1bf557532192a7a8263de1ccf7885c8a6 GIT binary patch literal 17238 zcmeHPL2eUK4E@tYs@SmN04%#eh$Raa0ai$WxC0y3pP%hNNmLkhJ`O{oWAi?x16mI+ufJb^-Fpu&zu%?wCc_t*L&rrv zH|f<+!vBtow91R;DQ%x-`z70K;28G$uND83bxJ>gNsxNk=AUl{|0c)R=~H@}KBUhX z({Y>6tK2IezcPNti)^p*xyk1?p96JD$7cU}^fC;q-CWN!TpZ7y#QNO#W^VI}>zTxQ zuAhVX&ONiw`|^H2{=Q%KW9IvD+Ry*p-EPO{WBJbIe#v@0M|csASK}dKk)Dx5*yME?DU^-8^HHP9!uFy>**YsH?v7ptk~=}-){ zN?eSeI?t+&eGsmlN#>W<+=t|`zhp75#I@q6ftdN|Bg}ryN^WV*8j{C;%St}2EpEwQ z(vopcPjX9Z)Iu)$31iH{GAFv0dRiWGv^e`BJd0!bNgHDp<{oM->RGuFj_k8m%d3Gg z#8! zryJpo^zJ@7mla_$9^m)k9QSUS|MA^l?D;-Dr|XZi zAolhv%JVcHI)*c7*y|7Z9&gGqoWaA|49M5w5nm4tu7g^PIc8brk(C@TM%+?d>S^oV z8mNa@t6iF*lwXQlHPJst19PJoYoFWvayB_1?UCf*zSYE}w#<#Lz51R8=4o?buE)g~ z<`DK`k+{^;)}cH|6a!BY>{<~MoUg)e$>4C@8!Cb;xKP3*vG2ikdrw1NW2XmuX_KbNLv;4^EfqT?J z4GUYnA|E-HA2~g6&pN2ZxYQ%_$RgMBBc~Okb_BQ9iR3**{YXvZMCNGaU>yrv+Q?Tq z#^1YQUIeS!o$gnSsgJq;v&Zh*o$kYqpI_dOmTPf8ZfxJi`?34}TJO!=|Ixz$mc0FZc`0g?+L#lPj60?=q<69Ck$R9a&x z03^pO0A;WL%UuG1lg|M_Y8L^JL<<1$@C<+eSP-C|pXLBS#vzB@v>i}tT{PD$Kr2Em zXDI;WFf$E6foK_P7T_NQWy}zO(SdFqHvnk&m;tCkxB=jz1wa4rP`XiCRnoNYp z4o7i-w@GIOXju=s3?l8{TBr$t>x4Z3sIA=v;GC3Om<9l4%Zc6zN)*(49Qi6R8UPJ3 z0PU9S3y|>p00aRAkU$XafVYA)0knd3CrCwD4uFcVBtQwl9RLC~`hzzENQQfW*&=%f yaNhv|;2j{&fB?At8XW%L+?^wPe>|SIbbJ9FLCl#|%JJX;0000 -#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; - } - } - -} +#include +#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; + } + } + +} diff --git a/src/TobeeRPG.h b/src/TobeeRPG.h index 1936e48..ff89617 100644 --- a/src/TobeeRPG.h +++ b/src/TobeeRPG.h @@ -1 +1 @@ -void RPG(); +void RPG(); diff --git a/src/main.cpp b/src/main.cpp index ae12443..8cc0ed5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,25 +1,25 @@ -/* This code has no license so you can do whatever you want with it. - made by M-C-O-B 2021 - */ - -#include -#include "TobeeRPG.h" -using namespace std; - -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; -} +/* This code has no license so you can do whatever you want with it. + made by M-C-O-B 2021 + */ + +#include +#include "TobeeRPG.h" +using namespace std; + +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; +}