The building sprite is probably the hardest to implement out of the current four, simply because it should only be activated when enemies are near, and deactivated when enemies are far away. We also must learn how to launch projectiles from the peak of our tower sprite, only when a certain frame within the animation has hit.
0:00 Extend Building class from Sprite class
5:10 Add offset to building rendering
7:15 Shoot for every 6th frame of animation
11:08 Position projectile correctly
15:24 Only animate building when it has a target
17:19 Correct z position of buildings