This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

danpost
danpost presents ...

2024/7/11

Origin Shift Maze Demo

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

1197 views / 46 in the last 7 days

3 votes | 0 in the last 7 days

Tags: demo with-source danpost maze-generating origin-shifting

open in greenfoot
Your browser does not support the canvas tag.
A new version of this scenario was uploaded on 2024-07-11 12:47:54 UTC
A new version of this scenario was uploaded on 2024-07-11 12:55:38 UTC
A new version of this scenario was uploaded on 2024-07-11 12:56:13 UTC
A new version of this scenario was uploaded on 2024-07-31 19:37:23 UTC Now fully documented and interactive.

Want to leave a comment? You must first log in.

Who likes this?

lehrerfreund Super_Hippo fefesd