This is a platformer template. It contains all the physics. Please feel free to remix this.
Thanks to @griffpatch for the tutorial video!