views:

32

answers:

0

Hello, I just finished my first game and just submitted to apple for aproval. Its a simple space shooting game where obsticales come at the player and you shoot them. I used "traditional" approach using the gameloop() which is scheduled 60tps. On the final stages, I tried to implement particle FX and simply was unable to put more then two of them, due to massive performance loss. The framerate would drastically drop.

I know there is a way to setup pointers to objects which interact together, and send messages to them only when needed(instead of constant gameloop() callbacks) through delegation pattern. I tried searching an example code of this amazing technique online, but was unsuccessful(using objective c). I would die for an example code of a small game, just to see how its done.

I know there are many pros in this forum who know exactly what I'm talking about. I would like to start my new game using delegation instead of gameloop(). An example code would be greatly appreciated. Please help. Thank you :)