mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-01 10:38:17 +08:00
39 lines
1.0 KiB
Dart
39 lines
1.0 KiB
Dart
import 'package:dashbook/dashbook.dart';
|
|
import 'package:flame/game.dart';
|
|
|
|
import '../../commons/commons.dart';
|
|
import 'camera_and_viewport.dart';
|
|
import 'nine_tile_box.dart';
|
|
import 'particles.dart';
|
|
import 'timer.dart';
|
|
import 'timer_component.dart';
|
|
|
|
void addUtilsStories(Dashbook dashbook) {
|
|
dashbook.storiesOf('Utils')
|
|
..add(
|
|
'Nine Tile Box',
|
|
(_) => GameWidget(game: NineTileBoxGame()),
|
|
codeLink: baseLink('utils/nine_tile_box.dart'),
|
|
)
|
|
..add(
|
|
'Timer',
|
|
(_) => GameWidget(game: TimerGame()),
|
|
codeLink: baseLink('utils/timer.dart'),
|
|
)
|
|
..add(
|
|
'Timer Component',
|
|
(_) => GameWidget(game: TimerComponentGame()),
|
|
codeLink: baseLink('utils/timer_component.dart'),
|
|
)
|
|
..add(
|
|
'Particles',
|
|
(_) => GameWidget(game: ParticlesGame()),
|
|
codeLink: baseLink('utils/particles.dart'),
|
|
)
|
|
..add(
|
|
'Camera & Viewport',
|
|
(_) => GameWidget(game: CameraAndViewportGame()),
|
|
codeLink: baseLink('utils/camera_and_viewport.dart'),
|
|
);
|
|
}
|