In the previous sections, we discussed how to create a canvas and add graphic elements to it. In this section, we will discuss the most important aspect - what will happen when the image of our rocket collides with the images of our asteroids. Put simply, we explore the game mechanics.