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';
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
void onLine(Vector2 line) {

@ -7,7 +7,7 @@ class BasicBallGame extends BasicGame with TapDetector {
BasicBallGame({required this.color});
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.
''';

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

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

@ -13,7 +13,7 @@ class BigDashNestBumperGame extends BasicBallGame {
static const info = '''
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;

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

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

@ -8,9 +8,9 @@ class BasicLayerGame extends BasicGame with TapDetector {
BasicLayerGame({required this.color});
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;

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

Loading…
Cancel
Save