Hi, I've got a question about the Model View Controller (MVC) design pattern for iphone games.
Let's say I have a simple game that uses a ViewController. So this view controller has an associated window/view and takes player inputs of buttons sliders, etc.. on this view.
Now I also have a subview of the ViewController's main window/view and I actually do some animation of various polygons in this subview. I also want to take touch events in this subview.
My question is, in the subview, I've got all the user touch code and animation code as the player's touch input affects the animation directly changing rotation etc.. There's a lot of variables in my subview class. Am I violating the MVC design? Should I delegate this stuff to another class or the view controller?
Many thanks