Understanding the Game Concept
The game we will build in this chapter makes use of one of the strongest aspects of Adobe Animate, and that is the ability to create assets with visual tools and then program them with code all directly within the same application. The game concept is very simple: you control a kitty that can walk back and forth across the screen and shoot energy balls upward. Enemy pigs are dropping from above and the kitty must ensure that none reach the ground by blasting them out of the sky. If three pigs get past the kitty, it's game over.
We'll be dealing with a lot of code in this chapter. If you've never written much code, don't worry! We will be stepping through the visual aspects of the game first and will slowly build up to the programming aspects. Even when in the thick of development, all the code will be provided and explained piece by piece.
Starter Document Overview
An HTML Canvas document named GameStarter.fla
is available...