Get lost in mazes with MazeModule!
Hey folks,
Guess what? It’s my first time publishing a module. I am excited to share MazeModule with you all!
What’s MazeModule?
It’s a basic tool for creating and navigating mazes in your projects. Because who doesn’t love a good maze, right?
Why MazeModule?
Here’s the explanation:
- Generate: Need a maze? Just use MazeModule.Generate(xSize, ySize). Easy peasy maze creation, coming right up!
- Build: Turn those maze blueprints (aka MazeTable) into a real-deal labyrinth with MazeModule.BuildMaze(MazeTable).
- PathFind: Lost in the maze? No worries! MazeModule.PathFind(MazeTable, {startX, startY}, {endX, endY}) will get you back on track!
- DrawPath: Wanna see how to find you way? No worries! MazeModule.DrawPath(PathTable) will visualize the pathfinding!
Here is a basic script about using the module:
local MazeModule = require(script.Parent.MazeModule)
while true do
local gameTable = MazeModule.Generate(50, 50)
MazeModule.BuildMaze(gameTable)
local path = MazeModule.PathFind(gameTable, {1, 1}, {50, 50})
MazeModule.DrawPath(path)
task.wait(10)
end
Ready to Get Lost?
So, who’s up for a maze adventure? MazeModule is here to make your coding journey. Let’s dive in and get lost in mazes!
Install the module here!
MazeModule.rbxm (7.2 KB)
Install the 3D module here!
3MazeGenerator.rbxl (50.4 KB)
- 1
- 2
- 3
- 4
- 5
0 voters