microsoft / pxt-arcade

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

When game is shared from beta, load simulator with that version #1178

Open jwunderl opened 5 years ago

jwunderl commented 5 years ago

Is your feature request related to a problem? Please describe.

It's frustrating / confusing when you create a game in /beta and send out a share link, but nothing works. This happens when a new block / api is used that isn't available in the live site, but there isn't an obvious indication of that besides just getting a blank screen

Describe the solution you'd like

When loading a share link, check the version the game was created in; if > live site, load that version for the simulator and give an option to load the snippet in beta when going to edit it

Describe alternatives you've considered

Maybe just loading in beta automatically, but we didn't think that was a good option because it could lead to cases where someone shares a game, others play it, and they end up in /beta when they shouldn't (that is, it's not as stable / might have bugs introduced that we weren't aware of, and they could end up having a worse experience without knowing that they aren't on a normal release)

Additional context

would also be nice to just support directly loading the project into different versions through the url; that is, https://makecode.com/beta/_4Hm9jEAqo4Ky or https://makecode.com/v0.13.18/_4Hm9jEAqo4Ky to load the share page with that version of the editor.

abchatra commented 4 years ago

Way to load share link from /beta is a good idea.