Real-Time Gaming Blog

Developing an App With a Client-Server Model

2 min read PubNub Staff on Oct 9, 2013
Try PubNub Today

Free up to 1MM monthly messages. No credit card required.

Subscribe to our newsletter

By submitting this form, you are agreeing to our Terms and Conditions and Privacy Policy.

We've updated our SDKs, and this code is now deprecated. Good news is we've written a comprehensive guide to building a multiplayer game. Check it out! This two part series on building an iOS app with...

Warning

We’ve updated our SDKs, and this code is now deprecated.

Good news is we’ve written a comprehensive guide to building a multiplayer game. Check it out!

iOSPokerThis two part series on building an iOS app with a client-server model was developed by our two summer interns, Taylor Kimmett and Ajan Jayant.

Given the gradual decline in the barriers to entry for software development, the number of hobbyist and do-it-yourself developers is increasing; and games are often one of the first projects new developers want to tackle because they seem like the most fun. But creating a game generally isn’t the best starter project due to the inherent complexities involved.

So in order to give some direction to aspiring game developers, our team has taken a shot at creating a iOS Poker game that will hopefully be useful for others to not only see and use, but to see how we built it.

This tutorial is split into two parts:

Part One: Develop the client side of the game using Objective-C and implementing PubNub as a language agnostic framework.

TakeMeToPartOneCTAiOSPokerPart Two: Building a game server in C#

TakeMeToPartTwoiOSPokerAll the code you need to get started right away is in the GitHub repository below.

**NOTE: Since we wrote this tutorial, we’ve released a new, completely-redesigned version of our iOS SDK (4.0). We rebuilt the entire codebase and took advantage of new features from Apple, simplifying and streamlining the SDK.

The code from this tutorial still works great, but we recommend checking out our new SDK. We’ve included a migration guide to help you move from 3.x to 4.0, and a getting started guide to help you create a simple Hello World application in minutes.**

More from PubNub

Top Trends to Engage Your App Users
InsightsSep 27, 20224 min read

Top Trends to Engage Your App Users

Take a look at the top trends that are the most effective in attracting customers and reducing churn, and how you can incorporate...

PubNub Staff

PubNub Staff

Comparing Game Engines: Unity vs Unreal vs the Rest
Real-Time Gaming BlogSep 21, 20225 min read

Comparing Game Engines: Unity vs Unreal vs the Rest

Comparing the major game engines: Unity vs Unreal Engine vs Corona SDK vs GameMaker Studio, including the benefits and cons of...

PubNub Staff

PubNub Staff

Python Socket Programming: Client, Server and Peer Libraries
BuildSep 21, 20226 min read

Python Socket Programming: Client, Server and Peer Libraries

Sockets (aka socket programming) enable programs to send and receive data, bi-directionally, at any given moment. This tutorial...

PubNub Staff

PubNub Staff