bonfire
4.1.3, released 4 days ago by rafaelbarbosatec.com
Create RPG-style games and similar 2D games using Flame engine.
What it does
Bonfire is an RPG maker built on top of Flame. It provides ready-to-use components such as Player, Enemy, Ally, and NPC, along with Tiled map support, collisions, input controls, combat mechanics, and behavior trees.
AI-written summary of version 4.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to build a 2D RPG, top-down, or similar style game in Flutter.
- You want to leverage Flame engine with higher-level RPG abstractions like paths, quests, and dialogues.
Skip it when
- You are building a standard non-game business application or UI-heavy app.
- You need a 3D game engine.
Strengths
- Comprehensive RPG-ready components and mixins (collision, attack, movement, sensors).
- Tiled map support and pathfinding built-in.
- Actively maintained with a structured API-first architecture.
Weaknesses
- Steep learning curve if you are unfamiliar with game development or Flame.
- Major version updates can introduce breaking changes to the API surface.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 4
Add the dependency to pubspec.yaml and initialize within a BonfireWidget or Flame game loop.
class MyEnemy extends SimpleEnemy
with Movement, WithCollision, WithRandomMovement, WithPathFinding {
@override
void update(double dt) {
super.update(dt);
randomMovement.update(dt, speed: 20, maxDistance: 64);
}
}Alternatives
Packages that do the same job and could replace bonfire.
- flame_3d
Experimental 3D support for the Flame Game Engine using Flutter GPU.
78Compare - forge2d
A 2D physics engine for Dart, binding to the native Box2D v3 library.
91Compare - flame_svg
Adds SVG rendering support for the Flame game engine
84Compare - flame_bloc
Integration for the Bloc state management library to Flame games.
85Compare
Works with
Packages commonly used together with bonfire: ones it builds on, ones built on it, and its own family.