Use the left and right arrows to move. Use the space key to shoot. Dodge all lasers and missiles. You have 20 hp. There are no I-frames. It can get really hard at the end, so you want to save as much hp as possible.
This is essentially a Galaga boss fight, so I guess it is inspired by Galaga.