https://github.com/Dannark/FlameExamples
Example of algorithms in dart/flutter
https://github.com/Dannark/FlameExamples
Last synced: 3 months ago
JSON representation
Example of algorithms in dart/flutter
- Host: GitHub
- URL: https://github.com/Dannark/FlameExamples
- Owner: Dannark
- License: mit
- Created: 2020-08-17T14:57:00.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-11T23:08:28.000Z (almost 5 years ago)
- Last Synced: 2024-11-02T15:35:37.571Z (8 months ago)
- Language: Dart
- Homepage:
- Size: 6.84 KB
- Stars: 17
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-flame - Maze generator - List of algorithm examples to solve problems like Maze generation and more. By [Dannark](https://github.com/Dannark/) (Articles & Tutorials / Examples)
README
### Exmaples
* Smooth Camera Follow
* Maze generation algorithm## Maze generation algorithm
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](https://xa.bi/)
### 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`