mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-01 19:12:31 +08:00
Migrate examples back, change to monorepo (#701)
This commit is contained in:
26
examples/lib/stories/rendering/rendering.dart
Normal file
26
examples/lib/stories/rendering/rendering.dart
Normal file
@ -0,0 +1,26 @@
|
||||
import 'package:dashbook/dashbook.dart';
|
||||
import 'package:flame/game.dart';
|
||||
|
||||
import '../../commons/commons.dart';
|
||||
import 'flip.dart';
|
||||
import 'layers.dart';
|
||||
import 'text.dart';
|
||||
|
||||
void addRenderingStories(Dashbook dashbook) {
|
||||
dashbook.storiesOf('Rendering')
|
||||
..add(
|
||||
'Text',
|
||||
(_) => GameWidget(game: TextGame()),
|
||||
codeLink: baseLink('rendering/text.dart'),
|
||||
)
|
||||
..add(
|
||||
'Flip Sprite',
|
||||
(_) => GameWidget(game: FlipSpriteGame()),
|
||||
codeLink: baseLink('rendering/flip.dart'),
|
||||
)
|
||||
..add(
|
||||
'Layers',
|
||||
(_) => GameWidget(game: LayerGame()),
|
||||
codeLink: baseLink('rendering/layers.dart'),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user