CSCI 470 |
The login page of the game allows users to create an Avatar with a given name, choose their avatar's image, and choose a dungeon to play in. The player is then assigned a random position in the dungeon and the player can navigate through the dungeon using their arrow keys. The player can type short messages that appear temporarily below the player's Avatar. You should implement your web page using HTML5, JavaScript, and the <canvas> element. |
The two integers specify the width and height (respectively) of the dungeon in tiles. The "W" character denote walls, the "D" character denotes doors, and the "" character denotes passageways. The provided PHP function convertArray($filename) can be used to create a 2D JavaScript array containing data from a dungeon file.13 10 W W W W W W W W W W W W W W - W - - - - - - D - - W W - W - W W W - W W - - W W - W - D - D - W W - - W W - - - W W W - W W W W W W W W - W W W D W W - - W W W W - W - - - - D - - W W W W - W - - - - W - - W W - - - W W W W W W - - W W W W W W W W W W W W W W
Page last updated: February 16, 2014