STEP 1: GameConfig.h
1.- Go to lockandrollx on the left side of your project, select the lockandrollx target, and change the bundle identifier from com.alexmendezromero.lockandrollx to something else.
2.- Now, we need to locate the lockandroll/Config/GameConfig.h file, or simply use cmd+shift+o and input your keyword to search for GameConfig.h file.
Then change your ITUNESAPPID. (You need create your app ID in www.itunesconnect.apple.com )
3.- Change the PARSEAPPID and PARSECLIENTKEY (visit www.parse.com for more info about creating app id Parse)
4.- Also, change VUNGLEAPPID (you need to create a publisher account inwww.vungle.com to show video ads and earn revenue)
5.- Change FLURRYKEY (use flurry to get statistics and data analytics of your app from www.flurry.com )
6.- If you want, you can also change the value of SHOWADSEVERYLEVELS (by default, it is set to show video ads every 2 levels)
7.- OPTIONAL: Change default values from BASETIMEFORUNLIMITEDGAMEMODE to GAMELIVES (Leave default values if you want)
8.- Change Facebook messages, you will need change/replace the name ?Lock and Roll? in all messages.
9.- Change ?Share Social Images links?. In the folder lockandroll/Resources/Facebook assets you will have all the images to upload in your server. These images are important to share with friends after any user wins a level. So put your correct links from FACEBOOKPOSTER1 to BADGELEVEL8
10.- You can configure the number of coins that could be spent/received in the game. Change COINSINITIALAMOUNT, CORRECTANSWERPRIZE, CORRECTANSWERPRIZESECONDS (number of extra coins for every second of time not spent in the game), WINDAILYCOINS (Works with local notifications), FREECOINSVUNGLEREWARD (coins earned by watching vungle video), COINS1EXTRALIVE (Price to buy one extra live), etc.
STEP 2: Configure In- app purchases
These are the current in-app purchases values for lock and roll. You can use the same amount ? price configuration, or create a new configuration if you want.
Consumables:
1000 coins for 0.99 usd
2000 coins for 2.99 usd
10000 coins for 4.99 usd
30000 coins for 9.99 usd
150000 coins for 19.99 usd
Non-consumable
Get an unlimited challenge machine for 1.99 usd
1.- Locate the lockandroll/Config/CoinsAssets.m file or simply, use cmd+shift+o and input your keyword to search for CoinsAssets.m file
2.- Change the following in-app purchase values for your correct IDs:
Consumables:
LARTPF1000Coins
LARTPF2500Coins
LARTPF10000Coins
LARTPF25000Coins
LARTPF100000Coins
Non-Consumable
LARTPFChallengeM
Then add these above values (to create your in-app purchases) in www.itunesconnect.apple.com
3.- Change the coins amount (if you want): 1000, 2000, 10000, 30000, 150000
4.- Change the coins price (if you want) (in app purchases prices): 0.99f, 2.99f, 4.99f, 9.99f, 19.99f
5.- Change the non-consumable price (if you want): 1.99f
6.- Locate the lockandroll/Config/CoinsAssets.h file or simply, use cmd+shift+o and input your keyword to search for CoinsAssets.h file. Then change the CHALLENGEMPACKITEMID1 to the correct Price amount of your non-consumable purchase.
STEP 3: Create Facebook app
1.- Create a Facebook app in http://developers.facebook.com/
2.- Locate the lockandroll/Supporting files/Info.plist file or simply, use cmd+shift+o and input your keyword to search for Info.plist file.
3.- Change the value of URL types/item 0/URL identifier to your bundle id
4.- Change the value of URL types/URL Schemes/item0 to the correct fb app id.
5.- Change the value of URL types/URL Schemes/item1 to your bundle id
6.- Change the value of FacebookAppID to your facebook app id
7.- Change the value of FacebookDisplayName to the Facebook display name you created in http://developers.facebook.com/
STEP 4: Change Resources, sound and music
In the lockandroll/Resources you can change the IconShare and Sounds (sounds and music) of your game. Remember to use the same exact names.
STEP 5: Change the images
You have all images of the game (in folders) located in loackandroll/Images.xcassets You need change all the images. Remember to use the same exact names.
STEP 6: Create the game levels
You need create 9 levels for your game.
1.Locate the lockandroll/Resources/Levels.plist file or simply, use cmd+shift+o and input your keyword to search for Levels.plist file.
2.You have data from item 0 to item 8 (levels) with the same structure: ch1, ch2,? chn (sub-levels)
3.You need to change each VALUE of ch, in this case: numberChallenge, row1Present, row1Value, operator1, row2Present, row2Value, operator2, row3Present, row3Value, Seconds to Solve
This is an explanation about how to create levels.
a. If you want your level 1 to have 5 sub-levels, you must have item 0 with ch1,ch2,ch3.ch4,ch5. If you want your level 2 to have 4 sub-levels, then you must have item 0 with ch1,ch2,ch3.ch4 , etc.
b.Each sub-level (ch1, ch2, ch3, etc?) has the same structure: from numberChallenge to SecondsToSolve (see above image)
c.Explanation of each key:
numberChallenge is the goal number (from 10 to 999999)
row1present: (YES or NO) to show or hide the first number row in the gameplay. If the row1Present is NO, the following value (row1Value) needs to be ZERO
row1Value: if row1present is YES the value needs to be a number > 0 and
operator1: can be +,-,,/
row2present: (YES or NO) to show or hide the second number row in the gameplay. If the row2Present is NO, the following value (row2Value) needs to be ZERO
row2Value: if row2present is YES, then the value needs to be a number > 0 and
operator2: can be +,-,,/ but if the operator1 is * or / the operator2 cannot be the same.
row3present: (YES or NO) to show or hide the third number row in the gameplay. If the row3Present is NO, the following value (row3Value) needs to be ZERO. The row3present cannot be NO if row2present or row1present are NO, because the game needs at least 2 number rows to play.
row3Value: if row3present is YES, then the value needs to be a number > 0 and
SecondsToSolve The time (in seconds) to solve the puzzle. Important: there is a bono of 10 seconds for every sub-level in the game. So, if you want for example a time of 45 seconds, you need to put here 35 seconds.
STEP 7: Configure Local notifications
1.Locate the lockandroll/AppDelegate.m file or simply, use cmd+shift+o and input your keyword to search for AppDelegate.m file.
2.Search for the function - (void)localNotificationsSetup. You need to change the messages: ?have you played Lock N'Roll today??? to your own messages (6 in total)
STEP 8: Configure Push notifications
You have the possibility to send push notifications to all users of your game from Parse. The source code is ready to run and receive push notifications but you need configure the app and certificates.
Please read the next tutorial to configure Push notifications for this game in Parse.
https://parse.com/tutorials/ios-push-notifications
In the tutorial of push notifications, step 5 is ready. To configure the push notifications you need to follow steps 1 to 4 and finally step 7. The steps 5 and 6 are unnecessary.
To test push notifications (after following the above tutorial), go to Parse website by navigating to your Parse app and selecting the "Push Notifications" tab, you can use the text box to broadcast a message to "Everyone". Simply enter a message and click send! If you've installed the app on a device, you should see the notification appear within a few seconds. (It does not Works with simulators, only real devices).
If you send a message with a url (for example ?hello, visit my new game here www.google.com?), The game will ask the user whether or not to open the link.
Note: You must send a Plain text message (not JSON). See the following image.