Where to go now

If you noticed the whole game is played on the left edge of the stage, it's because I would like you to develop a multiplayer game, with the split screen technique. This means player one plays on the left of the stage, and player two plays on the right.

The way I showed you to handle key presses allows you to have another player controlling the cannon with a different set of keys, let's say A and S to rotate the cannon and W to fire.

Get Flash Game Development by Example now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.