You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.
I was reading again the intro on the webiste but i found out that the full game code (can be found here) cannot work because of the score variable that is not scope of the lose scene ...
Score is declared inside the game scene, but we try to get it in the lose scene which cannot work.
The text was updated successfully, but these errors were encountered:
More specifically, putting the score variable into the scene is never explained, but instead just put into the full code example at the bottom of the page;
This line isn't explained: scene("lose", (score) => {
The full code below does work, but yeah it's not explaining we're passing score through go("lose", score) and the lose scene gets it from the function argument. I'll add explanation soon.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
I was reading again the intro on the webiste but i found out that the full game code (can be found here) cannot work because of the score variable that is not scope of the lose scene ...
Score is declared inside the game scene, but we try to get it in the lose scene which cannot work.
The text was updated successfully, but these errors were encountered: