Coding in Xcode 7?
If you are able to compile Swift 2.0 in Xcode 7 or higher, the files below are pretty much all you need.
- Create a new SpriteKit project for either iOS or Mac
- Create the files below
- include the following line at the end of the ViewController setup:
scene.setLife() - Define the type alias RMColor based on whether you are developing for Mac of iOS:
typealias RMColor = NSColor (iOS) / UIColor (Mac)
');
-->
The Life.Swift file was translated from the example available on golang.org.
