FLUTTER ECOSYSTEM

pblinux/maze

Flutter 中的迷宮遊戲

迷宮 專案封面
Stars
20
Forks
7
最近推送(UTC)
2024年3月13日
專案狀態
未封存
Pablo Bautista GitHub avatar
GITHUB User

Pablo Bautista ↗

Android Engineer @PayPal / Mobile Engineer and co-founder @PixelaGT / Organizer @gdgxela / Tolkien's Legendarium ultramegafan

PixelaQuetzaltenango官方網站 ↗
語言DartSwiftKotlinObjective-C

此儲存庫發佈的套件

使用的依賴

依賴清單 6 項

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

maze_game

A simple maze game in Flutter. It also serves as a CustomPainter example.

https://raw.githubusercontent.com/pblinux/maze/package/img/maze.png

¿Why?

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.

Maze

So, this is a "port" of that saviour example.

Maze package

pub Project Status: Active License: MIT style: very good analysis

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!'))