I need help with a small game! C++
Wo1ves1n0 (5)

So, I am working on a game for my assignment which I'm trying to keep simple. However, I'm getting confused watching people teach me how to do it.

The game is about a story that involves combat/Adventure. (More info about this please let me know.)
So I need to add like a betting game. So the player bets a number to 50, then the enemy will bet. and if the player wins the bet they continue, but if they lose I will add a loop of corruption to add a death kind of code haha. however, I want to add like a checkpoint to that section rather them having to do it all over again. if anyone knows how to do it please let me know!

Thanks!

You are viewing a single comment. View All
Wo1ves1n0 (5)

@SPQR So this is my code at the moment
#include <iostream>
using namespace std;

int main() { //Start of the game
////////////////////////////////////////////////////////////////////////////////////////////
string name; //Players name
int go; //Telling the player to start the game
////////////////////////////////////////////////////////////////////////////////////////////
cout << "'What are you doing here? You're not suppose to be here. Oh no, this must be a mistake. Well I guess we are going to have to help you escape.'" << endl; //(Jack speaking) start of the story.

cout << " " << endl; // Space
////////////////////////////////////////////////////////////////////////////////////////////

cout << "'Sorry, Names Jack. I've been here for almost a decade, learnt parts of the system that has came to curruption. It has taken over half the system. its dangerous. I need to know things about you. Tell me your name?'" << endl; //Part 1

cout << " " << endl; //Space
////////////////////////////////////////////////////////////////////////////////////////////
cout << "Enter Your Name: " << endl; //User asked to Enter name
cin >> name; //Input name
cout << " " << endl; //Space

////////////////////////////////////////////////////////////////////////////////////////////
cout << "'That's your name? " << name << "? " << "Ok no time to be scarcastic. But that name sounds dramatic as hell! Anyways. Nice to meet you. First things first we need to follow the circut to the main port. Its going to be dangrous but its the only way. Let's go " << name << "!'" << endl; //Part 1.2
cout << " " << endl;//Space

cout << "Type 'go' to walk towards the main port to start your escape!" << endl; //Telling the users to start the walk
cout << " " << endl;//Space
cin >> go;//Input for the user to start walking.
cout << " " << endl;//Space
cout << "You and jack start to take a walk through the circut. Its cold, dark and closure. You look in the far distance and see a smoky figure, as your mind wonders curiosity if that 'thing' is real? You have a choice, would you like to go and talk to the black figure? or bypass it? " << endl; //First decision. Part 1.3
////////////////////////////////////////////////////////////////////////////////////////////

}//End of the story.

Shall I continue that under the brackets? But this means he can continue and if he doesn't talk to the black figure how do I make 2 sperate stroys to keep it simple.