Press R to reset. Press space to move when touching gray.
This project does collisions and movement in just 3 blocks. Credit to @Sigton and credit to the internet for the definition of a platformer.