+91 9591117915 info@pixtell.net
Muliplayer player count

Android gamedev ios

Muliplayer player count

Posted By Kirti P

Player count , the holy grail of all Multiplayer online matches for Turn-based and Realtime Games has a few gotcha’s when it comes to Google Game Services ( GPG ) and Apple Game Center.

Before we go into details , some abbreviations i cooked up to make it cleaner to read 😉

GPG – GooglePlayGame Services
GC – Game Center
TB – Turnbased Match
RT – Realtime Match
minPlayers – the minimum player count to kickstart a match
maxPlayers – the maximum players allowed for a match
API – just a sample , please see the GPG and GC documentation online

For example lets create a match

API   GPG 

GC 

TB.CreateMatch(minPlayers,maxPlayers); Does not count the player calling the API Counts the player calling the API
RT.CreateMatch(minPlayers,maxPlayers); Does not count the player calling the API Counts the player calling the API

As you can see the two API’s from Google and Apple do the same thing but can actually trip you if not careful!! The problem is that if you pass in for example

You are in for a treat..

GPG would go ahead and create a 2 player match ( does not count you ) , while Game Center would silently fail ( you cant play with yourself naughty boy , we control everything 😀 ) or in our case saw the matchmaker dialog do a fancy appear and hide .  I was in for a surprise because i had experience creating TB and RT matches for GPG but GC was my first attempt.

So the right way for a 2 player match for GC would be

Spent several hours trying to figure out what was going on and turned out to be the player count dilemma that the 2 API’s have . Not sure who is correct , but surely can trip you.

p.s: There are other API’s in GC that fetch the players in a game excluding current player. Be wary of them too ;).

Hope this post helps the brave souls getting into Multiplayer using Google Play or Game Center services.

Read More
iOS device resolutions

ios tips

iOS device resolutions

Posted By Kirti P

A quick post of Apple iOS device Resolutions. A bit hard to find ( based on the needs of itunes connect )

ios display resolutions
image from : iosres.com

Resolutions by size of screen :

3.5 inch — 640 x 960

4 inch — 640 x 1136

4.7 inch — 750 x 1334

5.5 inch — 1242 x 2208

iPAD — 1536 x 2048

This is very helpful when you are uploading your app to itunes connect ;).

Read More
Linker errors in xcode with Unity

gamedev ios

Linker errors in xcode with Unity

Posted By Kirti P

Sometimes you are stuck with linker errors that drive your mad while building for iOS using XCode ( using Unity3D ). This post will be a ever growing list of how I solved them 😀 :

Linker error with device info …

I have noticed that even though DeviceInfo was present in Build Phase , It kept throwing this error.

Solution?

  1. Delete the DeviceInfo bundle in Build Phase tab.
  2. Search for deviceInfo in your Unity Project ( do it from within the search box in Unity Editor and Show in Finder ) , usually found at “Assets/Plugins/iOS/DeviceInfo.framework”
  3. Drag and drop the bundle found in step 2 to the project .

Clean + build. And it should be all good !

Read More
Welcome

news

Welcome

Posted By pxteam

Hello All . Welcome to the world of Mobile innovation!

Watch out this space for more info…

Read More