v3.0.0maze
一个简单的 Flutter 迷宫游戏。它同时也作为 CustomPainter 的示例。
24喜欢 28近 30 天下载140Pub 分数
AndroidiOSmacOSWindowsLinux
Flutter 中的迷宫游戏
以下为英文项目原文快照,最新内容请访问 GitHub。
A simple maze game in Flutter. It also serves as a CustomPainter example.
In another project, I needed to create a "simple" maze game that can be used in low-end devices, so game engine was not an option.
Suddenly, I found a way to do it in pure Android.
So, this is a "port" of that saviour example.
You can use it in your project, you only need to add the dependency:
dependencies:
flutter:
sdk: flutter
maze_game: 3.0.0
Now you can create your Maze:
Maze(
player: MazeItem(
'https://image.flaticon.com/icons/png/512/808/808433.png',
ImageType.network),
columns: 6,
rows: 12,
wallThickness: 4.0,
wallColor: Theme.of(context).primaryColor,
finish: MazeItem(
'https://image.flaticon.com/icons/png/512/1506/1506339.png',
ImageType.network),
onFinish: () => print('Hi from finish line!'))
依赖清单 6 项
{"sdk":"flutter"}^2.0.0^0.13.0^2.0.0{"sdk":"flutter"}^2.0.0先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