Payback 2 Logo

Networking

/ 21 September 2012



Introduction

Hello and welcome to the second Payback 2 Dev Diary. This time we'll be explaining a bit about how the multiplayer works and the major changes that have been made to the controls and HUD.

Multiplayer

The multiplayer is a really important part of Payback 2, so we really wanted to make it as robust as possible. We went to great lengths to make the game cope gracefully with high latency and low bandwidth connections such as 3G and sometimes even EDGE.

Coping with poor connections comes down to two key things - minimising latency and bandwidth usage, and hiding network issues as well as possible.

To keep latency as low as possible, we use peer-to-peer connections (to avoid the extra delay of going though a server) and unreliable data packets to allow lost messages (which we probably don't care about any more) to be discarded rather than be retransmitted (which would delay newer packets).

Bandwidth usage is a particular concern in an open world game like Payback 2 as there can be hundreds of objects active at once. To mitigate these issues, we heavily compress the data we send and limit the rate we send it, including sending updates for less important objects less frequently and trying to move nearby objects to local control when possible. We also try to spread the load evenly between devices to minimise the chances of one of them becoming a bottleneck.

As a result of all this, the bandwidth usage is generally under 40kbps even with lots going on, which is low enough to play on even a poor 3G connection or a good EDGE connection. (Although of course Wi-Fi or LTE are still preferred if possible.)

To hide the latency that remains, we blend objects from their old to their new positions, but also run physics on them locally so the player can still interact with them to a degree. Of course, there are always going to be times when devices disagree about an important event, so we made sure that we always picked the least annoying option in those situations. For example, the death of the local player is decided by the local player's device, as it's more annoying (and noticeable) to be killed unfairly than it is to not be able to kill someone unfairly.

Controls & HUD

The game's controls and HUD were completely redesigned for Payback 2. One of the most significant changes from a gameplay perspective is that dual touch pad controls are now used when on foot. This allows the player to move in one direction whilst shooting in another, which is an essential skill against tougher opponents. By default, the game still uses tilt controls for most vehicles, but we've added an option to use touch controls at all times for players who prefer it.

One of the more subtle changes to the HUD is that the weapons and minimap have swapped sides. This was done to improve playability as it allows the player to change weapons without taking their finger off the movement pad, which makes it easier to dodge incoming fire.

The game also now makes full use of the extra room on the iPad, adding a larger minimap and controls, more detailed scoring information and easier access to their weaponry.

Next Time

That just about wraps it up this time - next update we'll talk about the game's new intro and the redesigned menu system.

James Daniels
james.daniels@apex-designs.net
(PS: Please don't forget to join our mailing list!)

Next >>






More media >>