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>

Project details


Download files

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

Source Distribution

energy-0.1.4.tar.gz (7.3 kB view details)

Uploaded Source

File details

Details for the file energy-0.1.4.tar.gz.

File metadata

  • Download URL: energy-0.1.4.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for energy-0.1.4.tar.gz
Algorithm Hash digest
SHA256 91429422949b16b5bd046f7b11a1f09af16b7632c4e8f42086384466fedcfd8b
MD5 5f073480300feea25fab0d15bc057187
BLAKE2b-256 aed4e4e98bbcba4a42541ad71d50c9e2bc4c3a8834ccf1c9e7f591824484f638

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page