Skip to content

Instantly share code, notes, and snippets.

@Seasons7
Created March 23, 2015 17:04
Show Gist options
  • Save Seasons7/ba01dfc34f866b8780ad to your computer and use it in GitHub Desktop.
Save Seasons7/ba01dfc34f866b8780ad to your computer and use it in GitHub Desktop.
ccswift20150324
import Foundation
class MainScene: CCNode {
let audio:OALSimpleAudio = OALSimpleAudio.sharedInstance()
override func onEnter() {
audio.playBg("bgm.mp3", loop: true)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment