Space Invaders update to quadratics

Can someone help me with updating this space invaders retro game to be quadratics friendly? I am trying to have an asteroid in the way that the “aliens” are hiding behind. I was able to get the spacing right, but I cant figure out how to properly update the linear equation to be quadratic and have an error for hitting the asteroid. Any ideas would be greatly appreciated. I’m still new to the computation layering. The coding is rather confusing with all the sink functions.

The original Space invaders is from John Rowe for linear equations.

https://classroom.amplify.com/activity/69e8d8f9acdbed444fe37000/edit?checkAmplifyLogin=true#step=06395d68-92c4-4d7e-9ed7-7fb6c0c3b3a3

I also added a slide with a force field. I’m just not getting this to work Dx

Please help me.