How ericguo202/hackprincetonf26 works
Built World Sandbox is a multiplayer browser house-tour game: players explore a real-data neighborhood and scanned homes, furnish rooms by hand or through an AI concierge, search and audit listings, and can switch into foam fights. Offline, worldgen builds the block, house scans, audit data, and furniture catalog into packs; at runtime the web client reads those packs and exchanges shared state with the game server, while the agent reads packs and commits plans through the game API. Relationships among less-sampled subsystems follow README descriptions; source excerpts are limited, so uncertain implementation-level links are omitted.
Main entry points: pack.py Published world packs · build_block.py World pack builder · tools.py Furnishing and search tools · NeighborhoodRoom.ts Block room server
Components 25
Offline world data
- World pack builder
worldgen/build_block.py - Neighborhood geometry
worldgen/block_combined.py - Scanned house assets
worldgen/build_house.py - Furniture catalog
worldgen/build_catalog.py - Listing audit
worldgen/audit.py - Published world packs
worldgen/pack.py
Browser experience
- Game client
apps/web/src/App.tsx - Block and house scene
apps/web/src/world/World.tsx - Pack loading and geometry
apps/web/src/world/pack.ts - Player movement and combat
apps/web/src/player/Player.tsx - Manual furnishing
apps/web/src/world/BuildController.tsx - Catalog and agent UI
apps/web/src/ui/FurnishPanel.tsx - Listing search interface
apps/web/src/ui/ListingsPanel.tsx - Game networking
apps/web/src/net/game.ts
Multiplayer runtime
- Shared game state
contracts/game-state.ts - Block room server
apps/game/src/rooms/NeighborhoodRoom.ts - Game internal API
apps/game/src/internal.ts
Agent and search
- Agent sessions API
apps/agent/api/main.py - Concierge orchestration
apps/agent/agent/runner.py - Furnishing and search tools
apps/agent/agent/tools.py - Plan layout validation
apps/agent/layout/validate.py - Listing search and ranking
apps/agent/agent/search.py - Agent pack access
apps/agent/data/packs.py
Other components
- Home buyer
- Language model
Connections 32
- Home buyer → Game client: plays
README.md - Game client → Block and house scene: renders
apps/web/src/App.tsx - Block and house scene → Pack loading and geometry: loads packs
- Block and house scene → Player movement and combat: renders players
README.md - Home buyer → Manual furnishing: places furniture
README.md - Manual furnishing → Game networking: syncs edits
apps/web/src/world/BuildController.tsx - Home buyer → Catalog and agent UI: requests furnishing
README.md - Catalog and agent UI → Agent sessions API: sends messages
- Home buyer → Listing search interface: searches homes
README.md - Listing search interface → Agent sessions API: submits query
- Game client → Game networking: connects
- Game networking → Block room server: sends messages
apps/web/src/net/game.ts - Block room server → Shared game state: updates state
apps/game/src/rooms/NeighborhoodRoom.ts - Agent sessions API → Concierge orchestration: starts turns
apps/agent/api/main.py - Concierge orchestration → Furnishing and search tools: invokes tools
apps/agent/agent/runner.py - Furnishing and search tools → Plan layout validation: validates plans
- Furnishing and search tools → Listing search and ranking: searches listings
- Furnishing and search tools → Agent pack access: reads packs
README.md - Agent sessions API → Game internal API: posts plans
apps/agent/api/main.py - Game internal API → Block room server: commits changes
README.md - Concierge orchestration → Language model: uses model
README.md - World pack builder → Neighborhood geometry: builds block
worldgen/block_combined.py - World pack builder → Scanned house assets: builds interiors
README.md - World pack builder → Furniture catalog: builds catalog
README.md - World pack builder → Listing audit: runs audit
README.md - Neighborhood geometry → Published world packs: writes assets
README.md - Scanned house assets → Published world packs: writes assets
README.md - Furniture catalog → Published world packs: writes catalog
README.md - Listing audit → Published world packs: writes audit
README.md - Pack loading and geometry → Published world packs: loads assets
README.md - Agent pack access → Published world packs: reads packs
README.md - Block room server → Game networking: broadcasts state
README.md