Defeat the boss by avoiding the boss's sword and hitting him with your sword. Arrow keys or WASD to move.
Some of the code is by @lapvpbl but the boss code is by me.