|
|
@ -172,6 +172,7 @@ void main() {
|
|
|
|
flameBlocTester.testGameWidget(
|
|
|
|
flameBlocTester.testGameWidget(
|
|
|
|
'beginContact adds a ScoringBehavior',
|
|
|
|
'beginContact adds a ScoringBehavior',
|
|
|
|
setUp: (game, tester) async {
|
|
|
|
setUp: (game, tester) async {
|
|
|
|
|
|
|
|
await game.onLoad();
|
|
|
|
await game.pump(parent);
|
|
|
|
await game.pump(parent);
|
|
|
|
|
|
|
|
|
|
|
|
final behavior = ScoringContactBehavior(points: Points.oneMillion);
|
|
|
|
final behavior = ScoringContactBehavior(points: Points.oneMillion);
|
|
|
@ -190,6 +191,7 @@ void main() {
|
|
|
|
flameBlocTester.testGameWidget(
|
|
|
|
flameBlocTester.testGameWidget(
|
|
|
|
"beginContact positions text at contact's position",
|
|
|
|
"beginContact positions text at contact's position",
|
|
|
|
setUp: (game, tester) async {
|
|
|
|
setUp: (game, tester) async {
|
|
|
|
|
|
|
|
await game.onLoad();
|
|
|
|
await game.pump(parent);
|
|
|
|
await game.pump(parent);
|
|
|
|
|
|
|
|
|
|
|
|
final behavior = ScoringContactBehavior(points: Points.oneMillion);
|
|
|
|
final behavior = ScoringContactBehavior(points: Points.oneMillion);
|
|
|
|