pxt-arcade
pxt-arcade copied to clipboard
Cloud stored variables / data
It's sadly not possible to have variables / data transfer or sync throughout other instances of the same game. Say, for example, a leaderboard that updates the same for all players no matter where they play the game.
MakeCode Arcade already has an auto save / cloud storage feature when it comes to saving your projects or sharing them through a link. I thought maybe there could be a way to use that to be able to pass variables through the network or just general networking code.
The closest thing to this is the "Settings" extension that allows you to save data outside of the simulator runtime. I think it's by using browser cache. It's a good alternative if only one computer is used. But for more global situations, it's not possible.
Think of a global leaderboard ranking in a MakeCode game. Maybe having a game be the "main" instance that gets sent the new data to update / sync.