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

Bring in the action—shaping the engine class

At the moment, you still can't move your ship or shoot anything. Also, the collision detection works in the background, but our game doesn't act on it. That is why we need to detail the engine class now. We need to act on collision, object updating, timer events, and also when a layer is updating.

Crack these objects—object collision handling

We need to act on collision of comets with shots, the player ship, and an activated shield.

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