First things first: We just released an update of our MULTIPLAYER App called “SNOWGRE“, available for FREE on the App Store: https://itunes.apple.com/us/app/snowgre/id560450513?mt=8
SNOWGRE – Multiplayer game using Game Center
Please have a look, download it for free and consider buying some extra lives and unlock the multiplayer feature to play against people from all over the world! Play agains me => my nickname is “GABEHOE” or against my co-worker Adrian => “ADIMAN84″
We’d love to hear suggestions and receive feedbacks from you… and compete with you! Hahahah…
On this blog post I am going to show you how to use Game Center (Game Kit Framework) to make an amazing Multiplayer Game like SNOWGRE… well, not the whole game, but at least I will show you how to code the multiplayer stuff!
I’m going to show you in this post how to write a workaround for this problem. Many of the existing Apps in the App Store are dependent on this property (uniqueIdentifier) for uniquely identifying a particular device… Apple stopped supporting a unique identifier for iOS (>=5.0).
But wait… where does this property it come from? The following source code solves the problem. It generates a unique identifier based on the mac address of the device in combination with the bundle identifier.
We all know we can use “Localizable.strings” to translate our Apps into different languages like this in our code:
… if we have created our “Localizable.strings” file first and put in some keys and values… but what if I want my translation to be dynamic, that is, download it from a webserver and use the key value pairs of that file instead of our “locked” app resources like Localizable.strings after deployment?
Fortunately there is a solution to this problem! I’m also going to show you how to download the file from a webserver using ASIHTTPRequest, a wrapper around the CFNetwork API that makes it very easy for us to communicate with our webserver even through https!