Open Clemix37 opened 10 months ago
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) => {
This is not fixed yet. Please reopen.
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.
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.