-
Notifications
You must be signed in to change notification settings - Fork 82
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
I'm getting a bug where recoverPoints resets to 5000 everytime I die. #1
Comments
I think this should be. |
I agree with you @geralddzx I figured out the same and that is the way I fixed as well. |
You need to have an initial value of some sort otherwise you can never recover health as params.recoverPoints is initially nil
|
Initial value can be set in PaddleSelectState when it changes to ServeState, beginning a new game. PlayState would then receive recoverPoints in params, as mentioned by @geralddzx and @fontinixxl . |
breakout/breakout13/src/states/PlayState.lua
Line 32 in d9b65b9
The text was updated successfully, but these errors were encountered: