Hey, I'm writing a Game in C that is text based. I've written almost the complete game, but it isn't going to be fully complete unless I have a way for my Character to die.
I've looked through several books and I just can't find out how to answer my question, so I turned to here.
My question is:
How do I add a "health system" to my game. that deals with just numbers. Kinda like an RPG, when My character gets into battle..i need for the "bad" guy to generate a hit and take off a random amount of health..
Do i need to set a global HEALTH variable and add a few while loops or what? .
Please Help.