@@ -6,12 +6,12 @@ FinalReferenceGameScene.js
66*/
77import { createBottomRightDebugPanelStack , drawStackedDebugPanel } from '/src/engine/debug/index.js' ;
88import GameplayMetricsTelemetryScene from '/samples/phase-17/1712/GameplayMetricsTelemetryScene.js' ;
9- import { LEVEL17_OVERLAY_CYCLE_KEY } from '/samples/phase-17/shared/overlayCycleInput .js' ;
9+ import { getRequiredLevel17OverlayStackConfig } from '/samples/phase-17/shared/overlayStackBySampleConfig .js' ;
1010const OVERLAY_UI_LAYER = 'ui-layer' ;
1111const OVERLAY_MISSION_FEED = 'mission-feed' ;
1212const OVERLAY_MISSION_READY = 'mission-ready' ;
1313const OVERLAY_FINAL_REFERENCE_RUNTIME = 'final-reference-runtime' ;
14- const DEBUG_OVERLAY_PERSISTENCE_KEY = 'phase17: 1713:overlay-index' ;
14+ const DEBUG_OVERLAY_CONFIG = getRequiredLevel17OverlayStackConfig ( ' 1713' ) ;
1515
1616function clamp ( value , min , max ) {
1717 return Math . max ( min , Math . min ( max , value ) ) ;
@@ -63,14 +63,9 @@ export default class FinalReferenceGameScene extends GameplayMetricsTelemetrySce
6363 completionBonus : 0 ,
6464 phase : 'briefing' ,
6565 } ;
66- this . setDebugOverlayCycleKey ( LEVEL17_OVERLAY_CYCLE_KEY ) ;
67- this . setDebugOverlayPersistenceKey ( DEBUG_OVERLAY_PERSISTENCE_KEY ) ;
68- this . setDebugOverlayCycleMap ( [
69- { id : OVERLAY_UI_LAYER , label : 'UI Layer' } ,
70- { id : OVERLAY_MISSION_FEED , label : 'Mission Feed' } ,
71- { id : OVERLAY_MISSION_READY , label : 'MISSION READY' } ,
72- { id : OVERLAY_FINAL_REFERENCE_RUNTIME , label : 'Final Reference Runtime' } ,
73- ] , OVERLAY_UI_LAYER ) ;
66+ this . setDebugOverlayCycleKey ( DEBUG_OVERLAY_CONFIG . cycleKey ) ;
67+ this . setDebugOverlayPersistenceKey ( DEBUG_OVERLAY_CONFIG . persistenceKey ) ;
68+ this . setDebugOverlayCycleMap ( DEBUG_OVERLAY_CONFIG . overlays , DEBUG_OVERLAY_CONFIG . initialOverlayId || OVERLAY_UI_LAYER ) ;
7469 }
7570
7671 step3DPhysics ( dtSeconds , engine ) {
0 commit comments