Hello everybody,
I started with Objective-C and Sparrow just 2 weeks ago.
I have everything set up and running, I've also managed to learn basics and tutorials here and there.
I'm trying to build a 2D horizontal scrolling platformer with "Screens" piled one after another (using BEParallax class as a starting point) and for now it works. I have a player sprite that stays at the screen's center and sometimes I spawn an zombie enemy that wants to reach the player.
Here comes my question: now that i've understood the basics from Sparrow, how can I manage the different character classes to communicate to each other for doing collision detection or simply increase life counter and so on?
I've seen people speaking of SINGLETONS and design patterns, then someone speaks about MESSAGING an event to other classes to achieve status changes...
So what is the best approach and how do I implement a good game logic?
Thanks in advance.