The goal is to avoid the contact with the black spikes. The more time you resist, the more score you will increase. Click space or up arrow to jump.
I personally invented this game inspired by Dino Run Google https://scratch.mit.edu/projects/655530343/. I hope you enjoy it!