Use arrow/WASD to move the player. Your main goal is to touch the red box and die.
I made it from the help of a video (Only movement define stuff) and rest I made