From December 2021 to March 2022, I worked on a video game with Emma, Dan, and Andrew. It’s called Scuba Scuba. It is a cloud multiplayer game using cloud variables. You are a diver and you have 60 seconds to fight the other divers and be the last one with the treasure chest when time runs out. I coded it in Scratch. Well, kind of. I used Turbowarp, a Scratch mod, to make it run faster and to code it.
I programmed the game, which was very difficult because I never coded a cloud multiplayer before. However, I had some previous knowledge about Scratch and I know some Scratch projects that have used the technology before. And guess what- it worked!
Okay, maybe I just put a little more effort into “it worked”. Let me explain how this works. There are two scripts for the cloud to work: encoding and decoding. Each player has a “queue”, which contains all of the information about the players position and other information. Each bit of info, for example the x position, is called a parameter. The queue is made up of these parameters. It ends up looking like this:
The 0’s are spaces in between the parameters. If you want to see the scripts, this is what they look like:
So yeah. That's how it works. If you want to play the game yourself, try it here:
https://turbowarp.org/624316760/fullscreen?hqpen&size=640x360