pink arrow, arrow keys or WASD to move, can move diagonally as loop around the map blue arrow follows your cursor around and stops if it is touching the pink arrow. space bar teleports pink arrow back to 0,0 blue bar teleports back to 0,0 if it touches your cursor no win condition also the blue arrow moves much faster than the pink one
all code by me, maybe you can change the sprites if you want or swap the backround, but like i said, this was just a test. also the pink arrow can't diagonally loop around which is odd. maybe you can fix that too