Easy Interior
by Saladin2020
README.md
# Easy Interior
[](https://github.com/Saladin2020/easyinterior/actions/workflows/ci.yml)
[](LICENSE)
[](https://nodejs.org)
[](https://godotengine.org)
[](https://pixijs.com)
[](https://modelcontextprotocol.io)
[](#rules)
Part of **[Easy Suite](https://github.com/Saladin2020?tab=repositories&q=easy-suite)**: Thai-friendly pixel-art game dev tools for Godot 4.3+ and PixiJS v8. Easy Scene and Easy Kit consume this tool's rooms.
Procedural **side-view room interiors** for Easy games. Give it a room type and a
seed and it paints a decorated room in the DSK-8 style (hue-shifted ramps,
own-colour outlines, textures, props): walls, floor, windows, lights, furniture
from a per-type library, a door/exit, a clerk counter with a seller spot where
it belongs, and a night version.
Easy Scene and Easy Kit consume the output (parts, `easyscene/1` scene JSON, a
building → interior catalog). Games can also load the PixiJS or Godot export
directly.
This tool **generates** interiors. It does not invent new building exteriors
(those stay in Easy Scene) and it does not place religious decoration.
## Room types
Shops: `grocery`, `noodle`, `roti` (halal), `cafe`, `gold`, `clothes`, `stationery`.
Houses: `house_thai` (wooden stilt), `house_modern`, `house_teal` (teal stilt /
Malay house), `house_kampung`, `house_chinese` (shophouse living room).
Civic: `hospital`, `police`, `post`, `bank`, `district`, `office`.
Stays + learning (DSK-11, `src/lib/roomsDsk11.ts`): `rental`, `hotel` (reception desk), `hotel_room`, `school` (teacher's desk, blackboard), `university` (lectern, projector screen).
The same type + seed always produces the same room. Use several seeds when you
want variety (see `generate-all --seeds 1,2,7,13`).
## CLI
```bash
node dist/cli.js types
node dist/cli.js catalog
node dist/cli.js generate --type noodle --seed 1 --export all --out ./out
node dist/cli.js generate-all --seeds 1,2,7 --out ./out
node dist/cli.js init --workspace /abs/path/to/easyscene-workspace
```
`--export` is a comma list: `png,parts,scene,pixi,godot` (or `all`).
## Room layout and output format (DSK-10)
Rooms are painted in a cheated one-point perspective so 48 px characters stand
*inside* the room: a ceiling edge, a back wall with cornice / dado / skirting,
two interior side walls, a floor plane with visible depth, furniture boxed in
3D on the floor with contact shadows, a framed door (casing, transom,
threshold, daylight spill) and room-type lights (tubes, pendants, bulbs, fans).
Geometry lives in `src/lib/theme.ts` (`ROOM_H` 272, `FEET_Y` 224, floor back
edge `FLOOR_BACK` 196 → front `FLOOR_FRONT` 238, vanishing point
`VP_X/VP_Y` 240/120, side walls `SIDE_W` 20, door opening 30×54).
What stayed the same (room definitions from DSK-11 and other tools keep working):
- `RoomType`, `ROOM_INFO`, the building catalog, part ids (`prop_int_<type>`,
`prop_int_<type>_counter`) and scene ids (`int_<type>`, `int_<type>_s<seed>`).
- Room size (`size`, default 480×224) and the wall part (same size, back layer, at the scene origin).
- `seller.y` = `size.height` (the feet line, 224); `door.x/w/side` as before.
What is new or changed (all additive):
| Field | Meaning |
| --- | --- |
| `InteriorDoc.floorPart` | Front-layer **floor apron** part `prop_int_<type>_floor`, `width × 48`, fully opaque. It paints the floor's front edge and the dark under-floor over the street tiles that stay underneath for collision. Scene prop at `{x: 0, y: size.height + 48}` (bottom anchored); Pixi prop at `y: size.height`, layer `front`, listed before the counter. Godot: `FloorApron` sprite, `z_index 1`. |
| `DoorMeta.top` | y of the door opening's top edge (142; the 54 px opening runs from `top` down to the back edge of the floor at 196, so a 48 px character fits through it). Optional; consumers that ignore it are unaffected. |
| `GeneratedInterior.floor / floorNight` | The apron images (day / night). |
| Counter part height | `info.h + 6` (+14 for glass-screen counters: bank, post, district, police). |
| `counterTop` | 10 (24 for glass-screen counters): px from the counter part's top to its work surface. |
A new room type only needs a `ROOM_INFO` entry and a furniture plan in
`planFor` (`src/lib/generate.ts`); the shell, door, lights, apron and night
version come for free. Keep furniture in 48 px character scale (a counter is
~30 px tall, a door 54 px).
## MCP
`list_types`, `catalog`, `generate_interior`. Stdio or `--http --port 8999`.
## Catalog
`catalog` / `BUILDING_INTERIORS` maps Easy Scene street buildings
(`prop_bld_noodle_shop`, houses, hospital, …) to a default interior scene.
Stalls (fruit, halal, market, flea) stay walk-up counters. Wat, mosque and
shrine buildings are intentionally not mapped.
## Rules
- All pixel art is original and made from code.
- Thai signs use Sarabun Pixel glyphs (short shop words only).
- No religious decoration (no Quran or calligraphy, no shrine or altar, no monks).
## Easy Suite
- [Easy Scene](https://github.com/Saladin2020/easyscene) — side-view streets and buildings this tool paints the insides of
- [Easy Kit](https://github.com/Saladin2020/easykit) — one-command game scaffold; `easy doctor` lists Easy Interior when it is installed
- [Easy Sprite](https://github.com/Saladin2020/easysprite) · [Easy Tilemap](https://github.com/Saladin2020/easytilemap) · [Easy NPC](https://github.com/Saladin2020/easynpc) · [Easy FX](https://github.com/Saladin2020/easyfx) and the rest of the suite
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues