Hi, everyone :)
I'm creating a game for mobile, and I want to use an "energy system", like the lives in Candy Crush or in other games. The basic idea is you spend energy to enter a level and from time to time, even with the game closed, the energy is replenished. I've learned that you can get the time of the device with the Browser Object. But I'll build the game with Cocoon, and I've heard that the Browser Object is not supported for this.
There's any other way of get the device time/hour than using the Browser Object? Or even, there's any other way of making this energy system? Couldn't find any tutorial anywhere...