AGI Engine
Sierra's Adventure Game Interpreter
Sierra's AGI engine powered early graphical adventures from King's Quest to Space Quest, defining the parser-based adventure game genre.
Overview
The Adventure Game Interpreter (AGI) was Sierra On-Line's adventure game engine from 1984 to 1988. It paired 160×200 graphics with a text parser, creating games where players typed commands while viewing illustrated scenes. AGI powered King's Quest, Space Quest, Police Quest, and Leisure Suit Larry — series that defined the graphical adventure genre before point-and-click interfaces took over.
AGI was Sierra's response to the question: "what if you could see the adventure as well as type into it?" Earlier Sierra games (Mystery House, 1980) had static images; AGI made the world animated. This was the first commercial step from text-only to graphical-and-text adventure.
Fast facts
- Developer: Sierra On-Line.
- First use: King's Quest: Quest for the Crown (1984, IBM PCjr).
- Era: 1984-1988 (superseded by SCI).
- Resolution: 160×200 in 16 colours (CGA palette).
- Interface: Text parser input + mouse navigation (later versions).
- Scripting: Custom interpreted bytecode language.
- Notable games: King's Quest I-III, Space Quest I-II, Police Quest, Leisure Suit Larry, Manhunter: New York / San Francisco.
Technical approach
AGI was a major leap forward in 1984:
| Component | Method |
|---|---|
| Vector backgrounds | Scenes drawn with line and fill primitives (small file sizes) |
| Priority screens | Layered graphics for depth ordering — characters can walk behind objects |
| View resources | Animated character sprites (multi-frame, multi-direction) |
| Logic scripts | Per-room game logic in custom bytecode |
| Parser | Two-word "verb noun" command parser ("OPEN DOOR", "GET KEY") |
| Inventory | Object collection and use |
Vector backgrounds
The crucial space-saving trick: rather than storing pixel-by-pixel images, AGI stores backgrounds as a list of drawing commands. A scene becomes ~500 bytes of "draw line", "fill region", "draw shape" commands instead of a ~32 KB bitmap. The interpreter executes the commands at scene-load time to produce the visible image. Essential for fitting King's Quest on 360 KB floppies.
The downside: backgrounds look "vector-y" — large flat-coloured regions, simple geometric shapes, no fine detail. SCI replaced this with proper bitmap backgrounds.
AGI games
| Game | Year | Notes |
|---|---|---|
| King's Quest: Quest for the Crown | 1984 | First AGI game; IBM PCjr launch title |
| King's Quest II: Romancing the Throne | 1985 | Same engine, larger world |
| King's Quest III: To Heir Is Human | 1986 | Difficulty peak; players carry a manual to read spell incantations |
| Space Quest: The Sarien Encounter | 1986 | Sci-fi parody; Roger Wilco debut |
| Police Quest: In Pursuit of the Death Angel | 1987 | Daryl F. Gates' realistic police adventure |
| Leisure Suit Larry in the Land of the Lounge Lizards | 1987 | Adult comedy; spawned a series |
| Space Quest II: Vohaul's Revenge | 1987 | Roger Wilco continues |
| Black Cauldron | 1986 | Disney licence; first icon-based AGI game |
| Manhunter: New York | 1988 | Last major AGI title |
| Manhunter: San Francisco | 1989 | Final AGI game |
Evolution to SCI
By 1988 Sierra had outgrown AGI's limitations and built SCI (Sierra Creative Interpreter) as a replacement:
| Feature | AGI (1984-1988) | SCI (1988-1996) |
|---|---|---|
| Resolution | 160×200 | 320×200 → 640×480 |
| Colours | 16 (CGA) | 16 → 256 |
| Audio | Internal speaker beep | AdLib, MT-32, GM, sampled |
| Interface | Text parser | Mouse-driven point-and-click |
| Backgrounds | Vector primitives | True bitmap art |
See SCI Engine for the successor.
Modern preservation
AGI games run on modern hardware via:
- ScummVM — supports AGI as well as SCUMM and SCI; the universal solution
- NAGI / SARIEN.NET — alternative AGI interpreters
- AGI Studio — tool for studying and modifying AGI games (active homebrew community)
- Sierra King's Quest Collection — official re-releases bundle AGI versions playable
The community has fully reverse-engineered AGI; new fan-made AGI adventures (The Black Cauldron Remake, various KQ remakes) continue to be produced.
Legacy
AGI established several conventions that defined the genre:
- The Sierra "death" tradition — your character could die from many actions; save often
- Score system — point-based puzzle progress tracking (visible top-of-screen score)
- Multi-game series — KQ, SQ, PQ, LSL all built on AGI; SCI continued them
- Iconic protagonists — Graham, Roger Wilco, Sonny Bonds, Larry Laffer all originated in AGI
The cultural footprint of these series — particularly King's Quest and Space Quest — is enormous. Fan communities, game jams, and indie revivals continue to produce AGI-style adventures today.