mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-01 10:38:17 +08:00
22 lines
786 B
Dart
22 lines
786 B
Dart
import 'package:dashbook/dashbook.dart';
|
|
import 'package:examples/commons/commons.dart';
|
|
import 'package:examples/stories/experimental/camera_follow_and_world_bounds.dart';
|
|
import 'package:examples/stories/experimental/shapes.dart';
|
|
import 'package:flame/game.dart';
|
|
|
|
void addExperimentalStories(Dashbook dashbook) {
|
|
dashbook.storiesOf('Experimental')
|
|
..add(
|
|
'Shapes',
|
|
(_) => GameWidget(game: ShapesExample()),
|
|
codeLink: baseLink('experimental/shapes.dart'),
|
|
info: ShapesExample.description,
|
|
)
|
|
..add(
|
|
'Follow and World bounds',
|
|
(_) => GameWidget(game: CameraFollowAndWorldBoundsExample()),
|
|
codeLink: baseLink('experimental/camera_follow_and_world_bounds.dart'),
|
|
info: CameraFollowAndWorldBoundsExample.description,
|
|
);
|
|
}
|