Press any key to jump, and simply avoid spikes and traps. Note that since the cube jumps a little behind, wait and then hold again when you reach a triangle beacon. Press Z and M in the "custom level" slot to build your own level. Remix to save it.
Credit to @hoppingicon for the original project. All I did was optimizing the level save mechanism, so more levels can be added. This still might have some bugs, please be aware of that. Level list optimizations/updated editor from: https://scratch.mit.edu/projects/105500895