@@ -1055,27 +1055,22 @@ export class GameScene extends Phaser.Scene {
10551055 const minX = - overscan ;
10561056 const maxX = VIEWPORT . width + overscan ;
10571057 const centerX = VIEWPORT . width * 0.5 ;
1058- const shoulderInset = SPAWN_WIPE_VISUALS . shoulderInset ;
1059- const halfHead = SPAWN_WIPE_VISUALS . headWidth * 0.5 ;
1058+ const halfPoint = SPAWN_WIPE_VISUALS . pointWidth * 0.5 ;
10601059
10611060 if ( edge === "top" ) {
1062- this . spawnWipe . moveTo ( minX , baseY + SPAWN_WIPE_VISUALS . shoulderLift ) ;
1063- this . spawnWipe . lineTo ( centerX - shoulderInset , baseY + SPAWN_WIPE_VISUALS . shoulderLift ) ;
1064- this . spawnWipe . lineTo ( centerX - halfHead , baseY + SPAWN_WIPE_VISUALS . shoulderLift ) ;
1065- this . spawnWipe . lineTo ( centerX , baseY - SPAWN_WIPE_VISUALS . headDepth ) ;
1066- this . spawnWipe . lineTo ( centerX + halfHead , baseY + SPAWN_WIPE_VISUALS . shoulderLift ) ;
1067- this . spawnWipe . lineTo ( centerX + shoulderInset , baseY + SPAWN_WIPE_VISUALS . shoulderLift ) ;
1068- this . spawnWipe . lineTo ( maxX , baseY + SPAWN_WIPE_VISUALS . shoulderLift ) ;
1061+ this . spawnWipe . moveTo ( minX , baseY ) ;
1062+ this . spawnWipe . lineTo ( centerX - halfPoint , baseY ) ;
1063+ this . spawnWipe . lineTo ( centerX , baseY - SPAWN_WIPE_VISUALS . pointDepth ) ;
1064+ this . spawnWipe . lineTo ( centerX + halfPoint , baseY ) ;
1065+ this . spawnWipe . lineTo ( maxX , baseY ) ;
10691066 return ;
10701067 }
10711068
1072- this . spawnWipe . lineTo ( maxX , baseY - SPAWN_WIPE_VISUALS . shoulderLift ) ;
1073- this . spawnWipe . lineTo ( centerX + shoulderInset , baseY - SPAWN_WIPE_VISUALS . shoulderLift ) ;
1074- this . spawnWipe . lineTo ( centerX + halfHead , baseY - SPAWN_WIPE_VISUALS . shoulderLift ) ;
1075- this . spawnWipe . lineTo ( centerX , baseY - SPAWN_WIPE_VISUALS . tailDepth ) ;
1076- this . spawnWipe . lineTo ( centerX - halfHead , baseY - SPAWN_WIPE_VISUALS . shoulderLift ) ;
1077- this . spawnWipe . lineTo ( centerX - shoulderInset , baseY - SPAWN_WIPE_VISUALS . shoulderLift ) ;
1078- this . spawnWipe . lineTo ( minX , baseY - SPAWN_WIPE_VISUALS . shoulderLift ) ;
1069+ this . spawnWipe . lineTo ( maxX , baseY ) ;
1070+ this . spawnWipe . lineTo ( centerX + halfPoint , baseY ) ;
1071+ this . spawnWipe . lineTo ( centerX , baseY - SPAWN_WIPE_VISUALS . pointDepth ) ;
1072+ this . spawnWipe . lineTo ( centerX - halfPoint , baseY ) ;
1073+ this . spawnWipe . lineTo ( minX , baseY ) ;
10791074 }
10801075
10811076 private createRefills ( spawns : ReadonlyArray < RefillPickupEntity > ) : void {
0 commit comments