18 November 2026

دليل · Guide9 min read

ابنِ مدينتك كلعبة بأسلوب GTA مع Claude: من خريطة حقيقية إلى لعبة تشتغل في المتصفحBuild Your City as a GTA Style Game with Claude: From a Real Map to a Game That Runs in the Browser

After this guide you can build your city as a 3D driving game in one HTML file, with landmarks taken from their real shapes on the map, and record a clip ready for Reels.

Who this guide is for

Creators and developers who want to build something visual and eye catching with Claude, without 3D software.

Key terms

Three.js
A JavaScript library that draws 3D scenes in the browser. Claude writes the code and you just open the file.
OpenStreetMap
An open map that holds the real outlines of buildings and sometimes their heights. That is where each landmark's shape from above comes from.
Footprint
A building's shape seen from above, its outline on the ground. Raise it and shape its top and the landmark comes out in its real form.
Film mode
A mode inside the game where everything moves exactly by time, so you can record a clean video with no stutter.

The steps

  1. Step 1

    Pick your city and list the landmarks

    Start with five to seven landmarks only, the ones anyone recognises at a glance.

    For each one write three things: its shape from above, its rough height, and the one detail that sets it apart. Those details are what make people say "that's my city" and not "some city".

    I want to build [city name] as a GTA style driving game. Suggest its 7 most famous landmarks, and for each one write: its shape from above, its rough height in metres, and the detail that makes people recognise it instantly. Order them from most to least famous.
    PromptLandmark list prompt

    Tip: One landmark done right beats ten rough ones.

  2. Step 2

    Take the real building shapes from the map

    Instead of letting Claude guess a building's shape, have it fetch the real footprint from OpenStreetMap and convert it to metres.

    This works in Claude Code or any setup with a terminal, because it needs to request data from the internet. The result is a JSON file with each landmark's outline and height.

    Write a Python script that requests buildings around these landmarks from the OpenStreetMap API (api.openstreetmap.org/api/0.6/map with a bbox): [list of landmarks with coordinates]. For each landmark extract the building outline (way) and its height if present, and convert the coordinates to metres around the landmark's centre (x east, z south). Save everything to footprints.json and print the point count for each landmark.
    PromptReal footprints prompt

    Tip: If a landmark isn't found by name, search a bbox around it and take the largest building.

  3. Step 3

    Have Claude build the world and the game in one file

    Now ask for the base: land, sea, roads, ordinary buildings, a car you drive with the keyboard and a camera behind it.

    Keep it in one HTML file so it opens on any laptop with nothing to install.

    Build me a 3D driving game in Three.js as a single HTML file that runs offline. Include: an island and sea, roads shaped like [a simple description of the roads], ordinary buildings with lit windows, a car controlled with WASD and Shift for nitro, a chase camera, and a minimap in the corner. All the interface text in [language].
    PromptBase game prompt
  4. Step 4

    Build each landmark from its footprint

    This is where the difference is. Each landmark grows from its real footprint: raised to its real height, then its top shaped by the detail you wrote in step one.

    Work on one landmark per message, and ask for a screenshot to compare with a real photo before moving on.

    From footprints.json take the footprint of [landmark] and build it in the game: raise it to [height] metres and shape the top like this: [description of the top, for example: it narrows like a sail toward one edge]. Material: [blue silver glass / white marble / glossy red roof]. Add lighting that shows off its shape at sunset.
    PromptOne landmark prompt

    Tip: Frame each landmark from the angle people know from its famous photos.

  5. Step 5

    Set the purple dusk look and the HUD

    The whole feel is in the light: a purple sunset sky, a soft glow and saturated colours.

    The HUD follows action games: the district name appears when you enter it, plus speed, a minimap and a mission line. Make it your own design, with no game logo or studio font.

    Make the whole game purple dusk only: a sky from pink to deep purple, the sun on the horizon, lit windows, a light bloom, and a colour grade that pushes the shadows purple. Add an original HUD with no logos: the district name appears when I enter it, a speedometer, a tilted minimap in the corner, and a mission line in yellow.
    PromptLook and HUD prompt
  6. Step 6

    Fix the black flashes before you record

    The most common bug: the screen flashes black for a moment. The usual cause is a surface with broken numbers (NaN) that the bloom effect spreads across the whole frame.

    Fix it at the source: clean the shapes before rendering, and add a guard pass before the bloom.

    The game sometimes flashes black. Check every geometry after it is built and fix any normal that has zero length or contains NaN, and add a ShaderPass before UnrealBloomPass that detects bad values by testing the float bits (floatBitsToUint) and replaces them with a dark colour. Then print how many values were fixed.
    PromptBlack flash fix prompt
  7. Step 7

    Record a clip ready for Reels

    Don't screen record while you play. Have Claude add a film mode: the car follows a set path and the camera moves by time, then it renders the frames and joins them with ffmpeg.

    That gives you one clean shot you can reproduce the same way every time.

    Add a film mode that runs when I open the page with ?film. In it the car drives a set path [describe the path, for example: across the bridge toward the mosque] for [7] seconds with the camera behind it, and add a seek(t) function that draws any exact moment. Then write a Playwright script that captures 30 frames per second, and an ffmpeg command that joins them into a 1920x1080 video under 30 MB.
    PromptFilm mode prompt

    Tip: Open the clip on your most famous landmark from the first frame, because the first second is what stops people.

Ready prompts to copy

This is a frame from the game and this is a real photo of [landmark]. Compare them: what is different in shape, proportions and colour? Suggest three changes ordered by impact.
PromptShape review prompt

The takeaway

People know their city by its landmarks, so take their real shapes from the map and let Claude build the rest.

Most value

Start building with me now

We sit together, break down your problem, and I build the AI solution with you step by step

60minutes
  • A private session with you
  • Real building during the session
  • Results you take with you when we finish
Book a build session

100% free

A free consultation about your problem

Start