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
This commit is contained in:
@@ -13,8 +13,8 @@ MonoBehaviour:
|
||||
m_Name: MazeRework
|
||||
m_EditorClassIdentifier: Assembly-CSharp::Baba_yaga.GameSetup.MazeRework.MazeReworkConfig
|
||||
algorithm: 3
|
||||
width: 21
|
||||
depth: 21
|
||||
width: 10
|
||||
depth: 10
|
||||
useRandomSeed: 1
|
||||
seed: 1337
|
||||
startLocation: {x: 1, y: 1}
|
||||
@@ -22,5 +22,5 @@ MonoBehaviour:
|
||||
roomCount: 378
|
||||
minRoomSize: {x: 3, y: 3}
|
||||
maxRoomSize: {x: 5, y: 5}
|
||||
extraRoomDoorChance: 0.3
|
||||
extraRoomDoorChance: 1
|
||||
loopChance: 0.1
|
||||
|
||||
Reference in New Issue
Block a user