Hi,
I'm planning to update the transitions for v2.0
A) API update
I've been thinking of updating the Director's Transition API for v2.0:
// same as v1.0
- (void) pushScene:(CCScene*) scene;
- (void) popScene;
- (void) replaceScene: (CCScene*) scene;
// new in v2.0
- (void) pushScene:(CCScene*) scene withTransition:(CCTransition*)transition;
- (void) popSceneWithTransition:(CCTransition*)transition;
- (void) replaceScene: (CCScene*) scene withTransition:(CCTransition*)transition
And Transition can't be instantiated with a scene.
It will make the API easier to use and also popScene will support transitions
B) Logic update
in v1.0, while you transition from one scene to another, the scenes are still running, they are live.
The idea for v2.0 is that scenes won't be able to run while they are being transitioned. An screenshot of the scene will be used for the transition.
- It will make it easier to alloc/dealloc objects
- "Flip" transitions will work as expected with scenes larger than the screen size
- Possible logic conditions with onEnterTransitionDidFinsih will be fixed.
What do you think about it ? ideas ?