flame_camera_tools
6.0.0, released 8 weeks ago by bszarlej.de
Tools for smooth following, camera shake, zooming, and rotating in Flame games.
What it does
Enhances Flame game camera functionality with extensions for smooth component following, camera shaking, zooming, rotation, and effect sequencing. It also provides group following and custom dead zones.
AI-written summary of version 6.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are building a 2D game using Flame and need advanced camera behaviors.
- You need camera shaking, smooth component chasing, or multi-target group follow.
- You want to apply shake effects or chase behaviors to non-camera components like enemies or pets.
Skip it when
- Your project does not use the Flame game engine.
- You need 3D camera controls.
Strengths
- Easy-to-use API for common camera tasks like zoom, rotate, and shake.
- Supports group follow with automatic zoom-to-fit for local multiplayer.
- Behaviors can be attached to any component, not just the camera.
Weaknesses
- Speed-based effect controllers are not supported for camera shakes.
- Strictly tied to the Flame game engine.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Requires an existing Flame game project.
final camera = game.camera;
final chase = camera.chase(component, stiffness: 0.5);
await camera.shake(10.0, LinearEffectController(0.5));Alternatives
Packages that do the same job and could replace flame_camera_tools.
- forge2d
A 2D physics engine for Dart, binding to the native Box2D v3 library.
91Compare - flame_bloc
Integration for the Bloc state management library to Flame games.
85Compare - flame_behaviors
Applies separation of concerns to Flame game logic via Entities and Behaviors.
80Compare - jenny
YarnSpinner narrative game tools equivalent for Dart and Flame.
69Compare
Works with
Packages commonly used together with flame_camera_tools: ones it builds on, ones built on it, and its own family.