fix: plunger on mobile

pull/259/head
Jochum van der Ploeg 3 years ago
parent 511736e2e4
commit 4cc6da161a
No known key found for this signature in database
GPG Key ID: E961B7B51589CA09

@ -74,6 +74,7 @@ class Plunger extends BodyComponent with InitialPosition, Layered {
var _pullingDownTime = 0.0;
/// Pulls the plunger down for the given amount of [seconds].
// ignore: use_setters_to_change_properties
void pullFor(double seconds) {
_pullingDownTime = seconds;
}

@ -146,18 +146,6 @@ void main() {
expect(plunger.body.linearVelocity.y, isZero);
},
);
flameTester.test(
'moves downwards when pull is called '
'and plunger is below its starting position', (game) async {
await game.ensureAdd(plunger);
plunger.pull();
plunger.release();
plunger.pull();
expect(plunger.body.linearVelocity.y, isPositive);
expect(plunger.body.linearVelocity.x, isZero);
});
});
group('pull', () {

Loading…
Cancel
Save