Arrow keys or A, W, S and D to move around.
I'd like to make a platformer. This is a public test of a feature that I call "recursive vertex collision detection", which projects a sprite consisting of two dots toward the player's nearest boundaries, including the floor. I've written this function as a substitute to simply touching the platform's color, because I think it is somewhat more accurate. Feel free to use this in your own projects, though please be considerate and credit me for creating this feature if you do.