https://github.com/shillysit/statsystem
A simple stat handling system for games.
https://github.com/shillysit/statsystem
Last synced: 3 months ago
JSON representation
A simple stat handling system for games.
- Host: GitHub
- URL: https://github.com/shillysit/statsystem
- Owner: SHiLLySiT
- Archived: true
- Created: 2012-01-13T01:18:40.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-08-07T05:43:04.000Z (almost 13 years ago)
- Last Synced: 2025-01-27T13:15:23.090Z (4 months ago)
- Language: ActionScript
- Homepage: http://pixelsquidgames.net/
- Size: 231 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
A simple stat handling system for flash games.
For more information visit: http://pixelsquidgames.net/projects/statsystem/statsystem.html
For documentation visit: http://pixelsquidgames.net/projects/statsystem/documentation/index.htmlChangelog:
Version 2.1.2 (August 6th, 2012)
* Many Miscellaneous fixes for the inventory package (sorry too many over a long period of time to recall)
Version 2.1.1 (July 11th, 2012)
* Fixed setValue() not checking if a max value was set for the stat. If there is one, the new value is clamped within that range. If not, the new value is unchanged.
* Added empty() and fill() function to the Stat class. Empty sets the stat value to 0 and calls the onEmpty function and fill sets the value to the max value (if there is one) and calls the onFull function.
Version 2.1.0 (June 18th, 2012)
* Added null check for the onEmpty and onFull functions when a stat is set to a particular value
* Added inventory management features, item base class, and optional database management classVersion 2.0.2 (May 13th, 2012)
* Updated documentation
* Added setValue and setMaxValue methods
Version 2.0.1 (May 6th, 2012)
* Updated documentation
* Setting a stat to a maxValue of zero is now interpreted as no limitVersion 2.0 (April 26th, 2012)
NOTE: This is not backwards compatible, hence major version bump* condensed MeterStat and LevelStat into one class
* removed experience methods
* added onFull and onEmpty functions which execute when a stat's value equals maxValue or 0 respectively
* modifier now has a type variable which identifies the value it affects
* added saving and loading of the stat system, stats, and modifiersVersion 1.1 (January 24, 2014)
* Split stat class into two separate classes
* Add experience management for statsVersion 1.0 (Inital Release)