Avalon Code (アヴァロンコード, Avaron Kōdo) is a fantasy action role-playing game for Nintendo DS. It was developed by Matrix Software and published by Marvelous Entertainment.
The game makes use of a mechanic that allows the player to affect the "elemental code" of the world around them by using the Book of Prophecy which is situated on the touch-sensitive lower screen. This book is the central focus of both the plot and gameplay. The game also allows the player to select between a male or female protagonist.
Avalon Code received mixed reviews, being praised for its graphics and innovative mechanics, but criticized for its linear story-line and repetitive gameplay.