I'm thinking of developing a game where two players play against each other in a "world" but each have their own viewport following their character (split screen) but I'm not sure how to implement it. This is for Cocos2d.
Ideally, the game events would occur in its own CCLayer and the code simply draws different sections of it onto different viewports. However, this doesn't seem to be possible with Cocos2d.
The other solution I thought about was having two different layers and keep each in sync. That would work and be easier to implement the viewport code but doesn't seem scalable.
The last idea I had was to override the draw code for the game layer and manually draw it using OpenGL functions but I wouldn't know where to start.
What would be the best way to do this?