Use the sliders or the arrow keys to change gravity amount. WASD to move the square. Space to jump.
I made this as a template for various games I might make in the future! Feel free to remix this for your own purposes. Much of the ground and wall collision follows this platformer tutorial: https://scratch.mit.edu/projects/67727504/