The shake is overwhelming and the city reads as empty space. I'll rebuild the world layout into a proper GTA-style road grid with sidewalks and traffic, add a smooth chase camera, objective waypoints, and dial the shake way down.
First I'll add a road-grid definition to the map data.
Now I'll rewrite the ground rendering to draw a real city: block ground, sidewalks, lane markings, crosswalks — plus a smoothed chase camera and far gentler shake.
Now the camera block — smoothing plus much softer shake:
Now the city itself — replacing the sparse ground with a full block-and-street grid:
Now a GTA-style objective waypoint arrow so you always know where the money is:
Now the core fix — shake is clamped and scaled at the source, with a faster settle:
Wall scrapes were adding shake every frame — now only real impacts register:
Now civilian traffic — the biggest missing piece of the GTA feel. Adding lane-driving AI cars:
Making the objective markers read like GTA pickup cylinders:
Two palm columns were sitting in the middle of traffic lanes — moving them onto the sidewalks:
Fixed the shake and rebuilt the world so it actually reads as a GTA city.
Screen shake — dialled way down
- Scaled and hard-capped at the source. Every
addScreenShake call now gets multiplied by 0.22 and clamped to a maximum of 6 (it was 28). Impacts land as a quick thud instead of a camera earthquake.
- Renderer clamp too, as a second safety net, and the offset is now
±s rather than ±s * 2.
- Faster settle so the camera returns to rest almost immediately.
- Killed the worst offender: scraping a wall used to fire shake every single frame while you pressed into it. Now only a genuine impact above speed 6 nudges the camera, scaled to how hard you hit.
Smooth chase camera
Replaced the rigid snap-to-player camera with a frame-rate-independent lerp, a longer look-ahead in your direction of travel, and world-edge clamping so you never see empty void past the map border. This alone removes most of the perceived "jitter."
A real GTA street grid
The city was mostly open space with two roads. It's now a proper block layout defined in mapData.ts (V_ROADS, H_ROADS, TRAFFIC_LANES):
- 5 vertical avenues and 5 cross-streets — including the 4-lane Ocean Drive — with every building verified to sit inside a block rather than in the road.
- Sidewalk curbs drawn under each road, double-yellow centre lines, dashed white lane dividers on multi-lane roads, and zebra crosswalks painted at every intersection.
- Concrete lots, grass/park patches, and street-light pools along Ocean Drive at night.
- Moved four palm trees that were standing in live traffic lanes onto the sidewalk.
Ambient traffic and crowds
The streets were empty, which is why it didn't feel like GTA. Civilian cars (taxis, Banshees, Cheetahs, bikes, cash vans) now spawn just off-camera and cruise the lanes, capped at 10 at a time, with pedestrians topped up to 14. Distant actors are culled beyond ~2000px to protect the framerate.
Clearer moment-to-moment goals
- Objective waypoint arrow: a pulsing green arrow pins to the screen edge pointing at your nearest un-robbed score, with a live distance readout and target name.
- Pickup-style markers: heist targets now have a radial ground glow and a rotating dashed ring, so they read as interactive from across the block.
One thing worth flagging: shake intensity is now a matter of taste, and I picked a conservative setting. The single constant 0.22 in addScreenShake is the master dial — say the word and I can nudge it up if it now feels too soft.
Files built: src/game/mapData.ts, src/game/renderer.ts, src/game/gameEngine.ts