Control your player using the arrow keys and protect the base for as long as posible. You can purchase upgrades at the shop which can be accessed at any time by pressing the spacebar. Even though you can't technically win, you will recieve a rank after your base loses all health. It's very difficult, though, so don't get too frustrated.
I appriciate feedback and comments, and I'll respond to most of them.