搜尋套件、儲存庫與 APP 分類

maze 封面
套件詳情v3.0.0

maze

一個簡單的 Flutter 迷宮遊戲。它同時也作為 CustomPainter 的範例。

AndroidiOSmacOSWindowsLinux
近 30 天下載
28
喜歡數
24
Pub 分數
140

安裝套件

flutter pub add maze

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個使用 Flutter 建構的簡單迷宮遊戲,展示 CustomPainter 的使用。它提供了一種互動式的遊戲體驗,使用者可以透過生成的迷宮導航到達出口。該套件不僅是有趣的迷你遊戲,也是開發者學習如何在 Flutter 中實作自訂繪圖的實用範例。其乾淨的程式碼結構非常適合教育用途。

適用情境

  • 學習 Flutter 中的 CustomPainter
  • 建構簡單的迷宮遊戲
  • UI 繪製的教育範例
  • 創建互動謎題
  • 演示 Dart 中的遊戲邏輯

主要特色

  • CustomPainter 實現
  • 隨機迷宮生成
  • 互動式玩家移動
  • 簡單的遊戲機制
  • 跨平台相容性

適合對象

  • Flutter 初學者
  • 遊戲開發學習者
  • UI/UX 教育者
  • Dart 開發人員探索圖形
  • 教育項目

使用建議

  • 有限的遊戲深度
  • 無多人遊戲或計分功能
  • 最小的自定選項
  • 未針對大型迷宮進行優化
  • 主要用作範例,而非生產遊戲

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

maze_game

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

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

所屬分類

依賴

依賴清單 3 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。