mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-01 10:38:17 +08:00
* Fix `ColorEffect` Flutter bug and example links * Remove accidental code * Fix `ColorEffect` test
51 lines
1.6 KiB
Dart
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,
|
|
);
|
|
}
|