This folder documents all public engine modules exported by lib/gamengine.dart.
import 'package:gamengine/gamengine.dart';
final world = World();
final engine = Engine(world: world);
engine.addSystem(
PhysicsSystem(world: world),
500,
);
engine.update(1 / 60);- Entities are lightweight component containers.
- Systems hold behavior and run by priority (higher runs first).
- Use persistence for save/load and optional system snapshots.