CCTexture2D *texture = CCTextureCache::sharedTextureCache()->textureForKey("ui/shoot.png");
bulletBatchNode = CCSpriteBatchNode::create(texture);
```
这句2dx的怎么转成quick呢?
我是这样写的:
local texture = CCTextureCache:sharedTextureCache():textureForKey("ui/shoot.png")
bulletBatchNode = display.newBatchNode(texture)
self:addChild(bulletBatchNode)
```
版本是qx2.2.5
可是出错了,如图:
直接用display.newBatchNode(“ui/shoot.png”) 就可以了
已经行了。谢谢。