Compare commits
1 commit
Author | SHA1 | Date | |
---|---|---|---|
cdf022c8ce |
8 changed files with 27 additions and 20 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
TobeeRPG
|
2
Makefile
2
Makefile
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
#files to compile
|
#files to compile
|
||||||
|
|
||||||
OBJS = src/main.cpp src/TobeeRPG.h src/RPG.cpp
|
OBJS = src/Main.cpp src/RPG.cpp
|
||||||
|
|
||||||
#compiler to use
|
#compiler to use
|
||||||
|
|
||||||
|
|
17
README.md
17
README.md
|
@ -1,18 +1,19 @@
|
||||||
|
# TobeeRPG
|
||||||
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
|
</p>This is game I made for my good friend Tobi<p>
|
||||||
To build you need git,make, and g++
|
</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
|
2. cd Tobee_RPG
|
||||||
3. make
|
3. make "or run the compileWindows.bat file on windows"
|
||||||
|
|
||||||
To run
|
## To run
|
||||||
|
|
||||||
*nix
|
### *nix
|
||||||
./TobeeRPG
|
./TobeeRPG
|
||||||
|
|
||||||
windows
|
### Windows
|
||||||
TobeeRPG.exe
|
TobeeRPG.exe
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
@echo off
|
@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
|
||||||
|
|
|
@ -1,17 +1,14 @@
|
||||||
/* 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"
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
void PrgEnd() {
|
#include "RPG.h"
|
||||||
string Name; // this makes a string called name
|
|
||||||
cout << "To exit the program please type your name: ";
|
|
||||||
cin >> Name; // this gets what you typed
|
// makes a function called PrgEnd
|
||||||
cout << "Thanks for playing: " << Name << endl;// this displays what you type
|
void PrgEnd();
|
||||||
}
|
|
||||||
|
|
||||||
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;
|
||||||
|
@ -23,3 +20,10 @@ int main(){
|
||||||
PrgEnd();
|
PrgEnd();
|
||||||
return 0;
|
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
|
||||||
|
}
|
|
@ -1,5 +1,4 @@
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "TobeeRPG.h"
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
void RPG(){
|
void RPG(){
|
||||||
|
|
3
src/RPG.h
Normal file
3
src/RPG.h
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
void RPG();
|
|
@ -1 +0,0 @@
|
||||||
void RPG();
|
|
Loading…
Reference in a new issue