Log inGet started
Package

layout.module

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

house.layout

Places the rest of the apartment around the living room. A scene's build calls require("house.layout").build() once inside its content (the living room is the room.RoomShell at the origin, with doorway = true).

It places house.ApartmentShell, the four door leaves (<door>_door_leaf, room.PanelDoor, standing open), all furniture, ceiling fixtures and point lights, and marker entities under apartment_spots.

Data it exports:

  • DOORS[name] = { hinge, closed, open } — hinge position and the closed/open yaw (radians about +Y) of each leaf: living, kitchen, bedroom, game.
  • SWITCHES[room] = { pos, yaw } — wall spots beside each doorway's latch side, 1.1 m up, facing into the room (hall, kitchen, bedroom, game).
  • ARCADE_SPOT — the floor spot left empty for an arcade cabinet (front facing +Z).
  • BEDROOM_CRT — the bedroom CRT's glass centre and facing.

Light names: hall_light (3), kitchen_light (2), bedroom_light, gameroom_light; lamps bedside_lamp (2), gameroom_lamp.