Generating Randomness in Labyrinth (Maze) based game (Question)
mdt3ch@gmail.com
Member Posts: 18
Hi there, I am creating a labyrinth based game, and I was wondering how I could randomly generate the labyrinth. This is an endless tapper game. I want it so that when the player starts, the labyrinth will randomly generate with just enough space in between the walls to allow them through. How would I go about this? Many Thanks!
Comments
What have you found through Googling the topic? Maze creation is a common theme in math and programming circles. I imagine you'd have to take a known algorithm and adapt it to GameSalad. The toughest part is probably going to be implementing a recursive function since GameSalad can't easily do that.
I had posted this to the Spare Code thread but it seems to have gotten deleted so I'll add it here. It's not a maze generator at all but it does show an example of recursion.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User