diff options
| author | KonAki <konaki@anokonaki.org> | 2026-10-11 04:51:06 +0800 |
|---|---|---|
| committer | KonAki <konaki@anokonaki.org> | 2026-10-11 04:51:06 +0800 |
| commit | 64a416a3fa0b5097afe723557ca71fc99606d3d9 (patch) | |
| tree | 6d5eea1ddec0ed709ab9a4ebdc1de9bb002c81ce /examples/maps/house.kmap | |
| parent | d3b6458db0c189d23100331c0e9e5001ff96c2f1 (diff) | |
add sector module: room maps in a text format with entities
Diffstat (limited to 'examples/maps/house.kmap')
| -rw-r--r-- | examples/maps/house.kmap | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/examples/maps/house.kmap b/examples/maps/house.kmap new file mode 100644 index 0000000..10fc39a --- /dev/null +++ b/examples/maps/house.kmap @@ -0,0 +1,28 @@ +kmap 1 + +# the plan seen from above: x goes east and z goes south. corners go counter clockwise, +# so with north up you walk down the west wall first + +v 0 0 +v 0 4 +v 8 4 +v 8 0 +v 0 -4 +v 8 -4 +v 14 4 +v 14 2 +v 11 2 +v 11 0 + +# 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 2.6 light 0.3 floor tile ceiling plaster wall brick : 3 2 6 7 8 9 + +edge 1 2 wallpaper + +# kind x y z angle, then name= and target= and anything else you like +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 |
