dramonddevelopment

Pop The Lock iOS 9

by dramonddevelopment

5.00 (1)
Pop The Lock iOS 9 iOS

Screenshots

Pop The Lock iOS 9 iOS
Pop The Lock iOS 9 iOS
Pop The Lock iOS 9 iOS

Specification

How to Use

Sample Code

Here's a sample of the code. This example includes the function that is called when you tap the screen when the "Player" comes in counter with the "Target". func targetTouched(){ if intersected == true{ Target.removeFromParent() addTarget() intersected = false let fileLocati ofType: ".wav") do { audioHit = try AVAudioPlayer(contentsOfURL: NSURL(fileURLWithPath: fileLocation!)) try AVAudioSession.sharedInstance().setCategory(AVAudioSessionCategoryAmbient) try AVAudioSession.sharedInstance().setActive(true) } catch { print("targetHit") } audioHit.play() currentScore -= 1 levelLabel.text = "\(currentScore)" showLevel.text = "\(currentScore)" if currentScore <= 0{ nextLevel() } }

Video

Comments (0)

  • {{com.username}}
    {{com.username}}
    Buyer
    Seller

    {{com.username}}

    {{com.ctime}}

    {{com.content}}

    • {{com2.username}}
      {{com2.username}}
      Buyer
      Seller

      {{com2.username}}

      {{com2.ctime}}

      {{com2.content}}