Karma-Slots
Karma-Slots copied to clipboard
[question] How calculate "stopping_distance"?
I see, that is 1 + 2 + 3...+ 31 + 32, but I can not understand how it was calculated. Which values were used for this (reel_positions, symbol_size, max_reel_speed is a 32)?
Thanks
It's been a while so I don't remember for sure. I think it is something like this:
- The icons are 32px
- The max speed is also 32px per frame
- When it's time to stop the reels, we want to go from 32px per frame down to 0 px per frame
- That is, the reel is slower by 1px per frame per frame
- When the reel is stopped, it needs to stop perfectly in position
- So the total stopping distance is 1+2+3+ .... +32