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

bonfire のカバー
パッケージ詳細v4.1.0

bonfire

(RPG Maker) Flame を使って、より簡単に RPG 風やそれに類するゲームを作成

AndroidiOSmacOSWindowsLinux
30日間ダウンロード
3780
いいね数
514
Pub ポイント
130

パッケージをインストール

flutter pub add bonfire

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Bonfire は、Flutter のゲームエンジンである Flame を使用して、RPGスタイルのゲームを作成するのを簡素化することを目的とした Flutter/Dart パッケージです。キャラクターの移動、戦闘、会話システム、マップ管理といった一般的な RPG メカニクスに対して、高レベルな抽象化を提供しています。開発者を意識して設計されており、タイルマップ、NPC、プレイヤーコントローラーなどの即時利用可能なコンポーネントを提供することで、ボイラープレートコードを削減し、プロトタイピングを加速します。最小限のセットアップで 2D ターンベースまたはリアルタイム RPG を構築したいインディー開発者や趣味の開発者に最適です。

用途

  • 2D RPGゲームの開発
  • ターンベースまたはリアルタイムの戦闘システムを作成する
  • インタラクティブな物語中心のゲームを作成する
  • ゲームメカニクスを素早くプロトタイピングする
  • タイルマップベースの世界の実装

主な機能

  • Flameゲームエンジンに基づいて構築されています
  • 事前定義されたRPGコンポーネント(NPC、プレイヤー、マップ)
  • 会話およびクエストシステムのサポート
  • Flame のレンダリングおよび物理と簡単に統合
  • クロスプラットフォームデプロイメントサポート

適している対象

  • インディーゲーム開発者
  • RPG愛好家
  • ゲーム開発初心者のFlutter開発者
  • 迅速な反復を求めるプロトタイパー
  • 2D スクロールゲームやタイルマップゲームを開発している人

注意事項

  • Flame に精通している必要があります
  • 2Dゲームタイプに制限
  • RPGに最も適しているが、他のジャンルには向かない
  • 複雑なメカニクスには追加のカスタマイズが必要になる場合があります
  • Flameの安定性および更新に依存します

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Powered by Flame Flutter MIT Licence pub package GitHub stars pub points Telegram

bonfire

Bonfire

Build RPG-style games (and beyond) with the power of FlameEngine! 🎮

📚 Documentation

Complete documentation with examples: docs.page/rafaelbarbosatec/bonfire

✨ Features

  • 🧙 RPG-ready components — Player, Enemy, Ally, Npc, GameDecoration and a complete GameComponent API.
  • 🗺️ Maps — Tiled map support, multi-map worlds, custom/matrix maps, collisions and portals.
  • 🕹️ Input — Joystick, keyboard and mouse controls with 8-direction movement.
  • ⚔️ Combat — melee and ranged attacks, projectiles, damage feedback and life bars.
  • 🧠 Behaviors & AI — behavior trees (BSelector, BParallel, BOnce), pathfinding, random movement, sensors and vision.
  • 🎨 Effects & polish — particles, lighting, shaders, camera effects, parallax, color filters and force physics.
  • 🖥️ Game interface — life bars, dialogs, text effects, minimap and HUD components.
  • 📱 Multi-platform — mobile, desktop and web with Flame.

🎮 Bonfire 4.0 — what's new

Version 4.0 is a major restructuring of the API surface, focused on developer experience when building complex game components.

In previous versions each mixin added methods and fields directly to the component. With several mixins (Movement, Jumper, Sensor, PathFinding, Pushable, RandomMovement...), the component namespace became crowded and autocomplete less useful.

Starting with 4.0, mixins follow a consistent WithFeature + feature.{resource} pattern:

class MyEnemy extends SimpleEnemy
    with Movement, WithCollision, WithRandomMovement, WithPathFinding {
  @override
  void update(double dt) {
    super.update(dt);
    randomMovement.update(dt, speed: 20, maxDistance: 64);
  }
}

Highlights of the release:

  • API-first mixins — WithJumper (jumper), WithSensor (sensor), WithRandomMovement (randomMovement), WithPathFinding (pathFinding), WithCollision (collision), WithAttack (attack), WithVision (vision), WithLighting (lighting), WithShader (shader), WithUtil (util), plus WithFollower, WithPushable, WithFlipRender, WithMovePerCell, WithAssetsLoader and WithLifeBar.
  • Simplified, velocity-based Movement — the only mixin that keeps its direct access style, but was rewritten: direction/hDirection/vDirection now reflect the current velocity, stop()/idle() replace the old stop helpers and legacy members (lastDirection, stopMove, setZeroVelocity, moveFromAngle, *Once, acceleration...) were removed.
  • Event-driven collision — WithCollision exposes collision.onBlockMovementListener(...) and a bodyType API instead of the old BlockMovementCollision overrides.
  • Direction animations — SimplePlayer/SimpleEnemy drive their 8-direction sprite animations (SimpleDirectionAnimation) from direction automatically.
  • Behavior trees — brand-new behavior system (BSelector, BParallel, BOnce) with debugging support.
  • Better intervals — IntervalTick replaces the old InternalChecker/checkInterval.
  • Bug fixes & correctness — exact diagonal normalization (sqrt(2)/2), forces default to no drag, no double damage on FlyingAttackGameObject, modern Color API (withValues).
  • Upgraded to Flame ^1.38.0, with example/ and awesome/ updated to the new APIs and analyzed by CI.

Migrating from Bonfire 3.x? Read the Migration Guide from 3.x to 4.0 — it has the full breaking-change tables. Every pre-release change is also listed in the CHANGELOG.

🚀 Getting started

Add Bonfire to your pubspec.yaml:

dependencies:
  bonfire: ^4.0.0

Then create your first map + character and run it inside a BonfireWidget. The quickest way to see everything working is to open the bundled example app — a complete, runnable project with maps, players, enemies, attacks, life bars and interface.

Run it:

cd example
flutter pub get
flutter run

Bonfire is ideal for building games from the following perspectives:

Test our online DEMO or Download APK.

📚 Documentation

bonfire-engine.github.io

🧩 Bonfire Awesome

Link

If you build a game using Bonfire, you can open a PR to add your game here.

Useful packages

Name Link
bonfire_bloc pub package
bonfire_spine pub package

Encourage my work

Credits

  • The entire FlameEngine team.
  • And thanks to everyone who contributes and has already contributed.

Contribution

If you find any errors or want to add improvements, you can open an issue or develop the fix and open a pull request. Thank you for your cooperation!

Documentation repository

カテゴリー

依存関係

依存関係一覧 4 件

ソースリポジトリ

このパッケージを使用しているプロジェクト