You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
519 B
23 lines
519 B
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)
|
|
}
|
|
}
|
|
|