energy-0.1.9
توضیحات
Energy system for social games
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | energy-0.1.9 |
| نام | energy |
| نسخه کتابخانه | 0.1.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Heungsub Lee |
| ایمیل نویسنده | sub@subl.ee |
| آدرس صفحه اصلی | http://pythonhosted.org/energy |
| آدرس اینترنتی | https://pypi.org/project/energy/ |
| مجوز | BSD |
Energy
~~~~~~
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 <http://www.facebook.com/FarmVille>`_
or `Zoo Invasion <http://apps.facebook.com/zooinvasion/?campaign=sublee&kt_st1=
project&kt_st2=energy&kt_st3=pypi>`_ or `The Sims Social <http://www.facebook.
com/TheSimsSocial>`_, 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
`````
* `GitHub repository <http://github.com/sublee/energy>`_
* `development version
<http://github.com/sublee/energy/zipball/master#egg=energy-dev>`_
نحوه نصب
نصب پکیج whl energy-0.1.9:
pip install energy-0.1.9.whl
نصب پکیج tar.gz energy-0.1.9:
pip install energy-0.1.9.tar.gz