Skip to main content

Energy system for social games

Project description

Energy is a consumable and recoverable stuff in social games. It limits how far players can advance in each session.

Players use energy to do actions like farming, housing, or social actions. Then consumed energy will be recovered after few minutes. Recovery is the essence of energy system. It will make players to come back to the game periodically.

In popular social games such as FarmVille or Zoo Invasion or The Sims Social, this system drives high retention rate.

>>> energy = Energy(10, recovery_interval=300)
>>> print energy
<Energy 10/10>
>>> energy.use()
>>> print energy
<Energy 9/10 recover in 05:00>

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
energy-0.1.9.tar.gz (7.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page