Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ccswift20141228
import Foundation
class MainScene: CCNode {
override func onEnter() {
var winSize = CCDirector.sharedDirector().designSize
var chara = CCSprite(imageNamed: "images/image.png")
self.addChild(chara)
chara.position = ccp( winSize.width/2, winSize.height/2 )
super.onEnter()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment