Very cool, Carlos. A couple things I worked through to get it going…
• During the new project wizard, you must set Game Technology to SpriteKit
• Since typecasting in Swift seems to be an incomplete feature, using a later version of Xcode 6 (6A267n) – I think they call it Beta 4 – line 20 would not compile until I changed it to this: var xx = CGFloat ( UInt(arc4random()) % UInt(self.view.frame.size.width))
Very cool, Carlos. A couple things I worked through to get it going…
• During the new project wizard, you must set Game Technology to SpriteKit
• Since typecasting in Swift seems to be an incomplete feature, using a later version of Xcode 6 (6A267n) – I think they call it Beta 4 – line 20 would not compile until I changed it to this:
var xx = CGFloat ( UInt(arc4random()) % UInt(self.view.frame.size.width))