Movement and wall jumps
Kick off a wall, slide down it, kick again: the move is one switch away.

How fast the hero runs, how the jump is shaped, and a new move that is one switch away.
Sixteenths of a pixel
Like most handheld games, Spring Jump keeps speeds in whole numbers of small units: sixteenths of a pixel per frame. RUN_MAX 38 is a top speed of 38 sixteenths, about 2.4 pixels a frame.
The jump starts at JUMP_V going up, and GRAVITY pulls it down a little every frame. While A is held, gravity is gentle; let go and GRAVITY_CUT takes over and the jump ends sooner. That is how holding A jumps higher.
Moves behind a switch
Spring Jump has some moves built in and switched off. WALL_JUMP 1 lets the hero slide down a wall it runs into and kick off it with A. NEED_ALL_COINS 1 keeps the flag shut until every coin of the level is taken.
Switches like these are a quick way to try an idea: turn it on, play, and keep it or turn it off again.
Faster, with wall jumps
In the session you will turn on wall jumps and raise the top speed a little.

Try it yourself
In the app this lesson opens a real game for you, with a guide that walks you through these steps:
- How the hero moves is set by named numbers near the top of the code. Some, like WALL_JUMP, are switches: 0 is off and 1 is on.
Turn on wall jumps and make the hero run a little faster.
- Run into a wall in the air and press A to kick off it. Try the second level, where walls and spikes make it useful.
