import SpriteKit class GameScene: SKScene { var triangle: SKShapeNode! override func didMoveToView(view: SKView) { self.backgroundColor = UIColor.whiteColor() //三角形を作る let length: CGFloat = 100 var points = [CGPoint(x:length, y:-length / 2.0), CGPoint(x:-length, y:-length / 2.0), CGPoint(x: 0.0, y: length), CGPoint(x:length, y:-length / 2.0)] triangle = SKShapeNode(points: &points, count: UInt(poi
