# About the Project
GTA.js is a reimplementation of the original 1997 Grand Theft Auto engine written in TypeScript and Three.js. It parses the unaltered gamedata files to bring Liberty City to life directly in the browser.
# Not an Emulator
This project is not a DOSBox wrapper, not an emulator, nor is it decompiled from the original executable. It is a reimplementation built with the help of Google Gemini, referring it to open source reimplementations, public documentation and community notes, or by simply telling it how I recall the game from playing (and editing) GTA a lot back in the day.
Because this is a reimplementation, there are differences compared to the original 1997 game in certain physics behaviors and unimplemented systems.
# Play GTA.js
Play the game in the iframe below. or open it in a new tab.
# Implementation Status
A high-level overview of what is currently playable in GTA.js versus features from the 1997 game that are not implemented.
✓ Implemented
- 3D City & Map Rendering: Stacked block city geometry, 40 slope types, animated water, traffic lights, and 24-bit palette-remapped sprites.
-
Vehicles & Handling: Authentic per-car
.G24rigid-body handling, 4-corner collisions, directional dent and door deltas, skidmarks, horns & emergency sirens, car explosions, working Fire Truck water cannons, and Tanks with rotating missile turrets and car crushing. - Weapons & Crates: Fist, Pistol, Machine Gun, Rocket Launcher, Flamethrower, armor, extra lives, and destructible barrels.
-
MISSION.INIEngine: Multi-process script interpreter, ringing payphones, objective guidance arrows, timers, and HUD briefings. - NPC Traffic & Pedestrians: Ambient traffic vehicles (including buses, coaches, tankers, and fire trucks), carjacking, pedestrian walking/panicking/fleeing AI, and spatial Web Audio effects.
- Cops & Wanted Levels: Police patrol cars, roadblocks, wanted level heads, and getting Busted!
- Dock Cranes: Functional harbour cranes that hoist, swing, and crush vehicles for cash bonuses.
- Kill Frenzy: Hidden timed rampage challenges with unlimited ammo and score multiplier rewards.
- ★ Mobile Touch Controls: Context-sensitive on-screen thumbstick and action buttons for phones and tablets.
- Respray Shops: Drive-in respray shops to get a new color or plates, and get rid of the cops.
- Bomb Shops: Drive-in bomb shops for rigging vehicles with timed explosives.
- Radio Stations & Audio: In-car FM stations and Police Radio with continuous broadcast clocks, HUD station banners, station cycling, and independent Sound/Music volume & Radio/Constant mode options.
- Save & Load Games: 4-slot free-roam savegames scoped per gamepack, map, and chapter with progress metadata, accessible from the pause menu and start screen.
- Trains & Trams: Autonomous 4-carriage elevated/subway trains with station stops, sliding doors, block signaling, passenger boarding, hijacking & manual controls, electrified third-rail hazards, and static streetcar trams.
- Full Game, London & Custom Maps: Support for loading the 1997 demo, full GTA 1 (Liberty City, San Andreas, Vice City), GTA: London 1969 & 1961, and custom maps via a gamepack & chapter selector.
Not in the original 1997 game engine.
✕ Not Implemented
- Emergency Services: AI-dispatched ambulances responding to injured pedestrians and firetrucks automatically extinguishing burning vehicles (player-driven Fire Truck water cannons are supported).
- Gouranga!: Running over the Hare Krishna conga line for the classic Gouranga! bonus.
- Multiplayer: No support for network play.
# Keyboard Controls
Press ?, Esc, or ` at any time inside the game to open the in-game menu, full controls reference, and options, or H to toggle the Debug HUD.
# Mobile Touch Controls
On phones and tablets, context-sensitive touch controls appear automatically at the bottom of the screen and switch between On Foot and In Vehicle modes.
On Foot
In Vehicle
# Changelog
-
- Add autonomous 4-carriage elevated/subway trains
- Add train station boarding and hijacking and electrified third-rail electrocution hazards
- Add
MISSION.INItrain opcodes (IS_PLAYER_ON_TRAIN,WRECK_A_TRAIN,WRECK_CURR_TRAIN, andIS_A_TRAIN_WRECKED)
-
- Overhaul the pre-game menu
- Improvements to Cops and AI traffic vs Slopes
- Implement
GOTO,LOCATE, andLOCATE_STOPPEDmission objectives - Allow saving during free-roam when the chapter-end red arrow is shown
- Redesigned pre-game menu flow
- Added Save & Load Games mechanism (4 slots scoped per gamepack+map+chapter combo)
-
- Add in-car Radio Stations
- Add Grand Theft Auto: London 1969 & London 1961 engine support
- Revised vehicle physics and collisions
- Add playable Tank and Fire Truck with working turret and water cannon
- Gameplay, explosion & UI polish
-
- Graduate Cops from Preview to Stable, with rebalanced pursuit pacing, minimum barricade spacing, and non-queueing police radio chatter
- AI traffic improvements (obstacle honking with distinct car and bike horns, option-gated obstacle bypassing, and smarter traffic flow around police roadblocks)
- Exploding vehicle overhaul (bullet-threshold detonations, staggered chain explosions with doubling score combos, and burning wrecks with smoke puffs)
- Respray Shop improvements (pager notifications with preemption, respraying at wanted level 0, randomized pricing, and automatic stopping)
- Mission, garage, and dock crane polish (live countdown pagers with ticking clock audio, normal-paced mission runners, smoother garage drop-offs, and refined crane handling)
-
- Add full chapter-end flow
- Add Bomb Shops with Fire-key car bomb arming, live detonation pager countdown, impact-fragile bomb vehicles
- Tweak garage doors opening
- Door-Aware NPC Boarding, Sailing Mission Boats, and RC Explosive Buggy Missions
-
- Improvements to Cops and collision physics
- Start-screen UX improvements (keyboard navigation and persistence)
- Add target-score gating for chapter finales
- Add animated garage doors with drive-in car drop-offs and automatic walk-out
- Support for loading multiple gamedata sources (full game & custom maps) with a level and mission selector
-
- Gameplay tweaks (auto-switch empty weapons, slower running speed, walkable cardboard boxes, and Respray Shop wanted check)
- Dedicated crate reward HUD icons, sliding close-range objective arrow, and repeated map edge tiles
- Separate debug toggle for vehicle pathways and vehicle door markers
- Bug fixes for duplicate parked vehicles and NPC car-entry animations
-
- Add Respray Shops
- Improvements to Cops and AI traffic
- Refined vehicle entry and exit behavior
-
- Improvements to Cops
-
- Improvements to Cops
- Improvements to Mobile Touch Controls
- Improvements to AI traffic
-
- Add experimental support for Cops and Wanted Levels
- Add in-game pause menu and Save/Load game support
-
- Scoring improvements (mission multipliers, authentic payouts, and run-over combos)
-
- Overhauled vehicle handling physics
- Add debug entity outlines option
-
- Add Mobile Touch Controls
- Add in-game icon toolbar (Fullscreen, Menu, Mobile Controls)
-
- First release — playable 1997 Liberty City demo loaded directly from a demo
.ziparchive - 3D city & map rendering (slopes, animated water, traffic lights, and 24-bit sprites)
- Vehicles with per-car handling, collisions, damage/door deltas, skidmarks, and explosions
- Weapons & crates (Fist, Pistol, Machine Gun, Rocket Launcher, Flamethrower, armor, and extra lives)
MISSION.INIengine with payphones, objective arrows, timers, HUD briefings, and Kill Frenzy- Ambient NPC traffic, carjacking, pedestrians, Dock Cranes, and spatial Web Audio sound effects
- First release — playable 1997 Liberty City demo loaded directly from a demo
# References & Acknowledgements
Standing on the shoulders of giants: Recreating the GTA1 game engine to play its 1997 gamedata files would have been impossible without the official technical specs published by DMA Design and the extraordinary documentation, modding tools, and open-source research shared by the GTA community over the past three decades.
DMA Design & Core Specs
-
CityScape Data Structure (
cds.doc) & GTA Mission Template Description (mtd.doc) by DMA Design. - The Unofficial GTA Reference Handbook by Michael Mendelsohn.
- Gouranga! mission scripting guides (Luke’s How to Write a Mission in 7 Days).
Engines & Prior Recreations
- gta-webgl (WebGL-GTA) by Niklas von Hertzen — the pioneering WebGL map renderer that sparked this project.
- carnage3d & OpenGTA & gta1-webedition & AmiGTA1 engine reimplementations.
- 2D Vehicles by Pat Kerr — deep dive and interactive recreation of the original GTA vehicle physics system.
Classic Community Tools
- Junction 25 & M1 – the OG map editors.
- GTACars – the OG car editor
- The Cops and FXT2TXT utilities.
Find all resources in bramus/gta-js-resources on GitHub.