DPA 4010 / 6010

Spring 2016

A Mazing Game

Homework Assignment 6

Due: Midnight, Wednesday March 30


Assignment: This week you should finish the maze game that you have started in the last three assignments. This time, the user should see only the room that the player is in. Doors should be drawn on the walls that the player can exit through. The room's color should indicate the type of room it is: start, goal, corridor, boss, or health. All of the move commands, including hyperspace, should work as in the previous assignments. The only difference is the view that the player has.

The player should start with 3 health points, displayed on the screen. Each time a "health" room is entered, one health point is added. Each time a "boss" room is entered, one health point is deducted. If the player's health goes to 0, the game is lost. If the player gets to the "goal" room with at least one health point, the game is won.

a mazing game screenshot

For debugging purposes, and to assist a frustrated player, the 'c' key should be a "cheat" key. Pressing the 'c' key displays a small version of the complete maze, showing the player's position, in the corner of the screen.

The image above is an example of what the game layout might look like. In this image, the "cheat" key has been pressed to reveal the maze.


Advanced Extension: Draw something interesting in each of the special rooms: start, goal, boss, and health.

Please submit your program using the standard handin procedure. You should include your all of your source code .cpp and .h files, and a Makefile.