Adventure Game Interpreter (AGI)

Last updated: November 12, 2026

Overview

The Adventure Game Interpreter (AGI) was the engine Sierra On-Line built for King’s Quest (1984), with Ken Williams and Jeff Stephenson as its authors;1 with Ken running the company, the heavy lifting of turning the proposal into a game engine “largely fell to Jeff Stephenson”.2 A year before the PCjr was announced, IBM asked Sierra “to create a game that would show off the new computer’s color graphics capabilities”; eighteen months later Roberta Williams and a team of six programmers and artists had finished King’s Quest.3 AGI was not Sierra’s first engine — the Hi-Res Adventures, beginning with Mystery House (1980), the first graphical adventure game, ran on Ken Williams’ Adventure Development Language (ADL)45 — but Sierra and IBM agreed that King’s Quest should be animated, “a first for Sierra”.1 Electronic Games called King’s Quest “a major breakthrough in action-adventure games”, praising its “combination of keyboard-input and joystick-operated on-screen character movement”.6 Sierra used AGI for 14 games between 1984 and 1989 before replacing it with the Sierra Creative Interpreter (SCI).1

Most AGI games combine a 160×200 logical resolution and 16 colours,7 a typed text parser8 and a pseudo-3D perspective that lets characters walk in front of and behind background objects.7 AGI games with no parser at all include The Black Cauldron, Mixed-Up Mother Goose, Manhunter: New York and the AGI version of Donald Duck’s Playground, which is played with the arrow keys and an action button (see their pages).

Technical Specifications

SpecificationDetails
Logical resolution160×200; each AGI pixel is two EGA pixels wide9
Colour depth16 colours7
Graphics modesCGA, Hercules and EGA in the interpreter’s monitor-type variable;10 PCjr/Tandy versions;11 DOS Days adds MCGA and, in later AGI2 versions, VGA (unconfirmed elsewhere)12
InterfaceText parser (typed commands) in most games8
AudioPC speaker (melody only), Tandy/PCjr three voices plus noise, Apple IIgs wavetable music and sampled effects13
Memory requiredKing’s Quest: 128K;6 AGI “had also been designed to run in 128 K of memory”2

Graphics System

Pseudo-3D Environment

Characters walk both horizontally and vertically, and the interpreter decides whether they appear in front of or behind scenery from a hidden priority screen.7

Drawing Priority

Each PICTURE resource draws two screens at once: the “picture” screen the player sees, and a “priority” screen “held in memory” that “contains control information invisible to the player”. As a picture is drawn, “both screens are updated depending on whether drawing is enabled from each screen”.7 For King’s Quest, artists drew each of the 80 scenes in colour and traced them on a Calcomp graphics tablet, which generated the drawing instructions automatically.3

Character Animation

Characters and objects are VIEW resources, stored as bitmaps. Each view holds one or more loops, each loop one or more cels (frames); the interpreter supports up to 255 loops per view and 255 cels per loop.9

Audio Capabilities

AGI’s audio support varied by platform:

PlatformAudio capability
IBM PCPC speaker plays the melody voice only13
Tandy 1000 / PCjrThree voices plus noise13
AmigaThree-voice soundtrack (Space Quest)14
Apple IIgs”16 channel wavetable based MIDI songs” and “digitally sampled PCM sound effects”;13 Space Quest had a “fifteen-voice soundtrack with notably richer sound”14

The sound data for the MS-DOS, Tandy and Macintosh versions has the same four parts: a melody, two accompaniment voices and a noise channel.13

Interface Evolution

Text Parser

Players typed short commands; the following are illustrative examples:

  • LOOK TREE
  • GET SWORD
  • TALK MAN
  • OPEN DOOR

Each game’s vocabulary is stored in its words.tok file, “the dictionary of words that the interpreter understands”; many words can share a word number, so synonyms are treated alike.8 Compute! reported in 1985 that Roberta Williams “wishes the language interpreter had a larger vocabulary”.3

