From 2b1140e85fb97b4286ddc5ebfa348be9c190e7dc Mon Sep 17 00:00:00 2001 From: Mark Date: Fri, 24 Feb 2023 14:19:30 -0800 Subject: [PATCH] Added bonus frames for jumping (necessary for jump-l and jump-r) --- celeste/resources/carts/hackcel.p8 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/celeste/resources/carts/hackcel.p8 b/celeste/resources/carts/hackcel.p8 index 8ba634a..8f88699 100755 --- a/celeste/resources/carts/hackcel.p8 +++ b/celeste/resources/carts/hackcel.p8 @@ -38,7 +38,7 @@ hack_ready = false -- Slow down frame rate hack_frame_counter = 0 -hack_frame_freeze = 10 -- Freeze for n frames +hack_frame_freeze = 5 -- Freeze for n frames hack_frame_foward = 3 -- Run this many frames without sending status hack_frame_foward_bonus = 0 -- Set when actions need extra frames (like dashes) @@ -1256,6 +1256,10 @@ function _update() extcmd("screen") end + if (btn(k_left) or btn(k_right)) and btn(k_jump) then + hack_frame_foward_bonus = 10 + end + -- Run bonus frames if we earned bonus frames for i=1,hack_frame_foward_bonus do old_update()