Winwheel.js Downloads
Click Download Now to download the latest version.
This page also contains links to download the older versions and version history information.
Latest Version - 2.0 (2015-09-26)
|
Size: 52kb .zip |
Older Versions
- Version 1.3 (angle guide and minor updates) 120kb .zip
- Version 1.2 (pre-determined feature) 82kb .zip
- Version 1.1 (prize detection feature) 116kb .zip
- Version 1.0 (original version) 178kb .zip
Version History
2.0 (2015-09-26)
- Finally released Winwheel 2.0 and the new version of the site even though not 100% complete.
1.3 (2013-07-20)
- Removed the version history from the top of the winwheel.js file and placed on this web page.
- Corrected minor incorrectness with with the final endAngle in the prizes array. Should be 359 not 360.
- Added an angle_guide.png image to the downloadable source to assist in working out the start and end angles of the prize segments for the Prize Detection and Predetermined features, or just to make it easier creating prize wheel images.
1.2 (2013-07-14)
- Added "Pre-determined" feature which allows the result of the spin to be predetermined by a server side process, or other code, then when the wheel spins it will stop at this pre-determined location or prize rather than a random one.
- This required changes to the spinning code so instead of counting down until no rotations left it spins upwards until the target angle is met. Also needed to change the code that works out the power to just set the power level; the new startSpin() function sets the targetAngle based on the power.
- Decided to improve the slowdown code by adjusting the way the thresholds that change the amount of angle rotated by are calculated. They now work on the principle of how close the currentAngle is to the targetAngle.
- Added ability to reset the wheel by adding resetWheel() function.
- Overhauled the declaration of the global variables, moving ones that developers can alter to the top, and moving ones that should not be altered to seperate section. Also updated most of the comements describing what the variables do.
- Added check that power level is selected before the wheel will spin (previously you could click Spin with no power selected) and also added variable to store the current state of the wheel - if spinning or not - so click of spin button while wheel is already spinning has no effect.
1.1 (2013-04-23)
- Added "Prize Detection" feature which works out the prize the user has won when the wheel stops. As part of this I changed the wheel graphic to contain less segments so easier to understand.
1.0 (2012-01-28)
- Original version created based on earlier project for work social club.
