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>
Links
Project details
Release history Release notifications | RSS feed
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.3.tar.gz
(7.2 kB
view details)
File details
Details for the file energy-0.1.3.tar.gz
.
File metadata
- Download URL: energy-0.1.3.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 048d0f03b42bdfdf2ce9303ff7a936b1f7e526ae45eef0dea16b03472cc23a3e |
|
MD5 | af1dbed887f53898470fa02b3def83ed |
|
BLAKE2b-256 | 10a41b74990093b9cb96624c010c12039858d754c52e427c141cc38a30207a72 |