If a game only with ONE CCScene?

Hi, guys

If a game only with one CCScene,

What are the advantages and disadvantages?

For example:


未标题-1.png (7.1 KB)

Can you please describe the problem more clearly?

Jobed Rony wrote:

Can you please describe the problem more clearly?

thanks for your attation.

I mean : a game only with one CCScene.

I have edited my post.:slight_smile:

If you do that, the code might be very messy and might be very hard to maintain.
I suggest you create a separate CCScene for each one of those layers. If you need to pass data between them, you could create a Singleton class to hold that data.

A game with one scene is a bad idea.

Lance Gray wrote:

If you do that, the code might be very messy and might be very hard to maintain.
I suggest you create a separate CCScene for each one of those layers. If you need to pass data between them, you could create a Singleton class to hold that data.

Thanks.

When the game change one scene to another scene the game interface want to keep a tips ui long time, for example announcement ui.

Is there any good idea for that?:stuck_out_tongue: