Hey everyone! Just thought I would share my Small hedge maze game that I built. You can see the whole maze at once, so it really shouldn’t be that hard
! You are the yellow dot and the red dot is the goal. It even tells you your time at the end! Good luck!
If you edit the code, you should be able to make any size maze you want by editing the MazeSizeX and Y variables, though I haven’t made a way to move the camera, so you won’t be able to see bigger mazes. I’m very impressed with how fast the maze loads, as it is entirely random every time! I made something like this for a school coding project and decided to make it in Makecode. You can also edit things like the color of the elements, though collision is based on color so don’t make stuff the same color. Feel free to take this code for any maze needs you might have, though I do believe there is an extension for mazes already. Have fun!
3 Likes
Pressing B will now “solve” the maze for you (it’s really cool to watch!)
1 Like
I just realized that this game has no sprites! So I guess I’ll submit this for that thing! So cool!
1 Like
nice cool game and no sprites?!
1 Like
Alright. I’ve been messing around and I figured out how to make the mazes harder! I also made a better solving algorithm. Now it actually shows you the path and not the edge of the path. Here is the updated version! if you look at the code, there is a showMazeCreation variable that will allow you to watch the maze generate if it is set to True. The showMazeSpeed variable sets how many lines are made every game update, so setting this to 1 makes the generation much slower so you can see what is actually happening. I also made the code a bit different and I think it’s faster now, though it’s hard to tell when the maze gets created in under 0.5 seconds. The SpeedTest variable makes the mazes generate as soon as they finish over and over again and the screen just looks like static, so I think it’s fast enough. 
1 Like