Chapter 6. Adding Game Logic
In the previous chapter, we learned about animating our objects on the screen using tweens; we also learned about sprite sheets, generated our very own sprite sheet with texture information, and animated it.
Let's take a quick look at what kind of topics we will tackle in this chapter:
Shooting cannonballs, which is pretty much a core mechanic of our game
Once a cannonball is displayed on the battlefield, it should be able to collide with the enemy ship
Destroying the enemy ship, if enough cannonballs hit the ship