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

The heart of the game - the engine class

The engine class is the heart of the game. fantomEngine supports several callback methods which it calls automatically when certain things happen. For an example, a collision check was successful, a touch check to an object was positive, and so on.

What are transitions?

In the OnObjectTouch method, you will use transitions. Hmm What are they, you might ask. A transition of an object is an automatic change of the position, angle, size, color, or alpha value, over a defined period of time.

For example, you tell the engine to move an object to a certain point within 2000 milliseconds and forget about it. The engine will do that automatically for you. If you had set a transition ID when you created one, the ...

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