我讀過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) –