Build a two-player co-op puzzle in Summer Engine
Build a room with two switches and one door. Test it from both players’ windows and see how to keep the puzzle in sync in a hosted Summer match.
Make a room with two floor switches and one exit. One player can stand on either switch. Opening the door takes two players standing on different switches at the same time.
The most revealing moment belongs to the player who stays still. When their partner steps on the second switch, does the door open on their screen too? Can they walk through it?
Build the room
Open a Summer Engine project. Give this prompt to Summer’s agent or your connected coding agent.
Build a small top-down co-op room for two players using Summer’s hosted multiplayer setup. Give each player a different color. Add a red floor switch, a blue floor switch and a closed exit. Light each switch while a player is standing on it. When two different players occupy the two switches, open the exit and keep it open for the rest of the round. The server owns the switch occupancy and the door state. Show the result to both players. Use plain shapes so I can see what happens.
The door needs to stay open once the puzzle is solved. Otherwise, as soon as a player steps off their switch to reach the exit, they shut the door on their partner. If you want a starting point for a side-scrolling version, Summer has a co-op platformer template.
Try three moves in Local Play
Choose Debug → Local Multiplayer, select two players, and press Play. The server runs in the background and each test player gets a window. Keep both windows visible. Local Play guide
| Move | What to look for in both windows |
|---|---|
| Walk player one onto red, then across to blue. Leave player two still. | Each switch lights while occupied. Visiting both switches with one player leaves the door closed. |
| Keep player one on blue. Walk player two onto red. | The door opens for both players, including the one who stood still. |
| Walk player one through, then player two. | Both can cross the doorway after their switches are empty. |
If the door opens in only one window, give your agent the exact move and say which window changed. Ask it to trace the switch update from the server to each client. If both players see an open doorway but someone hits a wall, check that opening the door also turns off its collision. How Summer’s client and server share a game
Try the room with a friend
Once both characters can cross locally, publish the client and server together through Summer Games. Open the published game on two computers and repeat the second move with one person watching each screen. Summer hosts the match. The two of you can pay attention to the puzzle without exchanging IP addresses. Multiplayer publishing quickstart · Get a friend into the same match
Keep reading
All postsBuild the first round of a multiplayer FPS in Summer Engine
Give two teams one objective, a shared round clock and a score that advances once. Check the whole match loop in two Local Play windows.
Build a shared crafting bench for a two-player survival game
Put three planks in a co-op workbench and give two players one bridge to build. Check how the server handles two requests for the same materials.
Make a two-player card game with private hands
Build a short online card duel in Summer Engine. Deal a private hand to each player, share the board and let the match server decide whose turn it is.