This is your template code for a simple maze game the


define NODEBUG-

This is your template code for a simple maze "game". The player's task is to drag an arrow through the maze from the red starting dot to touch the Blue middle square without touching the black maze walls on the way. The game starts when you drag across the red starting dot. The arrow you are dragging is red if you have not yet touched the starting dot or if you've already won or lost. It turns blue to show when the game is running and to indicate that your job is to get to the blue square. If you touch the maze walls or release your button press (this is to prevent cheating by skipping over walls) the arrow becomes red to show that you have lost the game and need to start again. Its NOT as easy as it seems especially if you have a laptop trackpad!!!

The particular tasks are

1. test the RGB image value corresponding to the current mouse position

2. compute the estimated direction of current motion

3. "manually" rotate and position the arrow in the direction of motion

4. print some additional text on the screen to count redraw cycles

5. design a new arrow shape and make it work properly

6. fix the game ending with something to better distinguish a win.

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: This is your template code for a simple maze game the
Reference No:- TGS01083171

Expected delivery within 24 Hours