Agreed — the shake is overwhelming and the world reads as scattered blocks rather than a city. Let me fix both: tone shake way down, add a smooth GTA-style chase camera, build a real road grid, and add a waypoint objective system.
First, the screen shake overhaul in the engine:
The cleanest fix is centrally scaling shake at the source. Let me damp it heavily and speed up decay:
Now the biggest culprit: collision shake fires every frame while scraping a wall. Let me gate it:
Now the vehicle-ramming shake, which scales unbounded with speed:
Now the renderer camera — reduce shake amplitude and add a smooth GTA-style chase camera that lerps instead of snapping:
Now I must fix the zoom transform — the old translate/scale trick miscenters at non-1 zoom:
Now let's build a real city. Replacing scattered blocks with a proper GTA road grid in the map data:
Now I'll regenerate the buildings so they align into proper city blocks between the roads:
Now I'll replace that with a block-aligned generated city:
Now update spawn point, heist targets, and pickups to sit on the new street grid:
Now the renderer's ground must draw the actual road network instead of the two hardcoded strips:
Now the biggest "GTA feel" gap: no sense of purpose. Let me add an objective/waypoint system to the engine:
Now render the waypoint: a beam on the ground, a world marker, and an off-screen edge arrow:
Now let me implement both methods:
Now let me add the GTA-style objective banner to the HUD and fix the minimap to show the road grid:
Now add the objective banner UI. Let me insert it above the minimap:
I need to close the new wrapper div. Let me find the minimap's closing tag:
Now let me upgrade the minimap to draw the real road grid plus the objective dot:
Now wire the objective data through App.tsx:
Now let me fix vehicle spawns to sit on Ocean Drive, and add ambient traffic — critical for GTA feel:
Now make civilian traffic actually follow roads and steer around obstacles instead of driving blindly:
Let me tone down the remaining visual noise — speed lines were very busy:
Now let me keep traffic populated over time and reduce the constant damage-shake:
One more crucial control improvement — on foot you should aim with the mouse, not your movement direction:
Build passes. Here's what I changed:
🎯 Screen Shake — Massively Toned Down
The shake was compounding from multiple sources every frame. I fixed it at the root rather than tweaking individual call sites:
- Central damping:
addScreenShake() now scales every incoming value by 0.18 and caps total shake at 4.5 (was 25) — roughly a 5x reduction.
- Faster settle: decay slowed from a lingering 25/s to a crisp 14/s so it never smears.
- Halved amplitude in the renderer (removed the extra
× 1.8 multiplier).
- Fixed the real culprit: wall collisions called shake every single frame while scraping a building. Now cars slide along walls GTA-style and only shake on genuine high-speed impacts (>9 speed).
- Capped ramming shake — it previously scaled unbounded with impact speed.
- Gunfire hits now give a tiny 1.6 tap instead of a 5.
🏙️ A Real City Instead of Floating Boxes
The old map was ~20 disconnected rectangles with two hardcoded roads. Now there's an actual street network:
- 7 vertical avenues × 5 horizontal streets forming a proper grid of city blocks
- Buildings are procedurally placed inside blocks with sidewalk margins, so every structure fronts a street
- Crosswalk zebra stripes at all 35 intersections — the single biggest readability win
- Curb edging, yellow dashed centre lines, extra lane markers on Ocean Drive
- Ocean Drive is now a genuinely wide signature boulevard lined with palm trees on both sidewalks
- 16 named landmarks (Malibu Club, Flamingo Hotel, City Hall, Sunshine Autos…) anchored to specific blocks
🎥 Proper GTA Chase Camera
- Smooth exponential easing follow instead of hard snapping to the player
- Look-ahead: camera leads in your direction of travel, scaling with speed — you see where you're going
- Zoomed out (0.82–0.95) so you read the streets and traffic instead of being nose-to-the-glass
- Fixed a latent bug: the old zoom transform was mathematically miscentering the view at any zoom ≠ 1
🧭 Objective System — Clear Purpose
Previously you spawned with no idea what to do. Now:
- Engine picks the best reward-vs-distance target each frame (heist targets + loaded armored vans)
- Glowing ground beacon with expanding ripple rings and a bobbing chevron at the target
- Off-screen edge arrow with live distance readout that tracks around the viewport
- Mission banner in the HUD showing objective name, payout, distance, and a context hint ("Drive there, then exit & press E")
- Amber waypoint diamond on the radar
🚗 Living Traffic
- 14 ambient civilian cars that actually follow lane centres on the road grid with steering correction
- They brake for obstacles ahead (player, other traffic)
- Traffic recycles — despawns when far away and respawns near you, so streets always feel populated
🕹️ Other Feel Fixes
- Mouse aiming on foot — you now face/shoot toward the cursor instead of your movement direction (proper twin-stick control)
- Spawn vehicles repositioned to sit on Ocean Drive (some were clipping inside buildings)
- Speed lines only appear during nitro or genuinely high speed, at ~40% opacity
- Radar redrawn with the real road grid overlay
The core loop now reads clearly: the banner tells you what's worth money, the beacon and arrow guide you there, the streets are navigable, and feedback punches without disorienting.
Files built: src/game/gameEngine.ts, src/game/renderer.ts, src/game/mapData.ts, src/components/HUD.tsx, src/App.tsx