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

套件詳情v5.5.5

flame_riverpod

用於在 Flame 中結合使用 Riverpod —— 一個反應式快取和資料繫結框架的輔助工具。

AndroidiOSmacOSWindowsLinux
近 30 天下載
2680
喜歡數
34
Pub 分數
160

安裝套件

flutter pub add flame_riverpod

套件介紹

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

flame_riverpod 提供實用工具,可無縫整合 Riverpod(一種反應式狀態管理解決方案)與 Flame 遊戲引擎。它能有效於遊戲元件之間進行資料繫結與狀態共用,並利用 Riverpod 強大的相依性注入與快取功能。此套件簡化了複雜應用程式中的遊戲狀態管理,同時維持效能與可擴展性。專為使用 Flame 的開發者設計,提升遊戲邏輯的模組化與可測試性。

適用情境

  • 管理全域遊戲狀態
  • 在遊戲實體之間共享資料
  • 基於狀態變更的反應式 UI 更新
  • 使用隔離依賴項測試遊戲邏輯
  • 大型遊戲中的狀態管理擴展

主要特色

  • Riverpod 與 Flame 的整合
  • 自動狀態反應性
  • 依賴注入支援
  • 關注點的清晰分離
  • 狀態組件的簡單測試

適合對象

  • 火焰遊戲開發者
  • 使用 Riverpod 進行狀態管理的項目
  • 注重可維護代碼的團隊
  • 需要複雜狀態處理的遊戲
  • 尋求可擴展架構的開發者

使用建議

  • 需要熟悉 Riverpod
  • 可能為簡單遊戲增加開銷
  • 需要正確設定以相容熱重載
  • 僅限火焰項目
  • 依賴於穩定的 Riverpod 版本

原始 README

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

Flutter favorite

flame

A Flutter-based game engine.


Documentation

The full documentation for Flame can be found on docs.flame-engine.org.

To change the version of the documentation, use the version selector noted with version: in the top of the page.

Note: The documentation that resides in the main branch is newer than the released documentation on the docs website.

Other useful links:

  • The official Flame site.
  • Examples of most features which can be tried out from your browser.
    • To access the code for each example, press the < > button in the top right corner.
  • Tutorials - Some simple tutorials to get started.
  • API Reference - The generated dartdoc API reference.
  • awesome-flame - A curated list of Tutorials, Games, Libraries and Articles.

Help

There is a Flame community on Blue Fire's Discord server where you can ask any of your Flame related questions.

If you are more comfortable with StackOverflow, you can also create a question there. Add the Flame tag, to make sure that anyone following the tag can help out.

Features

The goal of the Flame Engine is to provide a complete set of out-of-the-way solutions for common problems that games developed with Flutter might share.

Some of the key features provided are:

  • A game loop.
  • A component/object system (FCS).
  • Effects and particles.
  • Collision detection.
  • Gesture and input handling.
  • Images, animations, sprites, and sprite sheets.
  • General utilities to make development easier.

On top of those features, you can augment Flame with bridge packages. Through these libraries, you will be able to access bindings to other packages, including custom Flame components and helpers, in order to make integrations seamless.

Flame officially provides bridge libraries to the following packages:

Sponsors

The Flame Engine's top sponsors:

Invertase

Do you or your company want to sponsor Flame? Check out our OpenCollective page, which is also mentioned in the section below, or contact us on Discord.

Support

The simplest way to show us your support is by giving the project a star! :star:

You can also support us monetarily by donating through OpenCollective:

Through GitHub Sponsors:

Or by becoming a patron on Patreon:

You can also show on your repository that your game is made with Flame by using one of the following badges:

Powered by Flame Powered by Flame Powered by Flame

[![Powered by Flame](https://img.shields.io/badge/Powered%20by-%F0%9F%94%A5-272727.svg)](https://flame-engine.org)
[![Powered by Flame](https://img.shields.io/badge/Powered%20by-%F0%9F%94%A5-272727.svg?style=flat-square)](https://flame-engine.org)
[![Powered by Flame](https://img.shields.io/badge/Powered%20by-%F0%9F%94%A5-272727.svg?style=for-the-badge)](https://flame-engine.org)

Contributing

Have you found a bug or have a suggestion of how to enhance Flame? Open an issue and we will take a look at it as soon as possible.

Do you want to contribute with a PR? PRs are always welcome, just make sure to create it from the correct branch (main) and follow the checklist which will appear when you open the PR.

Also, before you start, make sure to read our Contributing Guide.

For bigger changes, or if in doubt, make sure to talk about your contribution to the team. Either via an issue, GitHub discussion, or reach out to the team either using the Discord server.

Credits

  • The Blue Fire team, who are continuously working on maintaining and improving Flame and its ecosystem.
  • All the friendly contributors and people who are helping out in the community.

所屬分類

依賴

依賴清單 3 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。