Skip to content

Multi-instance API discussion #1375

@s1ddok

Description

@s1ddok

We already have an implementation of multiple CCDirector instances in develop branch. There is stack type of situation.

While it seems to be a clever solution it might be confusing a little bit for newcomers that only want to have single Cocos2D instance to see something like

CCDirector pushDirector

CCDirector popDirector

That is why I guess we should discuss if there any other way to find a solution or at least syntax sugar for accessing the director.

I have a little bit of a thought on that. Right now every node having a reference to it's scene. Why not add director reference to the scene, so it can be accessed by:

node.scene.director

I think it can be useful sometimes, but that is of course debatable.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions