From bea5db77ca86e1d397da20a435c6357524df970b Mon Sep 17 00:00:00 2001 From: Justin Oros Date: Thu, 14 May 2026 10:18:20 -0700 Subject: [PATCH] Increase NPC spawn distance to force longer walk between questions --- game.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game.js b/game.js index 4ad9a05..b7ee8bd 100644 --- a/game.js +++ b/game.js @@ -553,7 +553,7 @@ class Game { NPC spawns 1.5 screen-widths ahead (off-screen right) */ this.state.worldX = 0; this.state.worldY = 0; - this.state.npcWorldX = Math.round(viewW * 1.5); + this.state.npcWorldX = Math.round(viewW * 3.5); this.state.npcWorldY = 0; } else { /* After each question — player world-X advances to just before @@ -561,7 +561,7 @@ class Game { new NPC spawns another 1.5 screens ahead */ this.state.worldX = Math.max(0, this.state.npcWorldX - Math.round(viewW / 2)); this.state.worldY = 0; - this.state.npcWorldX = this.state.worldX + Math.round(viewW * 1.5 + Math.random() * viewW * 0.4); + this.state.npcWorldX = this.state.worldX + Math.round(viewW * 3.0 + Math.random() * viewW * 0.8); this.state.npcWorldY = 0; }