diff options
| author | historia <[not public]> | 2026-06-29 18:13:33 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-29 18:13:33 -0400 |
| commit | 7d76673fa0707d204c7d084c8f90c8133c22a31a (patch) | |
| tree | 6fc832b9f3fde6ed455abb535f6e28b0e5db1fd9 /internal/world/room.go | |
| parent | feb80b7dde200d4121cd9f9c583a08f9869c5588 (diff) | |
| download | thehouseoficarus-7d76673fa0707d204c7d084c8f90c8133c22a31a.tar.gz | |
feat: migrated map (and bfs) to full 3D instead of individual 2D maps on different planes.
Diffstat (limited to 'internal/world/room.go')
| -rw-r--r-- | internal/world/room.go | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/internal/world/room.go b/internal/world/room.go index 15f847f..7cc1f08 100644 --- a/internal/world/room.go +++ b/internal/world/room.go @@ -55,15 +55,17 @@ var ExitOrder = []ExitDir{ Up, Down, } -var DirectionDeltas = map[ExitDir][2]int{ - North: {0, -1}, - South: {0, 1}, - East: {1, 0}, - West: {-1, 0}, - Northeast: {1, -1}, - Northwest: {-1, -1}, - Southeast: {1, 1}, - Southwest: {-1, 1}, +var DirectionDeltas3D = map[ExitDir][3]int{ + North: {0, -1, 0}, + South: {0, 1, 0}, + East: {1, 0, 0}, + West: {-1, 0, 0}, + Northeast: {1, -1, 0}, + Northwest: {-1, -1, 0}, + Southeast: {1, 1, 0}, + Southwest: {-1, 1, 0}, + Up: {0, 0, 1}, + Down: {0, 0, -1}, } type SpawnDef struct { |
