Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question] How calculate "stopping_distance"? #5

Open
YokiToki opened this issue May 23, 2017 · 1 comment
Open

[question] How calculate "stopping_distance"? #5

YokiToki opened this issue May 23, 2017 · 1 comment

Comments

@YokiToki
Copy link

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 YokiToki changed the title How calculate "stopping_distance"? [question] How calculate "stopping_distance"? May 23, 2017
@clintbellanger
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants