Files
Lukas Klingsbo dec04f3335 Work around Flutter bug for ColorEffect and fix broken links (#1178)
* Fix `ColorEffect` Flutter bug and example links

* Remove accidental code

* Fix `ColorEffect` test
2021-12-08 13:19:00 +01:00

51 lines
1.6 KiB
Dart

import 'package:dashbook/dashbook.dart';
import 'package:flame/game.dart';
import '../../commons/commons.dart';
import 'base64_sprite_example.dart';
import 'basic_sprite_example.dart';
import 'sprite_group_example.dart';
import 'spritebatch_example.dart';
import 'spritebatch_load_example.dart';
import 'spritesheet_example.dart';
void addSpritesStories(Dashbook dashbook) {
dashbook.storiesOf('Sprites')
..add(
'Basic Sprite',
(_) => GameWidget(game: BasicSpriteExample()),
codeLink: baseLink('sprites/basic_sprite_example.dart'),
info: BasicSpriteExample.description,
)
..add(
'Base64 Sprite',
(_) => GameWidget(game: Base64SpriteExample()),
codeLink: baseLink('sprites/base64_sprite_example.dart'),
info: Base64SpriteExample.description,
)
..add(
'Spritesheet',
(_) => GameWidget(game: SpritesheetExample()),
codeLink: baseLink('sprites/spritesheet_example.dart'),
info: SpritesheetExample.description,
)
..add(
'Spritebatch',
(_) => GameWidget(game: SpritebatchExample()),
codeLink: baseLink('sprites/spritebatch_example.dart'),
info: SpritebatchExample.description,
)
..add(
'Spritebatch Auto Load',
(_) => GameWidget(game: SpritebatchLoadExample()),
codeLink: baseLink('sprites/spritebatch_load_example.dart'),
info: SpritebatchLoadExample.description,
)
..add(
'SpriteGroup',
(_) => GameWidget(game: SpriteGroupExample()),
codeLink: baseLink('sprites/sprite_group_example.dart'),
info: SpriteGroupExample.description,
);
}