當進入後臺時,我的cocos2d-x遊戲崩潰。這裏是從AppDelegate中的一些代碼: // This function will be called when the app is inactive. When comes a phone call,it's be invoked too
void AppDelegate::applicationDidEnterBackground()
我想在單個菜單項中添加一個Sprite以及Label,它們都是可點擊的,但在C#中不能從多個類擴展。 我從menuItemLabel類擴展並用menuItemSprite構造類。 但是,當我點擊標籤它工作正常,但MenuItemSprite沒有響應點擊事件。 如果有人知道這個問題的解決方法,請回復此問題。 public class menuitem4 : CCMenuItemLabel
{
當我退出程序,並重新進入它,我得到了一個錯誤: libEGL call to OpenGL ES API with no current context (logged once per thread) (red warning text)
libc Fatal signal 11 (SIGSEGV) at 0x5f012000 (code=2) (black text)
和錯誤