quote: Original post by Andrew Nguyen
//Dont add .h or else Olusyi will have your head
I''ve got a better reason than that. How about "don''t add .h or else it won''t compile"?
[ C++ FAQ Lite | ACCU | Boost | Python | Agile Manifesto! ]
quote: Original post by Andrew Nguyen
//Dont add .h or else Olusyi will have your head
quote: Original post by NoirRaven
As for the story, who cares what the story is, at this time the point of what you are doing is to learn how to program in C++ and make a game, and if I remember correctly both DOOM and Tetris had no stories (ok DOOM had "a portal to hell was opened and all your buddies were turned to zombies, here is a shotgun...have fun",) and no one complained to much, so don''t be hindered by a "lame" story or writers block. I do think it was a good idea to remove the "press a key to continue" parts, the player should never have to do something for no reason.
char CharacterResults(){ char yn; do { Cls(); cout << "Name: " << player.name; cout << "\nRace: " << player.race; cout << "\nClass: " << player.characterclass; cout << "\n\nStrength: " << player.strength; cout << "\nDefence: " << player.defence; cout << "\nMagic: " << player.magic; cout << "\nAgility: " << player.agility; cout << "\n\nMaximum Mana: " << player.maxmana; cout << "\nMaximum HP: " << player.maxhp; cout << "\n\nBattle Interval: " << player.battleinterval; cout << "\n\nWould you like to keep these stats and continue?(y/n)"; cout << flush; yn = getch(); if (yn != ''y'' && yn != ''Y'' && yn != ''n'' && yn != ''N'') { cout << "\n\nNot a valid choice.\n\n"; cout << "Press any key to continue..."; cout << flush; getch(); } else break; } return yn;}
bool bDone = false;do{ // what you had with cls, cout, etc if (yn...) { //... etc } else bDone = true;}while (bDone == false);
quote: Original post by MiserableOriginal post by NoirRaven
As for the story, who cares what the story is, at this time the point of what you are doing is to learn how to program in C++ and make a game, and if I remember correctly both DOOM and Tetris had no stories (ok DOOM had "a portal to hell was opened and all your buddies were turned to zombies, here is a shotgun…have fun",) and no one complained to much, so don''t be hindered by a "lame" story or writers block. I do think it was a good idea to remove the "press a key to continue" parts, the player should never have to do something for no reason.