Question about the collision detection

Hi, I knew that I had opened threads on my game,
but this is the last question i cannot figure it out is how can I make the collision detection working in my game?
I find it really difficult because I have no idea where to start…

What I want to do is, when the spaceship hit the asteroid, the game will over (jump to the “end” scene)
:q::q::q::q::frowning: