@Wildblue
First off, I just added the cost to the UI. :)
Second, health will reset after each battle is over however gold will be made through battling. The idea was to make this game open ended so the things you fight continuously get harder via the lvl multiplier. You take the gold and prepare to fight your next opponent, but when you lose a battle you go down a lvl to prevent you from getting stuck.
@programmerdog297
I have to admit I'm a bit embarrassed that I didn't catch the run output conflicting with the main menu. Easy fix.
Could you explain to me further how to avoid hard-coding? I think I understand conceptually but could you give me a simple example code?
Also, how do I separate them into multiple different functions? Is it basically what I did with the cls stuff?
To clarify, this is the cls stuff:
1 2 3 4 5 6 7 8
|
void clear()//Shortening common syntax
{
cout << "\n\n";
system("PAUSE");
system("cls");
}
| |
Sorry my knowledge is extremely spotty, I've been able to program for years and I've known I want to do it as a career, but I haven't really gotten into it seriously yet.