Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
SwiftSpriteSample01
import Foundation
class MainScene: CCNode {
override func onEnter() {
var sp = CCSprite(imageNamed: "iPhone.png")
self.addChild(sp)
sp.position = ccp(200,200)
super.onEnter()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment