parent
cbebc21f84
commit
0fffff62cc
@ -0,0 +1,22 @@
|
||||
import SpriteKit
|
||||
|
||||
public class GameScene : SKScene {
|
||||
public override init(size: CGSize) {
|
||||
super.init(size: size)
|
||||
|
||||
anchorPoint = CGPoint(x: 0.5, y: 0.5)
|
||||
|
||||
backgroundColor = .cyan
|
||||
|
||||
let rect = SKShapeNode(rect: CGRect(x: 10, y: 10, width: 100, height: 100))
|
||||
rect.strokeColor = .clear
|
||||
rect.fillColor = .red
|
||||
|
||||
addChild(rect)
|
||||
}
|
||||
|
||||
public required init?(coder aDecoder: NSCoder) {
|
||||
super.init(coder: aDecoder)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in new issue