Report as inappropriate.
THIS IS JUST A DEMO -- it is not a game. It contains a reusable class called OS_Maze (for origin-shift maze). For the demo, I also added a subclass of it to aid in displaying the maze with or without the arrows and showing or not showing the solve path from current cell to origin cell (arrows gaining multiple color options).
MOUSE:
move: cell at mouse pointer becomes current start cell
click: cell at mouse pointer becomes current end cell (origin)
KEYS:
"r": randomizes the grid (creates a new random maze)
"b": changes grid arrows drawing color (cycles through current valid colors)
"p": changes solve path arrows drawing color (cycles through current valid colors)
number keys (0, 1 and 2): changes what is displayed
"0": displays grid only
"1": displays grid and arrows
"2": displays grid, arrows and solve path
Want to leave a comment? You must first log in.