Use the Arrow Keys to move your Soul. The colors of the attacks do not mean anything, other than "That's the Soul Color of the Soul that's attacking you!" (Green Attacks don't heal you, they hurt you, Turquoise Attacks hurt you even if you stand still, Orange Attacks hurt you even if you move, and other colored attacks just hurt you, not do anything new.) If you survive all of the attacks, you will win (Duh!).
Attacks and attack order is more canon! I tried to make the box more "Undertale-like", without it teleporting you to the center, but it's still a WIP. Here's the worse version, if you like that BETTER for some reason... ...https://scratch.mit.edu/projects/328835632/