I am trying to create a SpriteKit game. I want to add a circle in the middle of the screen.
Here is my code (swift):
func createSimpleNode() {
let spriteNode = SKShapeNode(circleOfRadius: CGFloat(2))
spriteNode.position = CGPoint(x: CGRectGetMidX(frame), y: CGRectGetMidY(frame))
spriteNode.antialiased = true
spriteNode.fillColor = SKColor.blueColor()
addChild(spriteNode)
}
And this is the result
if i change the radius to 0.5 i am getting this

