4.9 KiB
Milestone 8c: walkable house interiors
This wraps the first playable building/housing milestone with a 3D indoor view, authoritative indoor movement, furniture collision, jumping, visible visitors, and controller-accessible placement controls. The 8b ownership, storage, key, permission and recovery rules continue to apply. The separate shared XP curve update is already committed and pushed.
Controls
Enter through Inventory → Housing & keys. Entry closes the controls and shows the house interior. WASD, the left stick, or touch movement buttons walk; Space/controller jump uses the existing binding. Clicking the floor walks toward that point. Walls and furniture block movement; jump onto tables and chests. Click furniture to open its controls. I, the controller inventory/gather binding, or House controls opens the floor plan, storage, and permissions.
Escape now closes the focused controls while you stay in the house. Choose Return to hub, or click the green exit door, to leave. These have no distance requirement in this first build. Disconnect/restart and daily-cap eviction still return you to your saved hub position. No house action grants experience.
Furniture placement/movement uses the floor-plan controls. On a controller, D-pad up/down changes focus; left/right changes selected choices and numeric coordinates; the primary button activates buttons. Cancel closes the menu. Coordinates move in half-metre increments. This is controller form placement, not a free-moving 3D placement preview. Text naming still uses text input.
Authoritative room and visitors
Go retains a separate indoor position; the character's hub position is preserved for exit. Clients send bounded movement/jump intents, never indoor coordinates. Simulation substeps prevent tunneling through narrow furniture on delayed ticks. The saved indoor position is checked against the latest committed furniture layout. If a furniture edit encloses a player, they move to a clear floor position; if no position exists they return to the hub. A completely blocked room rejects new entry. Characters do not collide with other characters in this slice.
House geometry and visitor snapshots contain no storage inventories or account identities. Current local positions are emitted each snapshot. Visitors entering the same house from different hub processes are visible through a leased database presence heartbeat, normally refreshed within about one second and expired after five seconds without updates. Each original world remains the sole owner and simulator of its characters. No cloned living characters are created. Cross-hub presence is eventually consistent; it is not a new shared simulation process.
House mutations, membership, presence and world snapshots commit under the existing world revision fence. Permissions and last-key archive are rechecked before publishing membership. Furniture geometry is refreshed on save; updates from a different hub can take a save interval to affect movement collision. Storage and permission actions continue to read current database state transactionally.
The room uses simple procedural table/chest meshes and the existing player model, with a cutaway camera and name labels. New production art, advanced animation, custom room shells, avatar cosmetic/gear presentation polish, and freeform placement previews are later work. Generated room meshes, labels and textures are disposed on changes/exit; departed visitors release their labels immediately. No tested player-capacity claim is increased by adding the visitor view.
Manual test handoff
- Enter a house and walk using keyboard/controller. Test walls, table collision, jumps onto furniture, landing, and click-to-walk. Close a menu with Escape and verify you remain inside. Use the exit button/door to return to your hub spot.
- Click a chest, deposit/withdraw items, and move it with floor-plan controls. Verify stored contents persist and guests remain bound by the six permissions.
- Enter the same house with an invited player from another hub instance. Check names and movement appear. Remove the guest invitation and confirm eviction; disconnect a visitor and confirm their presence disappears.
- Move furniture into an occupied spot and verify the occupant is relocated safely. Reconnect or reach the daily cap and verify the hub return.
- Repeat 8b's non-last/last-key destruction and interrupted-death tests. Ensure archived houses remove their visitors and never restore previously withdrawn items on recovery.
Local checks cover indoor collision/jumping, invalid action rejection, saved hub position, daily limits, cross-hub visitor ownership, revoked access, stale lease rollback, existing key/recovery lifecycle, TypeScript, production build, and generated protocol consistency. PostgreSQL integration checks require a configured test database; browser Playwright remains deferred for manual testing.