Karma-Slots icon indicating copy to clipboard operation
Karma-Slots copied to clipboard

[question] How calculate "stopping_distance"?

Open YokiToki opened this issue 7 years ago • 1 comments

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

YokiToki avatar May 23 '17 11:05 YokiToki

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

clintbellanger avatar May 23 '17 12:05 clintbellanger