What are the features of an online game for playing on the iPhone?

How are you guys going to create an online game for the iPhone? Obviously, you could try the server so often, but how realistic is it, given the capabilities of the device? Suppose you are polling a server every month or two and extracting 100 bytes of data ... Is it possible to get data in the background while the game is ongoing or will it be delayed by polling the server?

Thanks in advance, BCH

+3
source share
4 answers

You need to make a multi-threaded application. Then you can get the background thread by polling the server (or, better, by making asynchronous requests on it.

NSOperation NSOperationQueue. ​​ NSOperation. , , .

NSOperation main. , NSOperationQueue .

, NSInvocationOperation. NSOperation, . NSInvocationOperation NSOperationQueue ( NSOperations), .

+5

. , . , .

+1

WiTap ( xcode witap). NSStreams , .

+1

OpenFeint.. , , .

, GameCenter .

0

Source: https://habr.com/ru/post/1703078/


All Articles