标签云

微信群

扫码加入我们

WeChat QR Code

I'm working on a game with finding objects on the screen which has also implemented the parallax effect.For certain reasons I've added my objects as CCMenuItems to the parallax layersI'd like to know which will be the best design pattern suitable to me in order to handle my objects; I've found that are six (maybe more of this but this is what I've found so far)Model-View-ControllerDelegationTarget actionNotificationsBlock modelManaged memory modelAny tutorial for the best one would be great! ;)


Why do you think you need one of these patterns ?

2019年04月18日35分13秒

robo: Well, I'll have multiple scenes and for the future addons to the game; Do you think that can be done also withoud any of these without any extra time?

2019年04月19日35分13秒

In order to be able to use any of these patterns in a useful way you need to understand more about them. It would not help if somebody told you do pattern X. you need to understand more first - and then your question would sound different :) Tip: get the book "Head First Design Patterns by O'Reilly"

2019年04月19日35分13秒

robo: It's also for Cocos2d? Thanks for the tip!

2019年04月19日35分13秒

Its not specifically for cocos2d, but its explained really down to earth in plain english and still correct - not as academic as the original version.

2019年04月18日35分13秒

Thanks again for the link!

2019年04月19日35分13秒