This is all very cleverly done, I wish I was better at it. It took a little bit to comprehend how to manage the Tetris portion of things, specifically rotating blocks since the relevant key was dependent on ship orientation. I had originally though that the direction you encountered a shape from was what determined the rotation and that once in the ship they were static, but I simply hadn't tried all four arrow keys. 🙃
I'm not sure how to read the sonar, I didn't know if a blip on the right meant I should steer to my right or the ship's right, so I spent a lot of time drifting aimlessly. Ultimately I have a dismal score and earth was doomed, oops!

I also feel bad for the asteroids since they start crying after being mined to an certain extent...