Real-Time Gaming Blog

Developing an App With a Client-Server Model

2 min read Michael Carroll 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

How to Add a Notification Badge to Icons in React Native
Real-time Chat BlogDec 19, 20226 min read

How to Add a Notification Badge to Icons in React Native

Display real-time notification badges with PubNub and React Native to display important information and bring users back to your...

Michael Carroll

Michael Carroll

Digital Twins and the Future of Real-Time Data
InsightsDec 6, 20224 min read

Digital Twins and the Future of Real-Time Data

The concept of Digital Twins has evolved over the last two decades, however, one thing remains the same: the need for real-time...

Michael Carroll

Michael Carroll

In-Game Chat Fuels Player Engagement and Boosts Retention
Real-Time Gaming BlogNov 23, 20227 min read

In-Game Chat Fuels Player Engagement and Boosts Retention

Social features, like in-game chat, offer a solution to driving player retention by fueling engagement, attracting...

Michael Carroll

Michael Carroll