Sup my m8, I would like to hear if some of my peers and I would be able to get the source code for the project, because we are making a text based game, and have no previous knowledge about how to start.
Hey! don't know if you would reply me or not but whatever, can you tell me how you go back to the menu? example when you goto the help menu how do u go back?
That is a good question! The menu and the other components of the game are made with functions. Everything you see displayed in the menu is stored in a single function that firstly clears all the previously displayed text before it displays the menu itself. To clear the command window I used a function system("cls") which is a part of the stdlib library. When I opened the credits at 0:07 the game called a function system("cls") and then displayed the credits using the basic output function. When I pressed a random key the game called a function that displays the menu the same way the credits function did. It may look like I go back to the menu but in reality the game just clears the command window and display the new menu. I hope this answers your question.
Hey! I don't really understand what you mean but could you try to add some adjustments to my code? // ConsoleApplication4.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include #include using namespace std; int main() { //CountryA Properties float CountryAHealth = 10; //CountryB Properties float CountryBHealth = 10; //CountryC Properties float CountryCHealth = 10; //PlayerCountry int PlayerCountry; //Main Game cout
Hey sorry for such a late reply. Well I did some improvements after I made this video but I soon realised that the code I wrote was actually really bad so I decided to work on some other projects. I don't think sharing a bad code with others is a good idea. I will post more content in the upcoming weeks.