Maze About

Hello.

are there any codes for the dimensional version of this game? For example, I want to look at the codes and make an example myself.

You can find it here https://codepen.io/zimjs/pen/dyBYbMq - just add it to a ZIM template from here https://zimjs.com/code

thanks for the answer. do you have an example without threejs? also how did you create the maze image?

Can you make a very short video for this?
It doesn't have to be a very complicated maze. A very small maze is enough. How is the start set? How is the end set?
How is the ball's contact with the walls detected? Is the black line collision detected? I don't understand much because my English is not good.
But I can think of many games with this maze.

Oh... I see - just a flat maze. Yes, we made one like that a long time ago... but this version has updated code. We did do an Explore video about the code.

See if that has enough information for you. It talks about how we made the current maze as well.

Oh... I just found a later remake of the old maze at https://codepen.io/danzen/pen/ROPxNQ

Console gives an error. The ball moves to the left.

When I click on the warning in the console,

"const data = ctx.getImageData(x, y, 1, 1).data;"

it gives this error.
image

That is just a warning... I think you can ignore it. Stupid warnings.

We already dealt with the willReadFrequently issue in CreateJS and ZIM - maybe you just need to add another parameter to the getImageData - can't remember if there is one for that - but have never noticed the difference so it is just google being the google police.

Ok thank you. This is very nice. I hadn't noticed it before.

1 Like

Yes! I have always loved mazes and so it was a dream to be able to turn a hand-drawn maze into a working interactive maze. And I worked out how to do it, all by myself ;-).

1 Like

I can't thank you enough. Thanks to you, I have made many interactive activities and games. Thank you very much.

2 Likes