feat!: Add CameraComponent to FlameGame (#2740)

This PR adds the `CameraComponent` and a `World` by default to the
FlameGame.
This commit is contained in:
Lukas Klingsbo
2023-09-18 21:06:37 +02:00
committed by GitHub
parent 5be6fc8cae
commit 7c2f400076
89 changed files with 1107 additions and 821 deletions

View File

@ -0,0 +1,13 @@
import 'package:dashbook/dashbook.dart';
import 'package:examples/commons/commons.dart';
import 'package:examples/stories/structure/levels.dart';
import 'package:flame/game.dart';
void addStructureStories(Dashbook dashbook) {
dashbook.storiesOf('Structure').add(
'Levels',
(_) => GameWidget(game: LevelsExample()),
info: LevelsExample.description,
codeLink: baseLink('structure/levels.dart'),
);
}