The Power Station is located in the middle of the world and occupies 10 X 10 pixels. Gold and monster cannot be co-located with the Power Station. The Power Station is always displayed, unless the hero moves on top of it.
The hero is 10 X 10 pixels.
The hero is not allowed beyond the edges of the rectangular area. There is no
wrap-around. The hero moves according to the rules given in Project #3, with
an additional rule given here:
The hero it not allowed to occupy the same space as a monster. The monster
must be killed before the hero can move into its space.
The hero has a starting health value of 100. Health value is diminished when the hero is hit by a monster. Health value is replenished to 100 when the hero moves onto the Power Station. The hero is always displayed.
At least 5 caches of gold are randomly located on the board. Sitting on top of each gold cache is a monster. Gold will be displayed when the game is initialized, and remains displayed until either (1) the hero picks it up (by moving on top of it), or a monster, sitting on top of the gold, is revealed.
A monster is 10 X 10 pixels. Monsters are hidden until they strike at the hero. Each cache of gold has a monster sitting on top of it. Whenever the hero moves within striking range of a monster (i.e., neighboring 10X10 pixels: N, NE, E, SE, S, SW, W, NW), the monster will hit the hero, with a cost to the hero's health as given below. The hero strikes at a monster by attempting to move on top of the monster. The hero and the monster cannot occupy the same space, so the hero cannot move onto the monster's space (and therefore cannot collect the monster's gold) until the monster is defeated.
There are two kinds of monsters:
The game ends when the hero has 0 health points. Display "you lose!" or similar text and do not allow the hero any further motion.
The game ends when all gold has been picked up. Display "you win!" or similar text and do not allow the hero any further motion.
Satisfying specs | 50% |
Nice "look' to world and hero | 10% |
Elegance (no redundancy, etc) | 30% |
Readability | 10% |