This basic maze game can be used to create other more complex ones. It comes with a maze game building JavaScript API. This particular example requires PHP to load the media files. You can download the game source, and even play the game