Compare commits

...

1 Commits

Author SHA1 Message Date
Return0ne cdf022c8ce fixed dumb mistake in the Makefile 2021-10-30 16:48:46 -04:00
8 changed files with 27 additions and 20 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
TobeeRPG

View File

@ -2,7 +2,7 @@
#files to compile
OBJS = src/main.cpp src/TobeeRPG.h src/RPG.cpp
OBJS = src/Main.cpp src/RPG.cpp
#compiler to use

View File

@ -1,18 +1,19 @@
# TobeeRPG
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++
</p>This is game I made for my good friend Tobi<p>
</p>To build you need git, make, and g++<p>
Building
## Building
1. git clone https://gitdab.com/Canneddonuts/Tobee_RPG
1. git clone https://gitdab.com/Canneddonuts/Tobee_RPG.git
2. cd Tobee_RPG
3. make
3. make "or run the compileWindows.bat file on windows"
To run
## To run
*nix
### *nix
./TobeeRPG
windows
### Windows
TobeeRPG.exe

View File

@ -1,2 +1,2 @@
@echo off
g++ src/main.cpp src/TobeeRPG.h src/RPG.cpp res/icon.o -o TobeeRPG.exe
g++ src/Main.cpp src/RPG.cpp res/icon.o -o TobeeRPG.exe

View File

@ -1,17 +1,14 @@
/* This code has no license so you can do whatever you want with it.
made by M-C-O-B 2021
*/
#include <iostream>
#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
}
#include "RPG.h"
// makes a function called PrgEnd
void PrgEnd();
int main(){
cout << "Tobi was walking home from his long ass walk" << endl;
@ -23,3 +20,10 @@ int main(){
PrgEnd();
return 0;
}
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
}

View File

@ -1,5 +1,4 @@
#include <iostream>
#include "TobeeRPG.h"
using namespace std;
void RPG(){

3
src/RPG.h Normal file
View File

@ -0,0 +1,3 @@
#pragma once
void RPG();

View File

@ -1 +0,0 @@
void RPG();