mirror of https://github.com/flutter/pinball.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
905 B
40 lines
905 B
// ignore_for_file: must_call_super
|
|
|
|
import 'package:flame_bloc/flame_bloc.dart';
|
|
import 'package:flame_forge2d/flame_forge2d.dart';
|
|
import 'package:pinball/game/game.dart';
|
|
import 'package:pinball_theme/pinball_theme.dart';
|
|
|
|
import 'helpers.dart';
|
|
|
|
class TestGame extends Forge2DGame with FlameBloc {
|
|
TestGame() {
|
|
images.prefix = '';
|
|
}
|
|
}
|
|
|
|
class PinballTestGame extends PinballGame {
|
|
PinballTestGame()
|
|
: super(
|
|
audio: MockPinballAudio(),
|
|
theme: const PinballTheme(
|
|
characterTheme: DashTheme(),
|
|
),
|
|
);
|
|
}
|
|
|
|
class DebugPinballTestGame extends DebugPinballGame {
|
|
DebugPinballTestGame()
|
|
: super(
|
|
audio: MockPinballAudio(),
|
|
theme: const PinballTheme(
|
|
characterTheme: DashTheme(),
|
|
),
|
|
);
|
|
}
|
|
|
|
class EmptyPinballTestGame extends PinballTestGame {
|
|
@override
|
|
Future<void> onLoad() async {}
|
|
}
|