Your goal is to protect your base from destruction while destroying as many asteroids as possible.
Build towers to help gather resources.
If asteroids hit the surface of your base, it will start to crack. After enough damage, that area of the surface will not be buildable and you will have to work around it.