chore: minor changes at test and doc

pull/255/head
RuiAlonso 3 years ago
parent 24386fb882
commit 07aa81dd30

@ -6,8 +6,6 @@ import 'package:pinball_components/pinball_components.dart' hide Assets;
/// A [SpriteComponent] for the rocket over [Plunger].
/// {@endtemplate}
class RocketSpriteComponent extends SpriteComponent with HasGameRef {
// TODO(ruimiguel): change this priority to be over launcher ramp and bottom
// wall.
/// {@macro rocket_sprite_component}
RocketSpriteComponent()
: super(

@ -21,8 +21,9 @@ void main() {
await game.images.loadAll(assets);
await game.ensureAdd(RocketSpriteComponent());
game.camera.followVector2(Vector2.zero());
game.camera.zoom = 8;
game.camera
..followVector2(Vector2.zero())
..zoom = 8;
await tester.pump();
},

Loading…
Cancel
Save