19 Commits
Author SHA1 Message Date
dingo 8f7098af81 Add collision teleport portals and ledge-safe movement in VNext dungeons 2026-02-14 15:05:10 -05:00
dingo 0dfbfa75af Builder changes 2 2026-02-11 10:21:19 -05:00
dingo 5da9cbedac Builder changes 2026-02-11 10:06:58 -05:00
dingo 93e8c8457d Align runtime bucket matching with helper normalization
- Normalize tile bucket keys by stripping non-alphanumerics and lowercasing

- Use normalized alias lookup when resolving canonical directional wall buckets

- Prevent runtime misses when bucket names differ by underscores/spaces/casing
2026-02-10 12:50:39 -05:00
dingo c339842749 Add safe fallback bucket resolution for rare unmapped wall masks
- Keep exact 8-direction bucket matching as primary selection

- For unmatched masks, derive deterministic fallback candidates from cardinal/diagonal bits

- Prevent isolated untiled wall cells in complex junction edge cases
2026-02-10 12:47:33 -05:00
dingo 046d665c57 Fix directional bucket helper mapping and fill diagonal-only wall cells
- Update tile edit Neighbor Mask Helper to suggest new directional bucket names and masks

- Include 8-neighbor adjacency when collecting wall candidate cells so single-diagonal corner masks are placed

- Keep strict exact mask bucket matching in VNext wall resolver
2026-02-10 12:41:32 -05:00
dingo ec7f432f09 Switch VNext wall placement to exact directional mask buckets
- Replace cardinal/corner two-pass resolver with single-pass exact 8-direction mask matching

- Implement curated directional mask set (N/S/E/W + large/single corner buckets)

- Require wall tiles to map to exactly one directional bucket while still allowing extra non-directional buckets

- Add alias support for new bucket naming conventions (Wall_N style and corner names)
2026-02-10 12:15:48 -05:00
dingo 04db7b71d2 Add deterministic elbow-corner fallback for missed corner caps
- In wall pass2, when exact 8-bit corner mapping misses, derive corner bucket from elbow cardinals + elbow diagonal bit

- Preserve strict behavior: no broad corner fallback; only exact or deterministic elbow mapping

- Covers cases where valid corner cells were left as cardinal walls
2026-02-10 11:27:18 -05:00
dingo ceea824bb9 Enforce exact corner mask matching in wall pass2
- Remove corner fallback candidate selection for elbow upgrades

- Upgrade elbow cells only when exact 8-bit bucket resolves to a corner bucket

- Prevent corner tiles from being placed when any 0-bit side touches floor
2026-02-10 10:59:41 -05:00
dingo 1faa296626 Implement explicit 2-step wall placement flow
- Step 1: place cardinal wall tiles based on floor-touch cardinal directions

- Step 2: revisit two-cardinal elbow cells and override with corner tiles using exact 8-neighbor mask (including diagonal)

- Use upsert placement so pass2 cleanly replaces pass1 walls at corner cells
2026-02-10 10:39:26 -05:00
dingo ea478e094f Switch wall autotiling to strict floor-touch pattern classification
- Replace broad cardinal HashSet matching with deterministic mask-based bucket candidates

- Prevent corner buckets on straight one-side walls

- Route adjacent-two elbow masks only through corner bucket families

- Keep complex/opposite masks on full/8-dir bucket families to avoid impossible placements
2026-02-10 09:11:39 -05:00
dingo c6f778a6db Remap elbow corner bucket orientation and add robust candidates
- Invert elbow-to-corner orientation mapping to match floor-touch geometry

- Try multiple corner bucket candidates (diagonal + inner-corner families) per elbow mask

- Preserve existing cardinal and 8-direction fallback behavior
2026-02-10 08:58:55 -05:00
dingo 191f919206 Fix elbow wall corner precedence and fallback flow
- Apply elbow->corner bucket mapping before cardinal bucket selection

- Add 8-direction fallback in pass1 when cardinal candidate exists but has no definition

- Keep pass2 unresolved resolution unchanged
2026-02-10 07:59:51 -05:00
dingo a2e206daf1 Handle elbow wall masks with corner-bucket preference
- Map 2-neighbor elbow cardinal masks to diagonal corner buckets before broad WallTop/WallSide fallback

- Preserve existing two-pass resolver while improving bend transitions
2026-02-09 21:51:43 -05:00
dingo b07d9104c1 Refine wall resolver to reduce corner misclassification
- Require cardinal floor adjacency for wall-cell eligibility (remove diagonal-only wall placements)

- Limit 8-direction priority override to corner/diagonal buckets only

- Keep cardinal-first flow while preventing broad bucket overreach on corner candidates
2026-02-09 20:46:56 -05:00
dingo b99d5fce7f Prioritize corner buckets over broad cardinal wall matches
- Defer cardinal-pass placement when an 8-direction corner/diagonal bucket match exists in the active palette

- Prevent corner cells from being flattened into top/side walls during first pass

- Keep two-pass flow intact: cardinal fallback first, unresolved cells resolved by 8-direction masks
2026-02-09 15:52:23 -05:00
dingo 41ae9e011a Implement VNext palette-scoped tile placement with two-pass wall bucket resolution
- Replace placeholder VNext tile output with palette-driven floor/wall TileDefinition placement

- Enforce wall placement flow: cardinal mask buckets first, then unresolved cells via 8-direction mask buckets

- Restrict wall/floor picks to buckets available to the selected palette

- Enforce wall definition selection from a single canonical wall bucket and fallback safely when unresolved

- Populate TileMapSheets from actually used tile sheets in generated layouts
2026-02-09 15:39:12 -05:00
dingo fb17d1c16b Dungeon fixes 2026-02-09 07:46:13 -05:00
dingo 469f1976bd dungeon changes 2026-02-08 22:21:03 -05:00