Game logic

Each room’s behaviour was written in Sierra’s “Game Adaptation Language”, a set of IF-THEN statements the program “constantly loops through”.3 The Digital Antiquarian instead gives Game Adaptation Language, or GAL, as the engine’s own original name, later “renamed to the Adventure Game Interpreter, or AGI”.2

Pull-Down Menus (AGI2, 1986)

AGI1 games had no drop-down menus. Around 1986 Sierra’s AGI2 added a dropdown menu bar and selectable animation speeds;12 King’s Quest III (interpreter 2.272) is dated November 8, 1986.11

Games Using AGI

The 14 Sierra AGI games, per the ScummVM wiki:151

King’s Quest Series

Space Quest Series

Other AGI Games

Pre-AGI games

Several earlier games “used some parts of this engine, before it was mature enough”: Dragon’s Keep (1982), The Gelfling Adventure (1983), Troll’s Tale (1983), Mickey’s Space Adventure (1984) and Winnie the Pooh in the Hundred Acre Wood (1984).15 ScummVM’s detection tables also label Mickey’s Space Adventure a “Preagi game”.16 The vault’s own pages for several of these games describe Al Lowe’s own engine rather than an early form of AGI: Lowe called Winnie the Pooh “another game using my ‘Troll’s Tale’ engine”,17 and the Gelfling Adventure page gives its engine as Al Lowe’s interpreter. The ScummVM wiki dates The Gelfling Adventure 1983, while its vault page dates it 1984.

Technical Notes

Cross-Platform Architecture

AGI was “a scripting engine that made it easier to port previous software to different platforms”, which gave King’s Quest a second life on the Apple II and Tandy 1000 after the PCjr was discontinued.18 ScummVM’s version list covers AGI releases for DOS (including PCjr and Tandy), Apple II and IIgs, Macintosh, Atari ST, the TRS-80 Color Computer 3 and Amiga.11

Interpreter Versions

The ScummVM wiki groups Sierra’s AGI interpreters into four generations. AGI0 and AGI1 do not use proper version numbering; AGI2 and AGI3 do. The wiki treats 2.936 as the last AGI2 version.11

GenerationInterpreter versionsExample games (game version, date where listed)
AGI00.048 to 0.101 (Apple II builds)Space Quest Chapter I (Apple II, 0.073); King’s Quest III (Apple II, 2.0A, March 13, 1988; 0.101); King’s Quest (IBM, PCjr and Tandy builds, interpreter version not listed)11
AGI11.10 to 1.20 (Apple II builds listed with numbers)The Black Cauldron (1.1J, 1.1K, 1.1M; Apple II 1.20); King’s Quest II (1.0W; Apple II 1.0H, 1.10)11
AGI22.001 to 2.936Donald Duck’s Playground (2.001, June 8, 1986); King’s Quest III (2.272, November 8, 1986; 2.936, March 15, 1988); Leisure Suit Larry (2.440, June 1, 1987); Police Quest (2.903, October 23, 1987)11
AGI33.002.086 to 3.002.149King’s Quest IV (3.002.086, July 27, 1988); The Black Cauldron (3.002.098, November 10, 1988); Gold Rush! (3.002.149, December 22, 1988); Manhunter 2: San Francisco (3.002.149, August 17, 1989)11

The wiki lists Apple IIgs builds separately, with their own numbering (1.003 to 3.003).11 DOS Days dates the drop-down menu bar to AGI2 and notes that AGI1 games had none.12

Save/Restore

AGI1 games could only save to a blank floppy disk, though a game could format one from within.12

Limitations

Resolution Constraints

The 160×200 logical resolution (each pixel two EGA pixels wide) limited detail in character art and backgrounds.9 Artists such as Mark Crowe, who worked on King’s Quest II and was art director of The Black Cauldron, worked within it.19

Parser Frustrations

The parser only understood words in each game’s vocabulary file,8 and even King’s Quest’s designer wanted a larger one.3

