sprite kit - How do I use whiteColor in Swift and SpriteKit -
i'm running yosemite , xcode 6. created new project using "game" option, spritekit , swift.
in override didmovetoview() in gamescene.swift added following line try change ground color:
self.backgroundcolor = skcolor(whitecolor)
this compiles won't run, stopping error "use of unresolved identifier 'whitecolor'"
the import is:
import spritekit
do need import whitecolor defined (which assume constant in header file somewhere ?
+[skcolor whitecolor]
class method, usual, translate skcolor.whitecolor()
self.backgroundcolor = skcolor.whitecolor()
Comments
Post a Comment