From 7d76673fa0707d204c7d084c8f90c8133c22a31a Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Mon, 29 Jun 2026 18:13:33 -0400 Subject: feat: migrated map (and bfs) to full 3D instead of individual 2D maps on different planes. --- internal/world/room.go | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'internal/world/room.go') 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 { -- cgit v1.2.3