我读过0,0是在Sprite Kit的左下角,但是当我在这个位置放置一个精灵时,屏幕上没有任何东西显示出来。位置SKSpriteNode在0,0?
let squareSprite = SKSpriteNode(color: UIColor.purpleColor(), size: CGSize(width: 100, height: 100))
squareSprite.anchorPoint = CGPoint(x: 0, y: 0) // bottom left corner of square
squareSprite.position = CGPoint(x: 0, y: 0)
addChild(squareSprite)
我错过了什么?
[在SpriteKit中处理不同的iOS设备分辨率](http://stackoverflow.com/questions/25205882/dealing-with-different-ios-device-resolutions-in-spritekit) –