2014-10-01 59 views
3

我试图使用SpriteKit在Xcode 6操场这样的:不能在Xcode 6运动场SpriteKit

import UIKit 
import SpriteKit 
import XCPlayground 

var spriteView = SKView(frame: CGRectMake(0, 0, 1334, 650)) 
spriteView.backgroundColor = UIColor(red: 0.167, green: 0.165, blue: 0.164, alpha: 1.0) 
let rootScene = SKScene() 

let rect = SKShapeNode(rect: CGRectMake(10, 10, 100, 100)) 

rect.fillColor = UIColor.redColor() 

rootScene.addChild(rect) 

spriteView.presentScene(rootScene) 

XCPShowView("The Sprite View", spriteView) 

但是,当我看到时间轴我刚才看到:

Xcode Playground

任何人都可以帮我?

回答

0

似乎iOS游乐场在SpriteKit上玩得不好。我完全模拟器运行操场混合的结果:

Full Simulator screenshot

而且在操场上(就像Balloons example

的“资源”文件夹中使用以前创建.sks OSX下工作得相当也发现这个comment

+0

在完整模拟器上运行似乎已在Xcode 7.1 beta 3中删除。 – featherless 2015-10-16 01:30:31