Skip to content

Instantly share code, notes, and snippets.

@Seasons7
Last active August 29, 2015 14:12
Show Gist options
  • Save Seasons7/9deb786a62670b2e9444 to your computer and use it in GitHub Desktop.
Save Seasons7/9deb786a62670b2e9444 to your computer and use it in GitHub Desktop.
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