Transition to SCI

Sierra replaced AGI with SCI, whose first game was King’s Quest IV (1988).1 The first version of SCI still used a text parser, at 320×200 in 16-colour EGA;20 it “did not support the impressive but expensive new MCGA and VGA graphics standards”.21 256-colour VGA and an icon-driven point-and-click interface came with SCI1 and King’s Quest V in 1990.20 SCI1 was not VGA-only: ScummVM’s version list records an earlier “SCI1 (ega)” interpreter used by Quest for Glory II, and EGA builds of King’s Quest V.11

FeatureAGISCI0 (1988)SCI1 VGA (King’s Quest V, 1990)
Resolution160×200 logical320×200320×200
Colours1616 (EGA)256 (VGA)
InterfaceText parserText parserIcon-driven point-and-click

King’s Quest IV (1988) shipped in both AGI and SCI versions; the following year Sierra published its final AGI title, Manhunter 2: San Francisco, and then used SCI for all new adventure games.1

Legacy

Fan Development

The AGI engine has been thoroughly documented by fans:

  • AGI Specifications — fan-written documentation of AGI’s resource and sound formats (the sound chapter by Lance Ewing, with additions by Claudio Matsuoka, Paul Lunga and Ian Schmidt, 1999)13
  • AGI Studio — Peter Kelly’s 1997 tool for viewing, editing and creating AGI games12
  • NAGI — Nick Sonneveld’s New Adventure Game Interpreter12
  • ScummVM — AGI support added to ScummVM in May 2006 and first released in version 0.10.0 (June 20, 2007)1522. ScummVM’s AGI engine “is based on the code of the Sarien project, used with permission”, and the Pre-AGI games are handled by its TrollVM code15

Preservation

ScummVM supports all the Sierra AGI games.23

Playing AGI Games Today

  • ScummVM — runs every AGI game23
  • GOG.com’s King’s Quest 1+2+3 and Space Quest 1+2+3 are “powered by ScummVM”2425

See Also

References

