An example double jump function written in the Pico-8 for implementing the mechanic.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
|-- jump processing|
|and p.jumpcount < 1) then|
|--resets count at floor level|
|if (p.y >= 119) then|
|p.jumpcount = 0|