From 6caa2736233a5d1ff82ca11832d3895a39c597e6 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Fri, 8 Sep 2023 12:04:30 -0700 Subject: [PATCH] jump implementation details --- src/body.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/body.rs b/src/body.rs index 093c4b5..2e5f1fe 100644 --- a/src/body.rs +++ b/src/body.rs @@ -91,9 +91,9 @@ impl crate::event::EventTrait for PhysicsState { None => (), } }; - //check to see if yee need to jump (this is not the way lol) + //autohop (already pressing spacebar; the signal to begin trying to jump is different) if self.grounded&&self.jump_trying { - //scroll will be implemented with InputEvent::InstantJump rather than InputEvent::Jump(true) + //scroll will be implemented with InputEvent::Jump(true) but it blocks setting self.jump_trying=true collect_event(Some(EventStruct{ time:self.time, event:crate::event::EventEnum::Jump