Hello,
I am developing a new PHP game which I have been working on for sometime now. Some of you may have seen the film In Time, time is the new currency and if their time runs out they will die. I want to create something similar which has my own modifications on it.
I am stuck on a problem I have. I want to give people 1 week of time and a count down will be started, they can gain more time by doing jobs and other roles which will be added to the game later on.
I want to know which will be the most efficient way of doing the time. I want a count down in the top of the screen which they can always view. The way I have come up with is I make a time stamp of when the user registers and add a week onto it. Then from that keep adding time when jobs are completed. I will then have a cron job running every second which will find out if the time is over or not, once time is over the person will be killed.
Could someone help me as to how i could achieve this.
Or is there an easier, or more efficient way of doing it.
Thanks, Tom.