mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-01 19:12:31 +08:00
feat: Bump to Flutter 2.10.0 (#1617)
This commit is contained in:
@ -26,9 +26,9 @@ class ExampleGame extends OxygenGame {
|
||||
world.registerSystem(SpriteSystem());
|
||||
world.registerSystem(KawabungaSystem());
|
||||
|
||||
world.registerComponent<TimerComponent, double>(() => TimerComponent());
|
||||
world.registerComponent<TimerComponent, double>(TimerComponent.new);
|
||||
world.registerComponent<VelocityComponent, Vector2>(
|
||||
() => VelocityComponent(),
|
||||
VelocityComponent.new,
|
||||
);
|
||||
|
||||
final random = Random();
|
||||
|
||||
Reference in New Issue
Block a user