2010年6月27日 星期日

[IPhone] Observer with Game Development

IntroductionWhen I develop my game project. I use a global timer to update game scene, and game scene will update all game roles in game scene if need.BackgroundAfter study observer, I think game scene is a observable and it can notify game role to update.So I implement observer pattern in my game.