Adrian Cooney

2个Pod

SKImport

SKImport是一个库,当与它的编辑器结合使用时,可以用来构建和导入复杂的SKPhysicsBodies。SKImport允许你导入包含体信息的导出JSON文件,并为你的精灵生成SKPhysicsBody。

过程非常简单

SKSpriteNode *complexSprite = [SKSpriteNode spriteNodeWithImageNamed:@"complex-sprite"] NSString *bodyPath = [[NSBundle mainBundle] pathForResource: @"comple-body" ofType: @"json"]; complexSprite.physicsBody = [SKPhysicsBody bodyWithFile:bodyPath];

许可证: MIT

  • Objective C

SKMech

SpriteKit工具。

许可证: MIT

  • Objective C