In the game that I am starting to do using cocos2d, I have a subclass of NSObject containing details such as car speed, so that is the model. However, I am confused as to what Controller and View are? The only class I have is a subclass of CCLayer. In this case, I have an accelerometer delegation method that moves sprites around, in init it adds sprites to the scene (?)
I suppose it would be wrong to refer to a car sprite in a subclass of NSObject that contains car parts?
So what is View and Controller when using cocos2d?
(for example, in traditional applications, the model is usually a subclass of NSObject (or just an array or a dictionary), the controller is a subclass of UIViewController, and the view is a subclass of UIView)
source share