【发布时间】:2018-09-02 19:03:53
【问题描述】:
//参数标签 '(_:, _:)' 不匹配任何可用的重载第 12 行
//接地
var groundTexture = SKTexture(imageNamed: "ground")
var sprite = SKSpriteNode(texture: groundTexture)
sprite.setScale(2.0)
sprite.position = CGPoint(x: self.size.width/2.0, y: sprite.size.height/2.0)
self.addChild(sprite)
var ground = SKNode()
let size = CGSize.zero
ground.position = CGPoint(x: 0, y: groundTexture.size().height)
ground.physicsBody = SKPhysicsBody(rectangleOfSize: CGSize(self.frame.size.width, groundTexture.size().height * 2.0))
ground.physicsBody?.isDynamic = false
self.addChild(ground) <code>
【问题讨论】:
-
第 12 行是哪一行?
标签: swift