victor HF Staff commited on
Commit
72b06d8
·
1 Parent(s): d28100d
Files changed (1) hide show
  1. src/config/gameConfig.js +16 -24
src/config/gameConfig.js CHANGED
@@ -156,7 +156,7 @@ export function getWaveParams(n) {
156
  }
157
 
158
  // Grid settings
159
- export const GROUND_SIZE = 60;
160
  export const GRID_CELL_SIZE = 2;
161
 
162
  // Path waypoints (edge-to-edge). Balanced zigzag: start on top edge, end on bottom edge,
@@ -165,30 +165,22 @@ export const GRID_CELL_SIZE = 2;
165
  const HALF = GROUND_SIZE / 2;
166
  const PATH_MARGIN = 4 * GRID_CELL_SIZE; // 4 squares (8 units)
167
  export const PATH_POINTS = [
168
- // Start at top edge, slightly left of center
169
- new THREE.Vector3(-5 * GRID_CELL_SIZE, 0, HALF), // (-10, 30)
170
- // Inside from top edge
171
- new THREE.Vector3(-5 * GRID_CELL_SIZE, 0, HALF - PATH_MARGIN), // (-10, 22)
172
- // Top band to the right
173
- new THREE.Vector3(6 * GRID_CELL_SIZE, 0, HALF - PATH_MARGIN), // (12, 22)
174
- // Down to upper-middle
175
- new THREE.Vector3(6 * GRID_CELL_SIZE, 0, 6 * GRID_CELL_SIZE), // (12, 12)
176
- // Cross left near center
177
- new THREE.Vector3(-4 * GRID_CELL_SIZE, 0, 6 * GRID_CELL_SIZE), // (-8, 12)
178
- // Drop toward mid-lower
179
- new THREE.Vector3(-4 * GRID_CELL_SIZE, 0, 1 * GRID_CELL_SIZE), // (-8, 2)
180
- // Cross to mid-right
181
- new THREE.Vector3(8 * GRID_CELL_SIZE, 0, 1 * GRID_CELL_SIZE), // (16, 2)
182
- // Down into lower-middle
183
- new THREE.Vector3(8 * GRID_CELL_SIZE, 0, -5 * GRID_CELL_SIZE), // (16, -10)
184
- // Cross left again
185
- new THREE.Vector3(-4 * GRID_CELL_SIZE, 0, -5 * GRID_CELL_SIZE), // (-8, -10)
186
- // Drop to bottom interior band
187
- new THREE.Vector3(-4 * GRID_CELL_SIZE, 0, -HALF + PATH_MARGIN), // (-8, -22)
188
- // Final cross toward exit lane
189
- new THREE.Vector3(7 * GRID_CELL_SIZE, 0, -HALF + PATH_MARGIN), // (14, -22)
190
  // Exit on bottom edge
191
- new THREE.Vector3(7 * GRID_CELL_SIZE, 0, -HALF), // (14, -30)
192
  ];
193
 
194
  // Visual settings
 
156
  }
157
 
158
  // Grid settings
159
+ export const GROUND_SIZE = 72; // slightly larger to allow wider spacing
160
  export const GRID_CELL_SIZE = 2;
161
 
162
  // Path waypoints (edge-to-edge). Balanced zigzag: start on top edge, end on bottom edge,
 
165
  const HALF = GROUND_SIZE / 2;
166
  const PATH_MARGIN = 4 * GRID_CELL_SIZE; // 4 squares (8 units)
167
  export const PATH_POINTS = [
168
+ // Start at top edge (slightly left of center)
169
+ new THREE.Vector3(-6 * GRID_CELL_SIZE, 0, HALF), // (-12, 36)
170
+ // Move inside from top edge
171
+ new THREE.Vector3(-6 * GRID_CELL_SIZE, 0, HALF - PATH_MARGIN), // (-12, 28)
172
+ // Horizontal to right (top band), reduced width
173
+ new THREE.Vector3(8 * GRID_CELL_SIZE, 0, HALF - PATH_MARGIN), // (16, 28)
174
+ // Down to upper-middle (tighter vertical spacing)
175
+ new THREE.Vector3(8 * GRID_CELL_SIZE, 0, 4 * GRID_CELL_SIZE), // (16, 8)
176
+ // Back left (first U-turn), reduced width
177
+ new THREE.Vector3(-5 * GRID_CELL_SIZE, 0, 4 * GRID_CELL_SIZE), // (-10, 8)
178
+ // Down to lower-middle (tighter)
179
+ new THREE.Vector3(-5 * GRID_CELL_SIZE, 0, -5 * GRID_CELL_SIZE), // (-10, -10)
180
+ // Across right (second U-turn), reduced width
181
+ new THREE.Vector3(7 * GRID_CELL_SIZE, 0, -5 * GRID_CELL_SIZE), // (14, -10)
 
 
 
 
 
 
 
 
182
  // Exit on bottom edge
183
+ new THREE.Vector3(7 * GRID_CELL_SIZE, 0, -HALF), // (14, -36)
184
  ];
185
 
186
  // Visual settings