
maze-c is the smartphone controller and live map for the RCWeb maze display. Open it by scanning the QR code on the maze display, or visit /maze-c/?r=<room> with the same room.
Forward, Back, Turn left, Turn right.New maze asks the display to abandon the current labyrinth and generate a fresh level 1.Forward to keep walking down the corridor. The player stops centred on the next square when the button is released.W/S and A/D, which is useful for testing.The maze is a single-player walk, so only one phone drives at a time.
In control.Watching and still receive the map and live position, so a group can follow the run together.The display sends the maze once per level with mazeControl.receiveMap. The grid arrives as one hex character per square, each a bitmask of the four walls, plus the start square, exit square, level number, and theme name. The controller keeps that grid but only draws the squares the player has walked, painting them onto an off-screen canvas that is repainted when the trail grows. The exit marker and player arrow are drawn on top every frame.
Live updates arrive with mazeControl.receiveState about twelve times a second and carry the fractional position, heading in degrees, level, time, steps, which phone owns the controls, and the squares walked since the last update. A full trail snapshot follows every few seconds so a phone that joins late still draws the complete route. Short messages such as Wall ahead, Exit found, or You have control arrive as mazeControl.showPulse and appear in the banner at the bottom of the controller.


