Skip to content

Instantly share code, notes, and snippets.

@Seasons7
Created December 27, 2014 16:48
Show Gist options
  • Save Seasons7/ebb8645637b6d19a20b8 to your computer and use it in GitHub Desktop.
Save Seasons7/ebb8645637b6d19a20b8 to your computer and use it in GitHub Desktop.
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