Skip to content
Techniques & Technology

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.

ibm-pcapple-iicommodore-amigaatari-st engineadventuresierra 1984–present

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:

ComponentMethod
Vector backgroundsScenes drawn with line and fill primitives (small file sizes)
Priority screensLayered graphics for depth ordering — characters can walk behind objects
View resourcesAnimated character sprites (multi-frame, multi-direction)
Logic scriptsPer-room game logic in custom bytecode
ParserTwo-word "verb noun" command parser ("OPEN DOOR", "GET KEY")
InventoryObject 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

GameYearNotes
King's Quest: Quest for the Crown1984First AGI game; IBM PCjr launch title
King's Quest II: Romancing the Throne1985Same engine, larger world
King's Quest III: To Heir Is Human1986Difficulty peak; players carry a manual to read spell incantations
Space Quest: The Sarien Encounter1986Sci-fi parody; Roger Wilco debut
Police Quest: In Pursuit of the Death Angel1987Daryl F. Gates' realistic police adventure
Leisure Suit Larry in the Land of the Lounge Lizards1987Adult comedy; spawned a series
Space Quest II: Vohaul's Revenge1987Roger Wilco continues
Black Cauldron1986Disney licence; first icon-based AGI game
Manhunter: New York1988Last major AGI title
Manhunter: San Francisco1989Final AGI game

Evolution to SCI

By 1988 Sierra had outgrown AGI's limitations and built SCI (Sierra Creative Interpreter) as a replacement:

FeatureAGI (1984-1988)SCI (1988-1996)
Resolution160×200320×200 → 640×480
Colours16 (CGA)16 → 256
AudioInternal speaker beepAdLib, MT-32, GM, sampled
InterfaceText parserMouse-driven point-and-click
BackgroundsVector primitivesTrue 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 seriesKQ, 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.

See also