Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
An example double jump function written in the Pico-8 for implementing the mechanic.
function jump(p)
-- jump processing
if (btnp(2)
and p.jumpcount < 1) then
p.dy-=p.jumpforce
p.jumpcount+=1
sfx(0)
end
--resets count at floor level
if (p.y >= 119) then
p.jumpcount = 0
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment