Cocos2d-iphone 中的 CCRenderTexture 大小和位置大小、位置、Cocos2d、iphone

由网友(困兽)分享简介:我正在尝试使用 CCRenderTexture 进行像素完美碰撞检测,如本论坛帖子所述:I was trying to use CCRenderTexture for pixel perfect collision detection, as outlined in this forum posting:http:...

我正在尝试使用 CCRenderTexture 进行像素完美碰撞检测,如本论坛帖子所述:

I was trying to use CCRenderTexture for pixel perfect collision detection, as outlined in this forum posting:

http://www.cocos2d-iphone.org/forum/topic/18522/page/2

代码按原样"工作,我已将其与我的项目集成

The code "as is" works, and I have integrated it with my project

但我在讨论其他一些事情时遇到了麻烦:如果我将 renderTexture 创建为小于屏幕尺寸的任何尺寸,则碰撞检测将无法正常工作 - 当精灵彼此靠近(

阅读全文

相关推荐

最新文章