# The Pond: game design ## First playable dock Start with one hand-built dock, a few seats, and two players. A browser and a text client can join the same room, see each other's outfits, sit together, and chat. Then add one cast and reel loop with a shared catch event. The server reports what happened in text; the 3D client animates the same outcome. Sitting and chatting are complete activities, not downtime between casts. Nobody has to fish to have a good visit or earn the right to take a seat. ## Coastal world A quiet coastal district. Forested mountains taper into a coastal plain and then a sandy beach or rocky cliffs. The transition isn't a set of stripes: open pockets break up the foothills, and irregular groves spill across the plain toward the sea. A ferry shelter with its light still on after the last boat could be a landmark, not a requirement. - Every generated world has freshwater inland, a reachable saltwater fishing spot, a village market where players can sell their catch, and a forest clearing where they can sit. Vary the shoreline, placement, and number of pools. Freshwater and saltwater have different catch tables. A cliff coast still needs a reachable cove or landing at sea level. - A river runs from the mountains into the largest inland lake. Keep river tiles off the walking map. Prefer dry paths; if a required trail has to cross, put a footbridge at a narrow crossing with dry banks on both sides. The bridge deck is walkable, not the channel. - Lay out the water and landmarks before decorating. Verify walkable routes from the dry village spawn to the seller, clearing, and casting spots. Keep trees and buildings off those routes. If the checks fail, retry a bounded number of times, then use a known-good layout or report the failure. Give landmarks names and stable IDs as well as positions, so text clients can refer to the same places as the 3D client. - Build the first dock with the same world data the generator will produce. Later, a seed can choose a layout or a description can steer the generator through a short brief. Save the finished map, seed, generator version, and brief if used. Friends should return to the same place after an update. ## Getting dressed and moving Start with a low-poly outfit or skip straight to the default. Each part has a style and color: head treatment, pants, and shoes. Use named option IDs shared by text and 3D clients, validated on the server. Changing shoes shouldn't replace the rest of the outfit. Looks don't affect fishing. Whether hair and hats should stack as separate parts is still open; start without custom uploads. | Input | Intent | | --- | --- | | Human clicks dry ground | `walk_to(x, z)` | | Human holds WASD | `steer(direction)`: take over from an active route; stop on release | | Agent sends text such as “sit beside Reed” | A text adapter resolves the target and submits `sit_near(player_id)` | | Agent calls the API | Send `walk_to`, `sit_near`, or another typed intent directly | Build click-to-walk first, then add WASD to the same controller with the same speed and walkability rules. The server chooses the route; the 3D client animates it. For `sit_near`, the server chooses and reserves a dry, reachable seat near that player. Left or right is a default, not a question. If the seat is taken, try another suitable one. If the other player leaves or there is no seat, say why instead of choosing another person. Sitting never implies casting. A text adapter is optional. It should resolve the intended action and target before checking legality: “you don't have a rod” is a better answer than silently choosing a legal but unrelated move. No model is required to play. ## One server, private rooms Proposed stack: Gleam on the BEAM, with Mist for HTTP, Gleam OTP for supervised room workers, and SQLite via Sqlight. One service and one database are enough for the first version; each active room has its own worker. The worker handles one decision at a time. Rules that take explicit time and randomness can be exercised with fixed fixtures. - **Room identity:** A seed picks the landscape, not who you're playing with. Rooms are invite-only by default. Two groups can use the same seed without sharing chat, seats, or catches. Check room membership on every read and command; an ID or event cursor is not an invitation. - **One API:** Authenticated HTTP/JSON serves commands, a room snapshot, and a bounded event feed with room-scoped cursors. The joined session identifies the acting player. Acknowledge a command separately from a later result, and deduplicate retries. Start with polling. Browser streaming and an MCP adapter can use the same events and rules later. - **Persistence:** Store the map, outfits, inventory, and active casts with their bite deadlines. Presence and seat reservations are temporary. Empty rooms can unload and resume from saved state. If an event cursor expires, fetch a fresh snapshot. This is saved state with a bounded event feed, not full event sourcing. - **Chat and attention:** Chat stays within the room; private cues go only to their intended player. Agents can catch up by cursor when they're active. Player chat is conversation, not operator instructions, and doesn't start a model turn on its own. Later, optional wakes can notify clients about a mention or bite, but a missed wake must not lose the event. ## Fishing across turns 1. `cast` gives the player a `cast_id`; the server owns the waiting state. 2. When the fish bites, record `bite_ready` with the clue. Humans and agents get equivalent information. Leave the bite pending until reel or cancel, so a conversation or disconnect doesn't cost a fish. 3. `reel` consumes the cast and saves the result, any inventory change, and the event in one transaction. A retry returns the same result, not a second fish. The current reel candidate shows a hint and a recognizable tell, then asks for four adjustments in one command. Three hits catch the fish; each beat reports too low, in range, or too high. The rules are public, but each room has fish with its own stable pull habits. Practice in one room should teach you how to learn the next one, not give you its answers. Luck still matters once you know the room. Give humans and agents the same clues without requiring fast reactions or vision. The [first reel playtest](reel-playtest-v1.md) asked whether the hint was learnable and found that reading the rules gave a player the best general response. The [two-room playtest](reel-playtest.md) tested what happens when there are also local habits to learn. Both reports include methods, measured results, and a scoring replay. The numbers are prototype settings, not shipping balance. The longer loop is cast, reel, collect, sell, and upgrade. Rods, lines, and lures should change tradeoffs, not just make every catch easier. Quests and rewards can wait until the basic loop is fun. Sitting in a clearing without a rod should still feel like a whole visit. ### Future co-op playtest Can humans and agents share useful reel advice? Compare advised and unaided attempts on matched bites in the same room. Check whether a tip like “light, medium, firm, light” translates to each client’s controls without either player needing to know what buttons the other uses. ## Checks for the first build - Take one seat next to a player. The other player uses the reachable seat without casting. With both seats occupied or the target gone, report why. - Change only the shoes and see the same outfit from a second client. Joining without choosing clothes uses the default. - Send two chat messages while a player is away. On return, their cursor gets both once. Two rooms on the same map can use the same seat independently; nonmembers can't read or act in the other room. - Cast, disconnect, and return after the bite. Both clients see the same reel outcome. Retry the request and verify only one catch was recorded. Deployment will use a NixOS module. The renderer, first human client, lake outlet, and reel signal are open choices. This describes the game we want to build, not a running game.