I finally figured out how to make this kind of game, thanks to the game "Square". Just move your mouse to move the ribbon dancer (don't know why I chose her) and try not to get hit by the ghost. If you do get hit by the ghost, then the game will stop.