cocos2d-swift

Cocos2d-Swift v3.x Sprite Builder : In iPad iPhone sd images are used. -ipad suffix ignored

丶灬走出姿态 提交于 2019-12-08 07:06:35
问题 Code: var bg = CCSprite(imageNamed:"Background.png") Images used in Resource: Background-hd.png Background-ipad.png Background-ipadhd.png Background-iphone5hd.png Background.png In all device Background.png(320x480) used, other images are ignored. How to fix this ? Retina display is not enabled...How to enable retina display in v3 ? Here is working sample code with this problem. 回答1: I'm not really advanced user of SpriteBuilder but have some concerns about your issue. As you are using Sprite

EXC_BAD_ACCESS at lauch for EAGLContext renderbufferStorage: fromDrawable: in Cocos2d app whie debugging

南笙酒味 提交于 2019-11-28 06:54:14
Using default cocos2d-swift app I'm receiving the error EXC_BAD_ACCESS on my iPad Mini 2 at the line: BOOL rb_status = [_context renderbufferStorage:GL_RENDERBUFFER fromDrawable:layer]; But if I try to launch the app without debug all works fine. If I use debug on any virtual device I receive no error too. Why it doesn't work? How to remove this error? Looks like this is an issue on certain devices on iOS 8.3+. It works for me on almost all devices but the iPad mini 2 fails for me as well. The short of it is that there's nothing wrong with the call itself. Seems to be an Xcode bug with those