Footnotes

  1. Wikipedia — Adventure Game Interpreter — authors Ken Williams and Jeff Stephenson; released May 1984; “employed it in 14 of their games between 1984 and 1989”; “its final AGI-based title, Manhunter 2: San Francisco” ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7

  2. The Digital Antiquarian — The Unmaking and Remaking of Sierra On-Line (July 2013) — “the heavy lifting of turning the proposal into a game engine largely fell to Jeff Stephenson”; “initially known as the Game Adaptation Language, or GAL… renamed to the Adventure Game Interpreter, or AGI”; “designed to run in 128 K of memory” ↩ ↩2 ↩3

  3. COMPUTE! #57 (February 1985) — “Inside King’s Quest”, Internet Archive — IBM asked Sierra “to create a game that would show off the new computer’s color graphics capabilities”; “Eighteen months later”; 80 scenes traced on a Calcomp tablet; “Game Adaptation Language”; “a larger vocabulary” ↩ ↩2 ↩3 ↩4 ↩5

  4. Wikipedia — Mystery House — “Mystery House is the first graphical adventure game” ↩

  5. ScummVM Wiki — ADL (Wayback, April 9, 2024) — “ADL stands for “Adventure Development Language”. It was created by Ken Williams”; the Hi-Res Adventure series ↩

  6. Electronic Games, December 1984 — King’s Quest review, Internet Archive — header “Sierra/IBM/128K Disk”; “a major breakthrough in action-adventure games” ↩ ↩2

  7. AGI Specifications, ch. 7 — PICTURE resources — priority screen “held in memory and contains control information invisible to the player”; “both screens are updated” ↩ ↩2 ↩3 ↩4 ↩5

  8. AGI Specifications, ch. 10 — words.tok — “the dictionary of words that the interpreter understands”; “Many words can have the same word number” ↩ ↩2 ↩3 ↩4

  9. AGI Specifications, ch. 8 — VIEW resources — “AGI pixels are 2 normal EGA pixels wide”; “maximum number of loops… is 255… and the maximum number of cels in each is 255” ↩ ↩2 ↩3

  10. AGI Specifications, ch. 3 — variables — “26 - monitor type 0 - CGA; 2 - Hercules; 3 - EGA” ↩

  11. ScummVM Wiki — Sierra Game Versions (Wayback, May 18, 2024) — AGI interpreter versions and dates: Donald Duck’s Playground 2.001 1986-06-08; King’s Quest III 2.272 1986-11-08; King’s Quest IV 3.002.086 1988-07-27; Manhunter: New York 1988-08-31; Gold Rush! 1988-12-22; Manhunter 2 1989-08-17 ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13 ↩14

  12. DOS Days — Sierra’s AGI — AGI1 “no dropdown menus… you could only save a game to a blank floppy disk”; AGI2 “around 1986… a dropdown menu bar”; Hercules and MCGA from 2.4xx; “Later versions of AGI2 would also add support for VGA”; AGI Studio; NAGI (undated, unsigned page; used only where noted) ↩ ↩2 ↩3 ↩4 ↩5 ↩6

  13. AGI Specifications, ch. 9 — sound — “Written by Lance Ewing, with additions/modifications by Claudio Matsuoka, Paul Lunga and Ian Schmidt (Last updated: 22 May 1999)”; four parts, “one which is the melody, two which are accompaniment, and the final one being noise”; “The IBM PC can only play one note at a time”; Apple IIgs “16 channel wavetable based MIDI songs… and digitally sampled PCM sound effects” ↩ ↩2 ↩3 ↩4 ↩5 ↩6

  14. Wikipedia — Space Quest: The Sarien Encounter — “Tandy 1000, PCjr, and Amiga computers would hear a three-voice soundtrack, while Apple IIGS owners were treated to a fifteen-voice soundtrack” ↩ ↩2

  15. ScummVM Wiki — AGI (Wayback, January 1, 2025) — list of 14 Sierra AGI games; PreAGI: Dragon’s Keep, The Gelfling Adventure (1983), Troll’s Tale, Mickey’s Space Adventure, Winnie the Pooh; “Date added to ScummVM 2006-05-23”; “First release containing it 0.10.0” ↩ ↩2 ↩3 ↩4

  16. ScummVM — engines/agi/detection_tables.h — “Mickey’s Space Adventure // Preagi game” ↩

  17. Al Lowe — Games — “Winnie the Pooh in the Hundred Acre Wood” was “another game using my ‘Troll’s Tale’ engine” ↩

  18. The Strong — King’s Quest, World Video Game Hall of Fame — AGI “a scripting engine that made it easier to port previous software to different platforms” ↩

  19. Wikipedia — Mark Crowe — worked on “King’s Quest II, before collaborating with Scott Murphy on The Black Cauldron. Crowe was the Art Director for the game” ↩

  20. Wikipedia — Sierra Creative Interpreter — SCI0 1988 “320 × 200, 16-color EGA”, text parser; SCI1 with King’s Quest V in 1990, “256-color VGA graphics with an icon-driven interface” ↩ ↩2

  21. The Digital Antiquarian — Sierra Gets Creative (August 2016) — “the first version of SCI did not support the impressive but expensive new MCGA and VGA graphics standards” ↩

  22. ScummVM — NEWS.md — release 0.10.0, headed 0.X.0 “Tic-tac-toe edition” (2007-06-20) between 0.9.1 and 0.11.0: “Added Sierra AGI engine” ↩

  23. ScummVM — Compatibility — AGI entries for the Sierra games (agi:kq1 … agi:mh2) ↩ ↩2

  24. GOG.com — King’s Quest 1+2+3 — “This game is powered by ScummVM” ↩

  25. GOG.com — Space Quest 1+2+3 — “This game is powered by ScummVM” ↩