Simple Maze Generation | Scratch Tutorial

preview_player
Показать описание
Ever wondered how to generate a random maze? Today you can code with me a simple project in Scratch that draws a new maze every time. You'll be amazed how easy it is!

We cover:
• random maze drawing using tiles and stamping
• prevent corridor overlap
• routing around objects
• backtracking
• recursive scripts using custom blocks
• variable size and length of passageways
• adding a simple user controlled character to gamify the project!

Hope you enjoy!!! And Scratch On!

🚀 *Boost Your Creativity with Griffpatch*
The Griffpatch Academy will take you from "Gamer to Game Creator"

Рекомендации по теме
Комментарии
Автор

9:41 "so how do we get out of this one? the answer is we...don't."
that's a good mindset!

pe
Автор

Thank you so much, you helped me to do the programming of my school! Now, my teacher is not going to kill me ;)❤

RobotCodeEscoladeprogramacaoer
Автор

I'm not at all into programming, and I haven't even looked at Scratch in a decade... but I sat through the whole video because wow it's interesting how you can use the simplest code to do things like this, and griff has a voice that's very easy to listen to.

CaseyLabAnimations
Автор

I've programmed a maze generator 2 days ago in JS, still working on it in order to avoid repetitive-looking patterns... my code for it is a bit complicated. After watching your video, I realized that the process of creating a maze is actually simpler than I made it to be!
Thanks for creating these amazing tutorials!
Also, 21:35 you blew my mind when you placed the key pressed block inside an operator 🤯 I didn't know that was possible

lidestudios
Автор

I love how you show us how to put the codes together easiliy and in a simple way. I didn’t know how to code that much but when I started to watch your tutorials, I started to understand how things work.

panzehir
Автор

The way this guy thinks and codes is just so fluent he started from a chunk then used pen to make a full random maze with back tracking from 3 sprites. This guys out of anyone’s scratch league

RTRDD_MONKE
Автор

Damnnn. You did maze generation with just a few chunks of blocks, with backtracking! The coolest part was that you could add shapes that the maze avoids, can't imagine how i would go about achieving that with lists and other algorithms. Good video!

aparrot
Автор

You are the genius one in the universe who can do everything possible in coding.
You make me popular in my school through this simple maze trick.

sachchankumar
Автор

This is honestly one of the most insane things I’ve seen on scratch.

DrGiggleTouch
Автор

you may have missed this but combining this "random maze generator" with your "3d raycasting" tutorial can make a fully 3D maze exploring game!

gentlest_of_cheeses
Автор

Who Would EVER dislike griffpatch's tutorials... Griffpatch is the god of Scratch and doesn't deserved to be disliked on his videos

dubsisthegoat
Автор

Pathfinding tutorial: Let’s give Scratch Cat lots of love let apples!

Maze generation: We’ll begin by deleting Sprite1...

shock
Автор

The genius of this is how simple yet well-made it is, like how at the end you could just add in shapes to the bounds and the maze perfectly dealed with it. These are just the best, keep up the great work!

tmoodyscratch
Автор

So this dude just explained the concept of randomized depth-first search algorithm for maze generation without even mentioning randomized depth-first search algorithm for maze generation once in this video? You just earned a new subscriber.

nguyenminhdang
Автор

this was really useful because it really helped me be able to make the backroom when making the back rooms inside of scratch

thatboydunk
Автор

Who else thinks watching griffpatch play games with commentary is the best thing ever

theoldlaser
Автор

So cool!
Everything is explained very well and is easy to understand!
New scratchers could definitely learn from these videos, which is another reason why they are good!
Now time for maze generation with pathfinding!

ÆTHER-MCCVIII
Автор

This will fit perfectly with the pathfinding!

tgnash
Автор

I didn’t even code while doing this i just watched this because it’s interesting! Griffpatch can make coding so fun!

zayskyprogramming
Автор

try this set of properties:
-set tilesize to 30
-start at x and y each 15 instead of 0
-remove the maze-bounds-sprite and use [touch (edges)] instead of [touch (maze-bounds)]
You get a maze, that fills your game-screen perfectly with 16 x 12 tiles of corridors

Drachenbauer
join shbcf.ru