I want to create one of those systems where the player has only so much energy to play each level, and playing one losses one point, and can’t play a level without energy.
Then, say, every hour, the player regenerates 1 energy point.
My current idea is, when the player opens the level select menu, find the difference between the current time and the last time they left this UI and calculate this difference.
This seems fairly simple to implement, but I’d like to hear any other ideas for this system, because maybe there is an even easier way.