You are the color changing dot. It follows your mouse/pointer, so that's how movement works here. Avoid the homework's attacks.
There are 4 phases, then they all repeat once but harder. Beat that, and you win! DISCLAIMER: Homework is not actually evil, so please do it if you have any