This assignment is worth 30 points.
Your program should use the correct orientation for the character deepening on the direction last traveled. So if the last move the character made was to the right, the right facing sprite should be displayed.
The character should move some reasonable distance when the player issues a move command. If you wish you may have two levels of move, a walk and a run.
Your player should not be able to walk outside of the canvas.
You may use buttons for navigation or you may incorporate canvas keypress events or mouse click events which we will discuss soon.
You should have treasures that pop up on the screen at random, in random locations. When the player comes into contact with these treasures they should collect the treasure and a displayed score should increase. You should have at least two treasure types and the scores for each should be maintained in a different count and display. You should have different images for each treasure.
You should have a "goal" area which ends the game when the player enters. You should disable any further movement and put "Game Over" on the canvas when this occurs.
You should have at least five obstacles in your game. These can be as simple as rectangular walls. The character can not walk through these walls and you should not spawn treasures on these walls.
Finally you should have at least one "bad guy" that moves at random around the world. The bad guy should not be able to walk through walls or outside of the canvas. The bad guy should pick up treasures they are encountered. Finally if the player comes close to the bad guy, the bad guy should steal all of one type of the player's treasure. You may have multiple bad guys if you wish and they may have more intelligent strategies as well. This is up to you.
There should be a link from this page to your game.
Submit your tar or zip file as an attachment to a message to dbennett@edinboro.edu. Please include your name, and the fact that this is homework 3 and Computer Graphics in the title of the message.