パッケージ、リポジトリ、アプリカテゴリを検索

GitHub リポジトリVeryGoodOpenSource/flame_behaviors

flame_behaviors

Flame用の振る舞いコンポジションパターンの実装。Very Good Ventures 🦄によって構築されました

flame_behaviors のプロジェクト画像
スター
70
フォーク
4
最終プッシュ(UTC)
2025/10/21
プロジェクト状態
アーカイブ済み

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

Flame Behaviors

ci coverage pub package style: very good analysis License: MIT Powered by Flame

Note: This repository has been transferred to https://github.com/flame-engine/flame. For more information see https://github.com/VeryGoodOpenSource/flame_behaviors/issues/99

Flame Behaviors applies separation of concerns to game logic in the form of Entities and Behaviors.

Developed with 💙 and 🔥 by Very Good Ventures 🦄


Flame Behaviors was created to make it easier to create scalable, testable games with a well-defined structure. It applies the separation of concerns to the game logic, in the form of Entities and Behaviors.

Imagine you want to build an old school Pong game. At its very core there are two objects: a paddle and a ball. If you have a look at the paddle, you could say its game logic is: move up and move down. The ball has the simple game logic of: on collision with a paddle reverse the movement direction.

These objects, paddles and balls, are what we call entities and the game logics we just described are their behaviors. By applying these behaviors to each individual entity we get the core gameplay loop of Pong: hitting balls with our paddles until we win.

By defining what kind of entities our game has and describing what type of behaviors they may hold, we can easily turn a gameplay idea into a structured game that is both testable and scalable.


Documentation 📝

View the full documentation here.

Packages 📦

Package Pub
flame_behaviors pub package
flame_steering_behaviors pub package

Quick Start 🚀

Installing 🧑‍💻

In order to use Flame Behaviors you must have the Flame package added to your project.

Adding the Package
# 📦 Add the flame_behaviors package from pub.dev to your project
flutter pub add flame_behaviors

Creating Entities and Behaviors

Use Flame Behaviors to define your game entities and how they behave. Or follow the Introduction to Flame Behaviors article to learn how to use the package!

Very Good Open Source GitHub avatar
GitHub 作者

Very Good Open Source ↗

Open source code from Very Good Ventures (@VGVentures)

言語DartShell

カテゴリー

プロジェクトに合うリポジトリを選ぶには?

用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。

  1. 名前・作者・説明で検索し、技術トピックで絞り込みます。
  2. スター、フォーク、最近のプッシュを比較します。スターは関心の目安であり、品質の保証ではありません。
  3. 利用前に GitHub で README、ライセンス、Issues を確認します。

情報源と管理

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