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

Thank you for viewing my Pop The Lock Template for iOS 9. This is my very accurate iOS 9 replicate of the popular App Store game, Pop The Lock. This was a complex game to re-create and took many weeks of experimenting, writing code and re-designing accurate graphics from the real Pop The Lock game. If you would like to upload and distribute this game via the App Store under your company name, feel free to do so, copy-right free. If you'd like to edit the code and/or graphics before uploading, again, feel free to do so. If you'd like to simply purchase to learn from the code, I'd be more than happy! If you have any problems or errors which I highly doubt you will encounter if you're using the latest version of XCode (7.3.1 and above), please do contact me with any questions on my personal developer email: dramonddevelopment@gmail.com

Specification

XCode 7.3.1 and above.

How to Use

Simply extract the compressed "Pop The Lock Template.zip" file with whatever unzip application you wish. I personally use "The Unarchiver" which is free to download via the Macintosh App Store.

Once extracted, simply open the ".xcodeproj" folder which will be located inside the extracted Pop The Lock Template folder. Once opened, XCode will run and the project will open.

Here, you can access the games main code when clicking the GameScene.swift file to the left of XCode. The code doesn't require too much complex code so even beginners will be able to pick up on what line does what pretty quickly. Like stated above, do feel free to edit any code.

If you'd like to edit any of the games graphics, simply open the "Assets.xcassets" folder to the left of XCode, under the GameScene.swift file. Here, you will be able to see all of the graphics used in the code. If you wish to edit any of the graphics, please make sure that you use .png files and name whatever you're replacing it with, the exact same file name as the original name. e.g if you want to change the Player graphics, replace it with a another .png file and still name it "Player.png"

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}}