Files
Lukas Klingsbo 8b132d7c0b Unify examples structure (#1118)
* Animations, CameraAndViewport, CollisionDetection and Components unified

* Added descriptions to effects

* Rename input games

* Unify input stories

* Add info to parallax section

* Added descriptions to the rendering examples

* Add descriptions to the sprites directory

* Fix utils and rendering section

* Add descriptions to the widgets section

* Delete directory that rebase brought back

* Unify game names

* Added some styleguide docs for examples

* Fix analyze issues

* All files should have _example as suffix

* Made the FollowComponentExample a bit easier to understand

* Change priority of ember
2021-11-19 14:28:04 +01:00

92 lines
3.0 KiB
Dart

import 'package:dashbook/dashbook.dart';
import 'package:flame/game.dart';
import '../../commons/commons.dart';
import 'color_effect_example.dart';
import 'combined_effect_example.dart';
import 'infinite_effect_example.dart';
import 'move_effect_example.dart';
import 'old_move_effect_example.dart';
import 'old_rotate_effect_example.dart';
import 'opacity_effect_example.dart';
import 'remove_effect_example.dart';
import 'rotate_effect_example.dart';
import 'scale_effect_example.dart';
import 'sequence_effect_example.dart';
import 'size_effect_example.dart';
void addEffectsStories(Dashbook dashbook) {
dashbook.storiesOf('Effects')
..add(
'Size Effect',
(_) => GameWidget(game: SizeEffectExample()),
codeLink: baseLink('effects/size_effect_example.dart'),
info: SizeEffectExample.description,
)
..add(
'Scale Effect',
(_) => GameWidget(game: ScaleEffectExample()),
codeLink: baseLink('effects/scale_effect_example.dart'),
info: ScaleEffectExample.description,
)
..add(
'Move Effect',
(_) => GameWidget(game: OldMoveEffectExample()),
codeLink: baseLink('effects/old_move_effect_example.dart'),
info: OldMoveEffectExample.description,
)
..add(
'Rotate Effect',
(_) => GameWidget(game: OldRotateEffectExample()),
codeLink: baseLink('effects/old_rotate_effect_example.dart'),
info: OldRotateEffectExample.description,
)
..add(
'Sequence Effect',
(_) => GameWidget(game: SequenceEffectExample()),
codeLink: baseLink('effects/sequence_effect_example.dart'),
info: SequenceEffectExample.description,
)
..add(
'Combined Effect',
(_) => GameWidget(game: CombinedEffectExample()),
codeLink: baseLink('effects/combined_effect_example.dart'),
info: CombinedEffectExample.description,
)
..add(
'Infinite Effect',
(_) => GameWidget(game: InfiniteEffectExample()),
codeLink: baseLink('effects/infinite_effect_example.dart'),
info: InfiniteEffectExample.description,
)
..add(
'Opacity Effect',
(_) => GameWidget(game: OpacityEffectExample()),
codeLink: baseLink('effects/opacity_effect_example.dart'),
info: OpacityEffectExample.description,
)
..add(
'Color Effect',
(_) => GameWidget(game: ColorEffectExample()),
codeLink: baseLink('effects/color_effect_example.dart'),
)
..add(
'Move Effect (v2)',
(_) => GameWidget(game: MoveEffectExample()),
codeLink: baseLink('effects/move_effect_example.dart'),
info: MoveEffectExample.description,
)
..add(
'Rotate Effect (v2)',
(_) => GameWidget(game: RotateEffectExample()),
codeLink: baseLink('effects/rotate_effect_example.dart'),
info: RotateEffectExample.description,
)
..add(
'Remove Effect',
(_) => GameWidget(game: RemoveEffectExample()),
codeLink: baseLink('effects/remove_effect_example.dart'),
info: RemoveEffectExample.description,
);
}