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