[Solved] How can I make an online 2 player game in Cocos2d X? [closed]
with help of apple game center you can implement multiplayer very early. for example #import <Foundation/Foundation.h> #import <GameKit/Gamekit.h> @interface GCHelper : NSObject<GKMatchmakerViewControllerDelegate, GKMatchDelegate> { BOOL isUserAuthenticated; UIViewController *presentingViewController; GKMatch *match; BOOL matchStarted; GKInvite *pendingInvite; NSArray *pendingPlayersToInvite; NSMutableDictionary *playersDict; NSString *MultiplayerID; NSData *MultiData; NSString *otherPlayerID; char AlertMessageBoxNo; BOOL isDataRecieved; } //variables @property (assign, readonly) BOOL gameCenterAvailable; … Read more