just_game_engine
2.0.0, released 2 weeks ago by justunknown.com
A 2D and 3D game engine for Flutter featuring ECS, physics, audio, and level maps.
What it does
Provides a comprehensive game engine built for Flutter that supports entities, components, and systems (ECS), 2D and 3D graphics, physics via Box2D and Jolt, audio, input actions, level maps, and particles. Games run inside an ordinary Flutter widget.
AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to build a 2D or 3D game inside Flutter.
- You need an ECS architecture with physics, audio, and asset-loaded levels.
Skip it when
- You are building a standard non-game Flutter UI application.
- You need guaranteed iOS and macOS stability out of the box without verifying platform builds.
Strengths
- Full-featured game engine with 2D and 3D physics, cameras, and audio.
- Scene loading from JSON and support for Tiled maps.
- Draws directly inside an ordinary Flutter widget.
Weaknesses
- Linux, iOS, and macOS platforms are untested and unverified.
- Requires specific pinned versions of Flutter and strict dependency locking.
Setup
- Kind
- Flutter widgets
- Effort
- High
- Code generation
- No
- Direct dependencies
- 14
Requires specific Flutter minor releases (e.g. Flutter 3.47.1+), manual platform dependency installations for audio on Linux, and specific environment configuration.
import 'package:flutter/material.dart';
import 'package:just_game_engine/just_game_engine.dart';
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
final engine = Engine(
config: const EngineConfig(defaultSystems: DefaultSystems.all),
);
await engine.initialize();
engine.start();
runApp(MaterialApp(home: GameWidget(engine: engine)));
}Alternatives
Packages that do the same job and could replace just_game_engine.
- flame
A more mature and widely used 2D game engine for Flutter with a large ecosystem of plugins.
95Compare - flutter_scene
If you primarily need 3D rendering in Flutter rather than a full ECS game engine.
93Compare
Works with
Packages commonly used together with just_game_engine: ones it builds on, ones built on it, and its own family.