refactor: PR suggestions

pull/42/head
Allison Ryan 4 years ago
parent d33f43645a
commit 280a4e523e

@ -2,7 +2,7 @@ import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:pinball/game/game.dart'; import 'package:pinball/game/game.dart';
/// {@template round_bumper} /// {@template round_bumper}
/// Circular body that repels a [Ball] on contact and increases the score. /// Circular body that repels a [Ball] on contact, increasing the score.
/// {@endtemplate} /// {@endtemplate}
class RoundBumper extends BodyComponent with ScorePoints { class RoundBumper extends BodyComponent with ScorePoints {
/// {@macro round_bumper} /// {@macro round_bumper}

@ -11,7 +11,7 @@ void main() {
TestWidgetsFlutterBinding.ensureInitialized(); TestWidgetsFlutterBinding.ensureInitialized();
group('RoundBumper', () { group('RoundBumper', () {
final flameTester = FlameTester(PinballGameTest.create); final flameTester = FlameTester(Forge2DGame.new);
const radius = 1.0; const radius = 1.0;
const points = 1; const points = 1;

Loading…
Cancel
Save