© Mark Cunningham 2020
M. CunninghamGame Programming with Code Angelhttps://doi.org/10.1007/978-1-4842-5305-2_4

4. Forest Bomber part 3: Bombs away…

Mark Cunningham1 
(1)
Edinburgh, Scotland
 

Captain Johnson looked down at the flight control panel of his B-58 Hustler jet. He knew what he had to do. His finger hovered over the button marked ‘Release.’ Timing was all-important now. He could not afford to miss his target. A bead of sweat slipped slowly down his right temple.

Wait…Wait…Wait…Now!

He hit the button, and a bomb dropped out of the B-58 and began hurtling toward the forest below.

In the last chapter, we learned how to make the plane fly across the screen. Next, we will learn how to write the code which will drop a bomb, and then we will develop ...

Get Game Programming with Code Angel: Learn how to code in Python on Raspberry Pi or PC now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.