|
8 | 8 | updateMoonSurfaceMotion, |
9 | 9 | updatePassingPlanetMotion, |
10 | 10 | updatePlanetLayerMotion, |
11 | | - updateScenicLayerMotion, |
12 | 11 | updateTwinkleMotion, |
13 | 12 | } from './parallax/backgroundMotion'; |
14 | 13 | import { |
@@ -37,10 +36,6 @@ import { |
37 | 36 | type MoonSurfaceState, |
38 | 37 | } from './parallax/moonSurfaceLayerLifecycle'; |
39 | 38 | import { type ForegroundSilhouetteState } from './parallax/foregroundSilhouetteLifecycle'; |
40 | | -import { |
41 | | - layoutScenicLayers as layoutScenicLayersHelper, |
42 | | - type ScenicLayerState, |
43 | | -} from './parallax/scenicLayerLifecycle'; |
44 | 39 | import { |
45 | 40 | getPassingPlanetOffscreenThreshold, |
46 | 41 | resetPassingPlanetPosition, |
@@ -80,7 +75,6 @@ export class ParallaxBackground { |
80 | 75 | private scene: Phaser.Scene | null = null; |
81 | 76 | private levelConfig?: LevelConfig; |
82 | 77 | private tileSprites: Phaser.GameObjects.TileSprite[] = []; |
83 | | - private scenicLayers: ScenicLayerState[] = []; |
84 | 78 | private planetLayer: PlanetLayerState | null = null; |
85 | 79 | private debrisMotes: DebrisMoteState[] = []; |
86 | 80 | private twinkles: TwinkleState[] = []; |
@@ -121,7 +115,6 @@ export class ParallaxBackground { |
121 | 115 | this.scene = scene; |
122 | 116 | this.levelConfig = levelConfig; |
123 | 117 | this.tileSprites = []; |
124 | | - this.scenicLayers = []; |
125 | 118 | this.debrisMotes = []; |
126 | 119 | this.foregroundSilhouettes = []; |
127 | 120 | this.resetRuntimeFieldState(scene.cameras.main.width, scene.cameras.main.height); |
@@ -209,7 +202,6 @@ export class ParallaxBackground { |
209 | 202 | this.scene, |
210 | 203 | this.currentWidth, |
211 | 204 | this.currentHeight, |
212 | | - this.scenicLayers, |
213 | 205 | this.passingPlanetSprites, |
214 | 206 | this.twinkles, |
215 | 207 | this.foregroundSilhouettes, |
@@ -363,7 +355,6 @@ export class ParallaxBackground { |
363 | 355 | private updateVisualLayers(delta: number): void { |
364 | 356 | scrollStarLayers(this.tileSprites, STARFIELD_LAYER_CONFIGS, delta); |
365 | 357 | this.scrollPremiumBackgroundLayers(delta); |
366 | | - updateScenicLayerMotion(this.scenicLayers, this.elapsed, this.atmosphereDrift, this.atmosphereAlpha); |
367 | 358 | updatePlanetLayerMotion(this.planetLayer, this.elapsed, this.atmosphereAlpha, this.landmarkAlpha); |
368 | 359 | updateDebrisMoteMotion(this.debrisMotes, this.elapsed, delta, this.atmosphereAlpha); |
369 | 360 | updateTwinkleMotion(this.twinkles, this.elapsed, this.atmosphereTwinkle); |
@@ -411,7 +402,6 @@ export class ParallaxBackground { |
411 | 402 | } |
412 | 403 |
|
413 | 404 | private layoutLevelVisualLayers(): void { |
414 | | - layoutScenicLayersHelper(this.scenicLayers, this.getViewportSize()); |
415 | 405 | this.layoutMoonSurfaceLayer(); |
416 | 406 | this.layoutPlanetLayer(); |
417 | 407 | } |
|
0 commit comments