【发布时间】:2015-04-12 08:55:48
【问题描述】:
override func touchesEnded(touches: Set<NSObject>, withEvent event: UIEvent) {
if (gameOver == 0) {
//Player End Jump.
player.physicsBody?.applyImpulse(CGVectorMake(0, -40))
player.runAction(SKAction.playSoundFileNamed("sounds/jump.caf", waitForCompletion: false))
}
}
* 由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:“在主包中找不到资源声音/jump.caf” * 首先抛出调用栈:
【问题讨论】:
标签: swift sprite-kit