まずは、WWDC2013で学習しよう。
Texture Atlasは、.png ファイルを.atlas ディレクトリにDrag&Dropするだけ。
ロード:
SKTexture *texture = [SKTexture textureWithImageNamed:imageName];
SKTextureAtlas *atlas = [SKTextureAtlas atlasNamed:@”Environment”];
NSArray *textureNames = [atlas textureNames];
for (NSString *name in textureNames) {
SKTexture *texture = [atlas textureNamed:name];
…
}
まじかよ、Particle Editor。
Collision Mappingは、
CGRect rect;
…..
sprite.physicsBody = [SKPhysicsBody bodyWithRectangleOfSize:rect.size];
sprite.physicsBody.dynamic = NO;
sprite.physicsBody.categoryBitMask = kColliderWall;
[self addNodeToWorld:sprite atLayer:kLayerGround];
…..