Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能告诉我COCOS2D中场景和图层之间的区别。我对此感到困惑。
兄弟,很简单。每当您使用 COCOS2D 时,您都会拥有一个扩展 Layer 的类。您将从主要活动中调用。所以对于一个可显示的屏幕,只能有一层。在类(扩展图层)中可以有任意数量的场景。您甚至可以设置各个场景的尺寸。但是,请确保在从一个场景切换到另一个场景后立即释放内存......享受...... :)