Monkey Game Development:Beginner's Guide
上QQ阅读APP看书,第一时间看更新

Time for action — rendering the explosions

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

RenderLaunchers()
RenderRockets()
RenderExplosions
Return True

What just happened?

With just a few new statements, we implemented the explosion class inside the game. When you run the game now, you will see neat explosions, once the rocket reaches its target position.