refactor: renamed stories

pull/381/head
alestiago 3 years ago
parent c2e607abe6
commit aeaa198a8a

@ -4,8 +4,8 @@ import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:pinball_components/pinball_components.dart'; import 'package:pinball_components/pinball_components.dart';
import 'package:sandbox/stories/ball/basic_ball_game.dart'; import 'package:sandbox/stories/ball/basic_ball_game.dart';
class SmallDashBumperAGame extends BallGame { class DashBumperAGame extends BallGame {
SmallDashBumperAGame() DashBumperAGame()
: super( : super(
imagesFileNames: [ imagesFileNames: [
Assets.images.dash.bumper.a.active.keyName, Assets.images.dash.bumper.a.active.keyName,
@ -14,7 +14,7 @@ class SmallDashBumperAGame extends BallGame {
); );
static const description = ''' static const description = '''
Shows how a SmallDashBumper ("a") is rendered. Shows how the "a: DashBumper is rendered.
- Activate the "trace" parameter to overlay the body. - Activate the "trace" parameter to overlay the body.
'''; ''';

@ -4,8 +4,8 @@ import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:pinball_components/pinball_components.dart'; import 'package:pinball_components/pinball_components.dart';
import 'package:sandbox/stories/ball/basic_ball_game.dart'; import 'package:sandbox/stories/ball/basic_ball_game.dart';
class SmallDashBumperBGame extends BallGame { class DashBumperBGame extends BallGame {
SmallDashBumperBGame() DashBumperBGame()
: super( : super(
imagesFileNames: [ imagesFileNames: [
Assets.images.dash.bumper.b.active.keyName, Assets.images.dash.bumper.b.active.keyName,
@ -14,7 +14,7 @@ class SmallDashBumperBGame extends BallGame {
); );
static const description = ''' static const description = '''
Shows how a SmallDashBumper ("b") is rendered. Shows how the "b" DashBumper is rendered.
- Activate the "trace" parameter to overlay the body. - Activate the "trace" parameter to overlay the body.
'''; ''';

@ -4,8 +4,8 @@ import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:pinball_components/pinball_components.dart'; import 'package:pinball_components/pinball_components.dart';
import 'package:sandbox/stories/ball/basic_ball_game.dart'; import 'package:sandbox/stories/ball/basic_ball_game.dart';
class BigDashBumperGame extends BallGame { class DashBumperMainGame extends BallGame {
BigDashBumperGame() DashBumperMainGame()
: super( : super(
imagesFileNames: [ imagesFileNames: [
Assets.images.dash.bumper.main.active.keyName, Assets.images.dash.bumper.main.active.keyName,
@ -14,7 +14,7 @@ class BigDashBumperGame extends BallGame {
); );
static const description = ''' static const description = '''
Shows how a BigDashBumper is rendered. Shows how the "main" DashBumper is rendered.
- Activate the "trace" parameter to overlay the body. - Activate the "trace" parameter to overlay the body.
'''; ''';

@ -1,9 +1,9 @@
import 'package:dashbook/dashbook.dart'; import 'package:dashbook/dashbook.dart';
import 'package:sandbox/common/common.dart'; import 'package:sandbox/common/common.dart';
import 'package:sandbox/stories/flutter_forest/big_dash_bumper_game.dart'; import 'package:sandbox/stories/flutter_forest/dash_bumper_a_game.dart';
import 'package:sandbox/stories/flutter_forest/dash_bumper_b_game.dart';
import 'package:sandbox/stories/flutter_forest/dash_bumper_main_game.dart';
import 'package:sandbox/stories/flutter_forest/signpost_game.dart'; import 'package:sandbox/stories/flutter_forest/signpost_game.dart';
import 'package:sandbox/stories/flutter_forest/small_dash_bumper_a_game.dart';
import 'package:sandbox/stories/flutter_forest/small_dash_bumper_b_game.dart';
void addFlutterForestStories(Dashbook dashbook) { void addFlutterForestStories(Dashbook dashbook) {
dashbook.storiesOf('Flutter Forest') dashbook.storiesOf('Flutter Forest')
@ -14,17 +14,17 @@ void addFlutterForestStories(Dashbook dashbook) {
) )
..addGame( ..addGame(
title: 'Big Dash Bumper', title: 'Big Dash Bumper',
description: BigDashBumperGame.description, description: DashBumperMainGame.description,
gameBuilder: (_) => BigDashBumperGame(), gameBuilder: (_) => DashBumperMainGame(),
) )
..addGame( ..addGame(
title: 'Small Dash Bumper A', title: 'Small Dash Bumper A',
description: SmallDashBumperAGame.description, description: DashBumperAGame.description,
gameBuilder: (_) => SmallDashBumperAGame(), gameBuilder: (_) => DashBumperAGame(),
) )
..addGame( ..addGame(
title: 'Small Dash Bumper B', title: 'Small Dash Bumper B',
description: SmallDashBumperBGame.description, description: DashBumperBGame.description,
gameBuilder: (_) => SmallDashBumperBGame(), gameBuilder: (_) => DashBumperBGame(),
); );
} }

Loading…
Cancel
Save