sábado, 12 de septiembre de 2009

Behaviors

MindShake includes a behavior engine that allows the users to easily create custom 'event driven' logic, per full game or per sprite, that can be reused in various games.

In this way the user can split logic into several behaviors, defining initialization code (BeginSprite), defining simple actions for events like mouse clicks, per frame process 'EnterFrame' for single sprite or whole game, etc. Furthermore, the user can reuse the same behavior into multiple sprites.

For example, in a platform game, the user can define a behavior to control where a sprite can walk, fall down in case of having no ground under their feet, rising stairs, etc. Then the user can attach this behavior to all the sprites that are able to walk on the platforms.

No hay comentarios:

Publicar un comentario