refactor: dinowalls sandbox refactor

pull/208/head
RuiAlonso 3 years ago
parent 2022151305
commit a4196e39ec

@ -5,10 +5,10 @@ import 'package:pinball_components/pinball_components.dart';
import 'package:pinball_flame/pinball_flame.dart';
import 'package:sandbox/stories/ball/basic_ball_game.dart';
class DinoWallGame extends BasicBallGame {
class DinoWallGame extends BallGame {
DinoWallGame() : super();
static const info = '''
static const description = '''
Shows how DinoWalls are rendered.
- Activate the "trace" parameter to overlay the body.

@ -1,15 +1,11 @@
import 'package:dashbook/dashbook.dart';
import 'package:flame/game.dart';
import 'package:sandbox/common/common.dart';
import 'package:sandbox/stories/dino_wall/dino_wall_game.dart';
void addDinoWallStories(Dashbook dashbook) {
dashbook.storiesOf('DinoWall').add(
'Basic',
(context) => GameWidget(
game: DinoWallGame()..trace = context.boolProperty('Trace', true),
),
codeLink: buildSourceLink('dino_wall/basic.dart'),
info: DinoWallGame.info,
dashbook.storiesOf('DinoWall').addGame(
title: 'Traced',
description: DinoWallGame.description,
gameBuilder: (_) => DinoWallGame(),
);
}

Loading…
Cancel
Save