mirror of
https://github.com/flame-engine/flame.git
synced 2025-10-30 00:17:20 +08:00
* 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
38 lines
1.2 KiB
Dart
38 lines
1.2 KiB
Dart
import 'package:dashbook/dashbook.dart';
|
|
import 'package:flame/game.dart';
|
|
|
|
import '../../commons/commons.dart';
|
|
import 'circles_example.dart';
|
|
import 'collidable_animation_example.dart';
|
|
import 'multiple_shapes_example.dart';
|
|
import 'simple_shapes_example.dart';
|
|
|
|
void addCollisionDetectionStories(Dashbook dashbook) {
|
|
dashbook.storiesOf('Collision Detection')
|
|
..add(
|
|
'Collidable AnimationComponent',
|
|
(_) => GameWidget(game: CollidableAnimationExample()),
|
|
codeLink:
|
|
baseLink('collision_detection/collidable_animation_example.dart'),
|
|
info: CollidableAnimationExample.description,
|
|
)
|
|
..add(
|
|
'Circles',
|
|
(_) => GameWidget(game: CirclesExample()),
|
|
codeLink: baseLink('collision_detection/circles_example.dart'),
|
|
info: CirclesExample.description,
|
|
)
|
|
..add(
|
|
'Multiple shapes',
|
|
(_) => GameWidget(game: MultipleShapesExample()),
|
|
codeLink: baseLink('collision_detection/multiple_shapes_example.dart'),
|
|
info: MultipleShapesExample.description,
|
|
)
|
|
..add(
|
|
'Simple Shapes',
|
|
(_) => GameWidget(game: SimpleShapesExample()),
|
|
codeLink: baseLink('collision_detection/simple_shapes_example.dart'),
|
|
info: SimpleShapesExample.description,
|
|
);
|
|
}
|