microsoft / pxt-arcade

Arcade game editor based on Microsoft MakeCode
https://arcade.makecode.com
MIT License
482 stars 209 forks source link

Simulator in Lessons Uses Community Game High Score #1220

Closed dharinirajah closed 4 years ago

dharinirajah commented 5 years ago

Describe the bug When I play a game in the simulator in the lesson plans, I see the high score from a community game I played instead of that specific game's high score.

To Reproduce Steps to reproduce the behavior:

  1. Go to Raptor Run
  2. Play the game and get a score that is above that of 30
  3. Go to BlockOut (high scores here are maxed out at 30)
  4. Scroll down to "Final Code" and play game
  5. See high score error

Expected behavior I'd expect the high score to be specific to the game I was just playing. However it is now just a high score from another game.

Screenshots

bugsimulator

Desktop (please complete the following information):

Additional context I'd suggest saving high scores from the lesson simulator or refreshing high scores (specifically where all the code is compiled together at the end so that the user can play in the simulator).

abchatra commented 5 years ago

@mmoskal is this fixed?

mmoskal commented 5 years ago

If you deploy my new sharing page then games will have separate storage based on script ID. Without that it may also be better because the high score will be reset when the name changes.

mmoskal commented 4 years ago

I believe this is fixed.