# 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 from the original 1997 PC shareware demo 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, animations, and unimplemented systems.
# 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: Custom per-car handling profiles, 4-corner collisions, directional dent and door deltas, skidmarks, vehicle honking, and car explosions.
- 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 cars, carjacking, pedestrian walking/panicking/fleeing AI, and spatial Web Audio effects.
- Cops & Wanted Levels (Preview): 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.
Not in the original 1997 game engine.
✕ Not Implemented
- Emergency Services: Ambulances responding to injured pedestrians and firetrucks extinguishing burning vehicles.
- Respray & Bomb Shops: Drive-in paint shops and bomb shops for rigging vehicles with timed explosives.
- Trains & Trams: Elevated/subway trains and streetcar trams along railway blocks.
- Gouranga!: Running over the Hare Krishna conga line for the classic Gouranga! bonus.
- Radio stations: You’ll have to put on your own favorite cruising tunes.
- Full Campaign & Multiplayer: Scoped to the 1997 Liberty City demo level (no San Andreas, Vice City, or network play).
# Play the Demo
Play the game in the iframe below. Take the iframe fullscreen or in a new tab.
# 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
# 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.