From 003c6b5dc394720a399a714b1a2fc4363bb28465 Mon Sep 17 00:00:00 2001 From: Nyeogmi Date: Fri, 30 Dec 2022 22:45:12 -0800 Subject: [PATCH] Rope timing fixes --- chameleonic.p8 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chameleonic.p8 b/chameleonic.p8 index c286736..1387b36 100644 --- a/chameleonic.p8 +++ b/chameleonic.p8 @@ -872,7 +872,7 @@ function rope:update() elseif self.state.name=="destroy" then -- destroy self.state.frame+=1 - if (self.state.frame>=5) self.state={name="done",reelin=self.state.reelin} + if (self.state.frame>=4) self.state={name="done",reelin=self.state.reelin} else -- done state end @@ -922,7 +922,7 @@ function rope:draw(artificial_px,artificial_py) local n,perc_to_show,from_end = self.state.name,1.0,false if (n=="done") return if (n=="cast") perc_to_show=self.state.frame/2 - if (n=="destroy") perc_to_show=(1.0-self.state.frame/8)^2 + if (n=="destroy") perc_to_show=(1.0-self.state.frame/4)^2 if (self.state.reelin) from_end=true points[#points]={x=artificial_px,y=artificial_py}