【发布时间】:2013-10-04 12:29:27
【问题描述】:
我对 SKSpriteNode 和 SKTexture 节点感到困惑。我在教程中看到 SKSpriteNode 可用于添加图像,如 [SKSpriteNode spritenodewithimagename:@"someimag"];在 SKTexture 中也发生了与 [SKTexture texturewithimge/file] 相同的事情;
纹理和图像有什么区别。如果我们使用 SKSpriteNode 添加图像,那么使用 SKTexture 的原因是什么,或者如果我们使用 SKTexture 和 Texture Atlases,那么为什么我们在 SKSpriteNode 中添加要添加的图像。
混乱存在,两者之间有什么区别。
【问题讨论】:
标签: iphone ios ipad ios7 sprite-kit