Documentation menu
DreamCode

Examples

Copy-paste houses, from a studio to a two-storey family home.

Every example compiles as-is — paste it into DreamCode and press ⌘ S.

Studio with bathroom#

house.dream
home "Studio"
room Studio 6x4.5
door south
windows west, north
lights 2
plugs 3
bed, sofa, table
room Bath 2x2.5 right of Studio
window east
light
toilet, sink

Three-bedroom family home#

house.dream
home "Family Home"
roof pyramid
room Living 6x5
door south
windows west, south
lights 2
fan
plugs 2
sofa, table
room Kitchen 4x5 right of Living
window east
light
plugs 2 x 15A
cabinet, sink
room Bedroom 5x3.5 above Living
window north
light
fan
plugs 2
bed, wardrobe
room Kids 3.5x3.5 right of Bedroom
window north
light
plugs 1
bed
room Bath 2.5x3.5 right of Kids
window east
light
toilet, sink

L-shaped house#

Rooms are rectangles, but arranging them makes any footprint.

house.dream
# An L-shaped house is just rooms arranged in an L
home "L House"
roof gable
room Living 7x4
door south
windows west, south
lights 2
room Dining 4x4 right of Living
window east
light
table, chair
room Bedroom 4x4 above Living
windows west, north
light
bed, wardrobe

Two storeys with stairs#

See the full program in the Quickstart, and the rules in Floors, stairs & roofs.