Commit Graph

9 Commits

Author SHA1 Message Date
315c14c651 Support per-floor variable maze sizes
Add configuration to vary floor sizes: FloorSizeMode enum, varyFloorSize, floorSizeMode and manualFloorSizes in MazeReworkConfig. MazeReworkGenerator now accepts explicit width/depth via an overload, threads width/depth through generation, and adds optional endBounds to placement logic; dead-end/furthest searches respect bounds. MazeReworkManager computes per-floor seeds and dynamic sizes (manual or randomized), instantiates per-floor generators, and passes end bounds between floors for both animated and instantaneous generation. Also includes minor IDE workspace.xml metadata formatting changes.
2026-07-04 16:39:29 +07:00
0745556ae6 2 - 1 2026-07-04 07:11:09 +07:00
531e28409a Improve maze start/end placement with dead-end detection
Refactored PlaceStartAndEnd to intelligently place start and end points at dead ends using random selection and distance-based fallbacks. Added EnforceSingleConnection to ensure start/end points have exactly one connection, compatible with U-turn prefabs. Improved MazeReworkSpawner with object hierarchy grouping (Floors, Categories) and made RefreshSingleCell public. Updated maze config and cleaned up scene hierarchy.
2026-07-04 06:51:32 +07:00
6b4a5a8e12 save 2026-07-04 06:29:20 +07:00
bdbb76a42a Add maze generation visualization with 2-phase animation
Enhance maze generation animation system with visual feedback during algorithm execution and a two-phase rendering approach:

- Phase 1: Preview mode displays simple blocks while algorithms run, with real-time feedback for path checking (valid/invalid/evaluating states)
- Phase 2: Sweep 3D modular pieces into place with pop-in animations

Updates:
- New MazeCellHighlight states (EvaluatingValid, EvaluatingInvalid) for algorithm feedback
- Modified all maze algorithms (DFS, Kruskal's, Prim's) to emit visual feedback when checking adjacent cells
- New animation components: HighlightLinger (self-destruct highlights) and PopInAnimation (juicy pop-in effect)
- Refactored MazeReworkSpawner to support preview prefabs and track spawned object state
- New prefabs: Stair room and MazeVisualize variants
- Added stepDelay and isPreviewMode controls to MazeAnimator for flexible pacing
- Reduced default maze size and adjusted material colors for testing
2026-07-04 05:01:00 +07:00
a3359cf7e1 commit 2026-07-04 03:57:58 +07:00
ddaf07ef2f update 2026-07-04 02:52:36 +07:00
4e4b990f8c update 2026-07-04 01:51:03 +07:00
01048074ee Organize custom scripts and Shared under Assets/Scripts, and delete assembly definition files 2026-07-01 20:36:56 +07:00