You're the robber. the cop will try to chase you and the game won't end until he catches you. At the beginning, you can adjust the difficulty level. The lower the inputted number, the faster the cop is and the harder the game is. Try to get the high score!!! (It's kind of terrible, remix and make it better!)
I used a tutorial made by superstarcoder (sorry I'm not sure how to use links yet) to make the project.