From 8bef21479791112c4c6e65967512ea0a65f74f2e Mon Sep 17 00:00:00 2001 From: Corwin Date: Mon, 17 Apr 2023 23:48:15 +0100 Subject: [PATCH] fix jitter --- examples/the-purple-night/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/the-purple-night/src/lib.rs b/examples/the-purple-night/src/lib.rs index 537884fd..b6ec156a 100644 --- a/examples/the-purple-night/src/lib.rs +++ b/examples/the-purple-night/src/lib.rs @@ -1966,6 +1966,8 @@ impl<'a> Game<'a> { self.shake_time -= 1; } + let this_frame_offset = this_frame_offset.floor().into(); + self.input.update(); if let UpdateInstruction::CreateParticle(data, position) = self.player