Control with WASD or ARROW KEYS. Dodge attacks and press space to fight Pain. If the line is in the middle you will deal twice the damage.
Tell me in the comments if I should make an Obito version. Its random attacks so you might not see some