bonfire 4.0.0-beta.10 copy "bonfire: ^4.0.0-beta.10" to clipboard
bonfire: ^4.0.0-beta.10 copied to clipboard

(RPG maker) Create RPG-style or similar games more simply with Flame.

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

bonfire

Bonfire #

Build RPG games and similar with the power of FlameEngine!

Bonfire 4.0 #

Version 4.0 is a major restructuring of the mixin API surface. The main motivation is to improve the 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, etc.), 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);
  }
}

This groups related functionality under a named API and makes the codebase easier to navigate and maintain.

Migrating from Bonfire 3.x? See the Migration Guide from 3.x to 4.0.

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.

Build recomendations #

WEB #

Use this command: flutter build web --web-renderer=canvaskit

Android #

Disable Impeller adding this code in your AndroidManifest.xml under the

<meta-data
    android:name="io.flutter.embedding.android.EnableImpeller"
    android:value="false" />

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 a issue or develop the fix and open a pull request. Thank you for your cooperation!

Documentation repository

511
likes
140
points
3.22k
downloads

Documentation

API reference

Publisher

verified publisherrafaelbarbosatec.com

Weekly Downloads

(RPG maker) Create RPG-style or similar games more simply with Flame.

Homepage
Repository (GitHub)
View/report issues

Topics

#bonfire #rpg #flame #game-engine #games

License

MIT (license)

Dependencies

a_star_algorithm, flame, flutter, http, tiledjsonreader

More

Packages that depend on bonfire