Skip to content

Dannark/FlameExamples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exmaples

* Smooth Camera Follow
* Maze generation algorithm

Maze generation algorithm

maze_algo

This algorithm is recursive division method to get a perfect maze. All the areas inside of it are reachable. Each time, it will divide the areas called chambers in two smaller areas and will keep the proccess until all chambers are minimum sized.

This is a modified version, The original algorithm was made by xabi

Instructions

To use it just call

    var width = 41;
    var height = 41;
    List walls = RecursiveMaze()
        .build(width, height, orientationType: OrientationType.randomized);

You can see the demo in examples/maze.dart

About

Example of algorithms in dart/flutter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages