Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Dannark/FlameExamples
Example of algorithms in dart/flutter
https://github.com/Dannark/FlameExamples
Last synced: 2 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 (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-11T23:08:28.000Z (over 4 years ago)
- Last Synced: 2024-08-02T07:07:16.165Z (6 months ago)
- Language: Dart
- Homepage:
- Size: 6.84 KB
- Stars: 14
- Watchers: 1
- Forks: 2
- 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
![maze_algo](https://user-images.githubusercontent.com/7622553/92973337-5e076b80-f45a-11ea-87b1-2a25c47fcfb0.gif)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`