I want to create a text based real time strategy game.
I would like to know how I can create an ingame mine that produces x amount of resources/h.
And then to make the mine upgrade able. Witch wil take y amount of time to upgrade and cost z amount of resources to upgrade. And then increase the production per hour by a new amount per hour.
Any one willing to help or even show me code that will do this or even direct me to a tutorial please.