Now, you can create a project called game. You can copy a project from Chapter 2, Making Visual Data and Animation on an LCD, Weather Project. Figure 3-13 shows our project structure:
To detect collision between our sprite and circle sprites, we can use a simple method. This involves calculating the distance between our position and circle center point. Then, we compare the point-to-circle distance and circle radius. If our distance is lower than the circle radius, this means that our sprite hits the circle. This is demonstrated in Figure 3-14: