fix: plunger's pull not correctly working on some devices

pull/321/head
Jochum van der Ploeg 3 years ago
parent f580b4b5e6
commit c753b65530
No known key found for this signature in database
GPG Key ID: E961B7B51589CA09

@ -141,7 +141,11 @@ void main() {
expect(plunger.body.linearVelocity.y, isPositive); expect(plunger.body.linearVelocity.y, isPositive);
await tester.pump(const Duration(seconds: 2)); // Call game update at 120 FPS, so that the plunger will act as if it
// was pulled for 2 seconds.
for (var i = 0.0; i < 2; i += 1 / 120) {
game.update(1 / 20);
}
expect(plunger.body.linearVelocity.y, isZero); expect(plunger.body.linearVelocity.y, isZero);
}, },

Loading…
Cancel
Save