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 rockets

Implement a call to the function RenderRockets, inside the RenderGame method.

RenderLaunchers()
RenderRockets()
Return True

What just happened?

One call inside the RenderGame function, and all rockets that exist are drawn to the canvas. Save the file and let it run. Press A or S and you will see rockets flying to your mouse position, as long as some rockets are remaining.

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