Dungeon Master Clone, for the Nintendo DS
DMC is a pretty ambitious project to port Dungeon Master II:
The Legend of Skullkeep to the Nintendo DS. Unlike many homebrew
game projects, DMC has been open source from the beginning. The
svn repository is available for perusing on the project home page.
Google Code project