

Appel Multiplayer
Appel Multiplayer takes griffpatch's golden-apple platformer online: race real players through the same wall-jump levels instead of the clock. Every jump, bounce and apple grab happens live against rivals on the shared course.
Appel Multiplayer keeps the single player game and adds a layer on top: a full second player, a sprite that renders other people in the level, a cloud relay that carries their positions and a mobile joystick. This guide covers only what the multiplayer build adds.
The multiplayer build adds Player 2, Other Players, Multiplayer and Mobile to the single player roster. Everything else, from the apple player to the editor, is the same build, which is why this guide does not repeat the platforming: the interesting part is how those four sprites talk to each other.
| Sprite | Blocks | Role |
|---|---|---|
| Player 2 | 2233 | A complete second player with its own key state |
| Multiplayer | 2071 | The cloud relay, level requests and player detection |
| Other Players | 513 | Draws remote players from a buffer |
| Mobile | 193 | A joystick for touch devices |
The block counts are the tell. Player 2 is a full copy of the player logic rather than a variant, and Multiplayer is nearly as large as the game itself. A layer that big is not a toggle: it is a second program that runs alongside the first.
Player 2 carries the same internals as the first player: a tile and mask pair, a solid test, a player substance, friction on both axes, a jump flag, a fall flag, an overlap check and its own key state. Two players with separate mask characters is what lets them stand on the same tile grid without reading each other as walls.
The costume set is identical, from stand and stand left through piston and flipped states. That is the cheapest way to add a second player: reuse the art, duplicate the state and give it its own input map.
The level grid itself did not change. The stage still holds two map lists of sixty four hundred entries each, one for the map and one for the settled state, and a wall list of forty four entries. A second player therefore reads the same grid through the same mask logic, which is why a two player session does not need a second level format.
A resolve list exists in both players, which is the collision resolution queue. Keeping it per player is why two bodies can land on the same platform on the same frame.
The Other Players sprite keeps a data list, a buffer list and a resolve list, plus values for the last name, the last death, a talk state and a coordinate pair. It does not simulate those players: it reads their positions from the buffer and draws them, which is why remote players can look smooth without running a second physics pass.
A talk state on a remote player is how the build shows speech bubbles for someone else. That is a small thing, but it is the difference between seeing a ghost and seeing a person: the ghost can talk, and the buffer carries the message.
The Multiplayer sprite holds the protocol: a cloud list, a data list, a buffer, a players-level list, a level-portions list, a detected-players list and a requested-player list. A cloud timer and an encoded value sit beside them, along with a letter index and a level code. That is a serialisation scheme, not a matchmaking screen.
The level portions list is the key idea. A Scratch cloud variable has a small character budget, so a level cannot be sent whole. The build splits the level into portions, sends them through the cloud list and reassembles them on the other side. A player request and a check value are the handshake: ask for a player, verify the reply, then decode.
A max level value sits with the protocol as well, which is how a session refuses a level the guest has not unlocked. That is the whole anti cheat story of a cloud based multiplayer mode: there is no server to trust, only a shared variable and a check.
The joystick is not a CSS overlay: it is a sprite with an original x and y, a timer and two costumes, a stick and a background. The timer is what lets the stick spring back after a release, which is the behaviour a touch player expects and a keyboard player never notices.
Because the joystick writes the same directional state that the arrow keys write, the rest of the player logic does not know which device is in use. That is why the build can add touch support without a second movement system.
There is no readable protocol specification. The cloud relay is a set of lists and timers, and the encoding is a letter index over a numeric value, so the exact packet format cannot be quoted from strings.
The interface text is also unchanged from the single player build, which means the multiplayer build adds no new instructions. This guide therefore describes the four added sprites and their data, which is what the project data actually contains.
Four sprites: Player 2, Other Players, Multiplayer and Mobile. The rest of the game is the same build.
It is a full duplicate of the player logic with its own key state, mask character and collision resolve list.
From a buffer. The Other Players sprite reads positions from the buffer and draws them rather than simulating them.
It splits a level into portions, sends them through a cloud list and reassembles them, with a player request and a check value as the handshake.
Because a Scratch cloud variable has a small character budget, so a whole level cannot be sent in one value.
Yes, as a sprite with two costumes and a return timer that writes the same directional state as the arrow keys.
A max level value is part of the protocol, so a session can refuse a level the guest has not unlocked.











