Avalon Code (アヴァロンコード Avaron Kodo?) is a fantasy-action-role-playing video 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 protagonists.
The plot centers on a young peasant who has been plagued with apocalyptic and prophetic nightmares for weeks prior to the beginning of the story. The latest dream, shown in the opening cinematic, features a mysterious voice. The voice reveals that the protagonist's world has undergone countless reincarnations in the past and is fated to a cycle of correction, destruction, and rebirth until “true enlightenment” is achieved and that the main character has been chosen by the Powers-That-Be to deem the people, places, and things of the current world worthy (or unworthy) of being carried over into the next.
This voice is that of a magical sentient record book called the Book of Prophecy. Taking this tome, the newly appointed Chosen One sets out to find and befriend four guiding elemental Book Spirits who take residence in the Book. Throughout the journey, the Chosen One learns more about a hidden plot to hasten the imminent apocalypse playing out beneath a shallow political feud with the neighboring kingdom and the decisions of the previous Chosen One.
Avalon Code received mixed reviews, being praised for its graphics and innovative mechanics, but criticized for its linear storyline and repetitive gameplay.