summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorKonAki <konaki@anokonaki.org>2026-10-11 16:29:45 +0800
committerKonAki <konaki@anokonaki.org>2026-10-11 16:29:45 +0800
commit41a0f89f0762f16f27dbac0fa211ecb342e024c6 (patch)
tree6a7600eee9273f40f4d615b670de56a40c86fc1d /examples
parent8210dad04218861090d9de3e16cd9f3d79ee65fa (diff)
sector: build room meshes, portals as steps and lintels, picture quads
Diffstat (limited to 'examples')
-rw-r--r--examples/maps/house.kmap20
1 files changed, 19 insertions, 1 deletions
diff --git a/examples/maps/house.kmap b/examples/maps/house.kmap
index 10fc39a..45ee4a6 100644
--- a/examples/maps/house.kmap
+++ b/examples/maps/house.kmap
@@ -14,11 +14,25 @@ v 14 2
v 11 2
v 11 0
+# a window in the north wall of the north room, and a garden behind it
+v 2 -4
+v 6 -4
+v 6 -4.5
+v 2 -4.5
+v -3 -4.5
+v 11 -4.5
+v 11 -12
+v -3 -12
+
# floor ceiling, then settings, then a colon and the corners
sector 0 3 light 0.8 floor tile ceiling plaster wall brick : 0 1 2 3
-sector 0.25 3 light 0.5 floor tile ceiling plaster wall brick : 4 0 3 5
+sector 0.25 3 light 0.5 floor tile ceiling plaster wall brick : 4 0 3 5 11 10
sector 0 2.6 light 0.3 floor tile ceiling plaster wall brick : 3 2 6 7 8 9
+# the window is a short room with a high floor, the sill below and the lintel above are made by the steps
+sector 1 2.2 light 0.5 floor sill ceiling plaster wall brick : 10 11 12 13
+sector 0 8 light 0.35 floor grass ceiling sky wall fence : 17 14 13 12 15 16
+
edge 1 2 wallpaper
# kind x y z angle, then name= and target= and anything else you like
@@ -26,3 +40,7 @@ entity spawn 4 1.6 2 0
entity light 4 2.6 2 0 color=ffe0a0 radius=8
entity button 7.8 1.2 1 270 target=door1
entity door 8 0 2 90 name=door1 speed=2
+
+# a picture placed by its four corners: bottom left, bottom right, top right, top left as seen from the front.
+# this one stands in the garden and faces the window
+quad watcher 3.2 0 -6 4.8 0 -6 4.8 1.8 -6 3.2 1.8 -6 light 0.6