From dd0900911b2a44a96b58eadf26405112b4787587 Mon Sep 17 00:00:00 2001 From: "Peter Marek (marekp)" Date: Thu, 28 May 2020 21:36:25 +0200 Subject: [PATCH] Create CombatEnding.cpp --- CombatEnding.cpp | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 CombatEnding.cpp diff --git a/CombatEnding.cpp b/CombatEnding.cpp new file mode 100644 index 0000000..38d7f2b --- /dev/null +++ b/CombatEnding.cpp @@ -0,0 +1,33 @@ +#include +#include +#include +#include +#include "Finish.cpp" +#pragma once +using namespace std; + +int combatEnding(){ + + cout << "You Manage to Defeat the enemy and see the aura that was shrouding them disappear and fly away in the distance." << endl; + sleep(2); + cout << "You decide to search the persons body for anything \nYou find a not on the body. It seems to be some type of coordinate." << endl; + sleep(2); + cout << "Maybe this can can be some type of clue, but you have nothing else to go on." << endl; + sleep(2); + cout << "You can only hope this location would be the place youll be able to find the answers you need..." << endl; + sleep(3); + string choice; + + cout<< "Would you like to see the credits for this game(Y/N)?: "; + cin>>choice; + + if (choice == "y" || choice == "Y"){ + finish(); + } + else{ + exit(0); + } + + + return 0; + }