O'Reilly logo

Monkey Game Development by Michael Hartlef

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action — rendering the bombs

Add a call to the function RenderBombs, inside the RenderGame method.

RenderLaunchers()
RenderRockets()
RenderExplosions
RenderBombs
Return True

What just happened?

We have just implemented a call to our wrapper function RenderBombs. As you can see, implementing new objects into the game is easy.

If you let the game run, you will see some neat bombs falling from the sky, as shown in the following screenshot:

What just happened?

Creating new bombs and checking for GameOver conditions, or new level conditions

Right now, we can update and render bombs. But how do they appear? For this, we need to modify the UpdateGame method of the RocketCommander ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required