refactor(sanbox): rephrased descriptions

pull/141/head
alestiago 4 years ago
parent f6816e15b6
commit 052ec65e24

@ -4,7 +4,11 @@ import 'package:pinball_components/pinball_components.dart';
import 'package:sandbox/common/common.dart'; import 'package:sandbox/common/common.dart';
class BallBoosterExample extends LineGame { class BallBoosterExample extends LineGame {
static const info = ''; static const info = '''
Shows how a Ball with a boost works.
Drag to launch a boosted Ball.
''';
@override @override
void onLine(Vector2 line) { void onLine(Vector2 line) {

@ -7,7 +7,7 @@ class BasicBallGame extends BasicGame with TapDetector {
BasicBallGame({required this.color}); BasicBallGame({required this.color});
static const info = ''' static const info = '''
Basic example of how a Ball works. Shows how a Ball works.
Tap anywhere on the screen to spawn a ball into the game. Tap anywhere on the screen to spawn a ball into the game.
'''; ''';

@ -3,9 +3,7 @@ import 'package:pinball_components/pinball_components.dart';
import 'package:sandbox/common/common.dart'; import 'package:sandbox/common/common.dart';
class BasicBaseboardGame extends BasicGame { class BasicBaseboardGame extends BasicGame {
static const info = ''' static const info = 'Shows how a Baseboard works.';
Basic example of how a Baseboard works.
''';
@override @override
Future<void> onLoad() async { Future<void> onLoad() async {

@ -2,9 +2,7 @@ import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:pinball_components/pinball_components.dart'; import 'package:pinball_components/pinball_components.dart';
class ChromeDinoGame extends Forge2DGame { class ChromeDinoGame extends Forge2DGame {
static const info = ''' static const info = 'Shows how a ChromeDino is rendered.';
Shows how a ChromeDino is rendered.
''';
@override @override
Future<void> onLoad() async { Future<void> onLoad() async {

@ -13,7 +13,7 @@ class BigDashNestBumperGame extends BasicBallGame {
static const info = ''' static const info = '''
Shows how a BigDashNestBumper is rendered. Shows how a BigDashNestBumper is rendered.
Activate the trace to see the body shape. Activate the "trace" parameter to overlay the body.
'''; ''';
final bool trace; final bool trace;

@ -3,8 +3,11 @@ import 'package:pinball_components/pinball_components.dart';
import 'package:sandbox/common/common.dart'; import 'package:sandbox/common/common.dart';
class FireEffectExample extends LineGame { class FireEffectExample extends LineGame {
static const info = 'Demonstrate the fire trail effect ' static const info = '''
'drag a line to define the trail direction'; Shows how the FireEffect renders.
Drag a line to define the trail direction.
''';
@override @override
void onLine(Vector2 line) { void onLine(Vector2 line) {

@ -8,9 +8,7 @@ import 'package:sandbox/stories/ball/basic.dart';
class BasicFlipperGame extends BasicBallGame with KeyboardEvents { class BasicFlipperGame extends BasicBallGame with KeyboardEvents {
BasicFlipperGame() : super(color: Colors.blue); BasicFlipperGame() : super(color: Colors.blue);
static const info = ''' static const info = 'Shows how a Flipper works.';
Basic example of how a Flipper works.
''';
static const _leftFlipperKeys = [ static const _leftFlipperKeys = [
LogicalKeyboardKey.arrowLeft, LogicalKeyboardKey.arrowLeft,

@ -8,9 +8,9 @@ class BasicLayerGame extends BasicGame with TapDetector {
BasicLayerGame({required this.color}); BasicLayerGame({required this.color});
static const info = ''' static const info = '''
Basic example of how layers work when a Ball hits other components. Shows how Layers work when a Ball hits other components.
Tap anywhere on the screen to spawn a ball into the game. Tap anywhere on the screen to spawn a Ball into the game.
'''; ''';
final Color color; final Color color;

@ -6,8 +6,11 @@ import 'package:pinball_components/pinball_components.dart';
import 'package:sandbox/common/common.dart'; import 'package:sandbox/common/common.dart';
class BasicSpaceship extends BasicGame with TapDetector { class BasicSpaceship extends BasicGame with TapDetector {
static String info = 'Renders a spaceship and allows balls to be ' static const info = '''
'spawned upon click to test their interactions'; Shows how a Spaceship works.
Tap anywhere on the screen to spawn a Ball into the game.
''';
@override @override
Future<void> onLoad() async { Future<void> onLoad() async {

Loading…
Cancel
Save