A simple example writing an animation/sprite class that responds to keyboard input as a jump command.
Download processing from https://processing.org/download/, and then run main.pde
.
This project is an implementation of this p5js example, but for processing, rather than p5js.
Open main.pde
, and click "Run".