Files
flame/examples/lib/stories/animations/animations.dart
2022-10-29 13:49:03 -04:00

36 lines
1.3 KiB
Dart

import 'package:dashbook/dashbook.dart';
import 'package:examples/commons/commons.dart';
import 'package:examples/stories/animations/animation_group_example.dart';
import 'package:examples/stories/animations/aseprite_example.dart';
import 'package:examples/stories/animations/basic_animation_example.dart';
import 'package:examples/stories/animations/benchmark_example.dart';
import 'package:flame/game.dart';
void addAnimationStories(Dashbook dashbook) {
dashbook.storiesOf('Animations')
..add(
'Basic Animations',
(_) => GameWidget(game: BasicAnimationsExample()),
codeLink: baseLink('animations/basic_animation_example.dart'),
info: BasicAnimationsExample.description,
)
..add(
'Group animation',
(_) => GameWidget(game: AnimationGroupExample()),
codeLink: baseLink('animations/animation_group_example.dart'),
info: AnimationGroupExample.description,
)
..add(
'Aseprite',
(_) => GameWidget(game: AsepriteExample()),
codeLink: baseLink('animations/aseprite_example.dart'),
info: AsepriteExample.description,
)
..add(
'Benchmark',
(_) => GameWidget(game: BenchmarkExample()),
codeLink: baseLink('animations/benchmark_example.dart'),
info: BenchmarkExample.description,
);
}