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
27 lines
699 B
Plaintext
27 lines
699 B
Plaintext
%YAML 1.1
|
|
%TAG !u! tag:unity3d.com,2011:
|
|
--- !u!114 &11400000
|
|
MonoBehaviour:
|
|
m_ObjectHideFlags: 0
|
|
m_CorrespondingSourceObject: {fileID: 0}
|
|
m_PrefabInstance: {fileID: 0}
|
|
m_PrefabAsset: {fileID: 0}
|
|
m_GameObject: {fileID: 0}
|
|
m_Enabled: 1
|
|
m_EditorHideFlags: 0
|
|
m_Script: {fileID: 11500000, guid: 30892b1102feb6841a9288ddb11ef50d, type: 3}
|
|
m_Name: MazeRework
|
|
m_EditorClassIdentifier: Assembly-CSharp::Baba_yaga.GameSetup.MazeRework.MazeReworkConfig
|
|
algorithm: 3
|
|
width: 10
|
|
depth: 10
|
|
useRandomSeed: 1
|
|
seed: 1337
|
|
startLocation: {x: 1, y: 1}
|
|
generateRooms: 0
|
|
roomCount: 378
|
|
minRoomSize: {x: 3, y: 3}
|
|
maxRoomSize: {x: 5, y: 5}
|
|
extraRoomDoorChance: 1
|
|
loopChance: 0.1
|