Parcel Dogs Game For iOS - Development Process

Hi everyone, Ray here. With just over 4 months of development time, around 500 hours of learning game programming, learning vector drawing, and geometry and physic based head scratching, our first iOS game is complete!

Parcel Dogs for iPhone/iPod and Parcel Dogs HD for iPad were submitted to Apple for inclusion to the App Store a few days ago.

NEW UPDATE:- The iPhone/iPod version of the game has just been approved (March 10th 2012) and should soon be available at the App Store - Click here to go to the App Store

UPDATE:- The iPad version of the game has just been approved (March 7th 2012) and should soon be available at the App Store - Click here to go to the App Store

This ‘top-down’ racing game involves the player taking the role of Jim, our Speedy Parcel delivery dog. Now Jim has to go around his picking up parcels with the help of his map but has a hard time of it thanks to his nemesis Crazy Dave.

Crazy Dave will steal his parcels, leave Booby traps and just plain get in Jim’s way.

The player takes control of Jim’s van, driving through each level, getting the most points and picking up bone achievements. If you get 3 bones on a level, you unlock the achievement on Apple’s Game Center.

30 Levels of fun, providing 4 different missions of increasing difficulty, from parcel collection to taxi destruction to destroying Dave’s vans. In the later levels you are introduced to Scary Trevor who has the ability to damage your van causing you to drop your parcels and allowing Dave to steal them off you.

You have extra jeopardy in the form of speed cameras, which are dotted around your routes with speed limits you must adhere to. If you get more than one ticket, your driving license is marked as suspended and the police will be on your tail (no pun intended). Cops have fast cars and if they chase you and get a direct impact, you lose your wheels and you fail. But, if you can avoid the police for more than 30 seconds, they will call off the chase! At least until you break the speed limit again...!

Not a fan of traffic, neither am I, so if you get stuck behind a group of vehicles, just use your finger to swipe them out of your way.

5 levels plus the tutorial level are provided in the free download, with an In App Purchase allowing you to unlock all levels and remove all advertising from the game. I set the In App Purchase Price at 99 cents / £0.69.

The game was designed to be a casual ‘pick up and play’ style game, with no overtly complex commands to learn or objectives to figure out.

This post won’t really go into detail about the specifics of development but rather an overview of the process of making Parcel Dogs.

I started putting together the storyboard for the game back in November 2011 - (this actually spawned the eventual intro cartoon you see when you run the game) - from there work began on figuring out the game framework to use, as this work significantly speed up development time.

I settled on the Cocos2D framework - (here). This is entirely written in native Objective-C code, is fast due to using OpenGL ES, and allows me to link to a physics library from its template. More on this later.

Cocos2D is quite easy to pick up as it takes care of some of the more difficult coding practices for you, such as OpenGL and memory management. For example, you can create a sprite and add it to your current layer, now the sprite would be autoreleased but the layer itself would retain it, but as the layer is also autoreleased, it is retained by its scene container which is also autoreleased. Going up through the chain the director, (the class that manages the scenes within cocos2d), will retain the scene until it no longer needs it. Overall this simplifies the process somewhat.

I used the Box2D library to simulate the physics environment for me, from the way the vehicles move to the road borders, parcels and forces applied when you hit bombs or water pipes!

Artwork was produced using a combination of Adobe Illustrator and Adobe Photoshop to draw the vans, Jim, Crazy Dave, props and the tiles for the tilemaps. I used Zwoptex to create spritesheets from these which are then imported into the game via code as and when needed.

The tracks were put together using Tiled, a TMX tile editor. A fantastic program which cuts down the time taken to produce tracks.

Sound effects and game music were purchased from royalty free sources online such as - (SoundSnap) - the voices of Crazy Dave, Jim and the depot manager were provided by yours truly!

One of the biggest challenges, and something that forms the basis of the game, was how to tackle the artificial intelligence for not only traffic but also for Crazy Dave, the Police and Scary Trevor. Dave must find all the parcels, plot routes to them and then drive - (drive using the same controls the player has) - to them.

I settled upon using the A star pathfinding algorithm to generate waypoints to find to the AI. Initially this led to long loading times as the game would create nodes (A star works on a grid system) at initialisation time. It would then remove any nodes that work in collision zones or not in track sections.

To improve this implementation, I decided to create an object layer within each track where I would manually create nodes of a certain distance apart. These would be placed on the track, only where the vehicle could travel without getting blocked/trapped. Then in runtime, I would traverse these objects to create nodes and set positions, then traverse each node, find other nodes that are within a certain rectangular distance and set each other as neighbours (a require of A Star). Even with the traversing of node arrays, this is quick as I only create a small number of objects in the exact position when designing my tracks.

The A Star algorithm is then implemented to use these nodes to create a waypoint array for the AI to use to feed to whichever vehicle it is controlling.

This is quite processor intensive and it was a challenge to optimise in order to get the continous pathfinding to work smoothly without affecting framerate heavily. On dual core devices, such as the iPhone 4S and iPad 2 using a background thread to generate waypoint eradicated the problem. However, on a single core iPod Touch 4G the game runs at 45-55 fps, which I deemed acceptable overall.

I included the Facebook SDK for iOS and the Twitter Engine to provide a social aspect to the game. Players can directly share a link to the game on the App Store to their Facebook wall/timeline and to their Twitter profile. Each share provides the player with a 15% boost to Jim’s van, so sharing the game with your friends nets you a 30% power boost.

To monetise the game, I integrated the iAds classes as well as the Greystripe SDK - Greystripe provides a fullscreen banner for iPhone, and I created a fullscreen popup MPU ad view for the iPad version. As I didn’t want iAds to be displayed during actual gameplay, I used the Greystripe popup to display the banner just before you enter a level. Using the In App Purchase system, the player can unlock all levels and disable these ads.

Game Center was integrated to track bone achievements as well as the total amount of points gained in the game. These are aggregated from the best points for each completed level.

Finally, I created a trailer by using the AirPlay mirroring to Mac facility provided by the Reflection App for Mac.

The trailer has been added below.

For more information about Parcel Dogs, please visit the Parcel Dogs Website.

I hope you like the game! Let me know your thoughts.

Category: iphone

Tags: box2d cocos2d parcel dogs

0 comments

Login or Register to post comments.

My Work!

MelodyBox watchOS app logo

MelodyBox watchOS app

Make music on your Apple Watch!

view app
Lyrically watchOS app logo

Lyrically watchOS app

Guess the song by listening to song lyrics on your wrist!

view app
SoundBirdy watchOS app logo

SoundBirdy watchOS app

Full-featured Soundboard for the Apple Watch Speaker

view app
Value My Car Android app logo

Value My Car Android app

Value any car for free - all makes and models available.

Get a free valuation of any car based on car depreciation trends for the specific make and model, the price you paid, your length of ownership and mileage covered. You can find out how much a car purchased at any point during its life-cycle will continue to depreciate.

view app
Value My Car iOS app logo

Value My Car iOS app

Value any car for free - all makes and models available.

Get a free valuation of any car based on car depreciation trends for the specific make and model, the price you paid, your length of ownership and mileage covered. You can find out how much a car purchased at any point during its life-cycle will continue to depreciate.

view app
NiceAreas.co.uk Website logo

NiceAreas.co.uk Website

Search For UK Areas Based on any Criteria

A number of tools to help research parts of the UK down to postcode sector level using multiple datasets and a variety of data combination and aggregation.

Including crime, house prices, travel links, jobs and more!

visit website
Mortgage Calculator Expert iOS app logo

Mortgage Calculator Expert iOS app

This comprehensive mortgage calculator includes eight different calculators in one app!

Adjust repayment types, rate types, initial offers/periods, base rates, terms, SVR's, overpayments, collars/caps, any fees (add to loan or upfront), mortgage start dates, simulated rate changes and more!

view app
Mortgage Calculator Expert Android app logo

Mortgage Calculator Expert Android app

This comprehensive mortgage calculator includes eight different calculators in one app!

Adjust repayment types, rate types, initial offers/periods, base rates, terms, SVR's, overpayments, collars/caps, any fees (add to loan or upfront), mortgage start dates, simulated rate changes and more!

view app
Amazon Alexa Skills logo

Amazon Alexa Skills

Multiple Alexa Skills

Voice-first (with additional display elements too) skills for Alexa devices.

Including:

BrainPickers! Guess The ... series of games.

SalaryBee - Salary calculations by voice.

TheMoneyCalculator - Finance calculations by voice.

NiceAreas - Property valuations, Area information and census information by voice.

Who Said That? Friends Quiz.

..plus...more to come!

visit website
UKTaxCalculators.co.uk Amazon app logo

UKTaxCalculators.co.uk Amazon app

The UK's most comprehensive FREE tax calculator app

The website condensed into a full featured and easy to use Amazon app!

Check tax on any income source, compare salaries and much more!

view app
UK Tax Pro iOS app logo

UK Tax Pro iOS app

Calculate UK Tax on any income type with single or multiple income sources.

Get a full breakdown of your tax, print/email from within the app.

Full compliment of professional features such as rates and allowances, news, guides and calendars.

view app
UKTaxCalculators.co.uk Android app logo

UKTaxCalculators.co.uk Android app

The UK's most comprehensive FREE tax calculator app

The website condensed into a full featured and easy to use Android app!

Check tax on any income source, compare salaries and much more!

view app
UKTaxCalculators.co.uk iOS app logo

UKTaxCalculators.co.uk iOS app

The UK's most comprehensive FREE tax calculator app

The website condensed into a full featured and easy to use iPhone/iPad/iPod app!

Check tax on any income source, compare salaries and much more!

view app
Parcel Dogs Game For iOS logo

Parcel Dogs Game For iOS

This 'top-down' racing game involves the player taking the role of Jim, our Speedy Parcel delivery dog. Now Jim has to go around his picking up parcels with the help of his map but has a hard time of it thanks to his nemesis Crazy Dave.
visit website
UKTaxCalculators.co.uk Website logo

UKTaxCalculators.co.uk Website

The UK's most comprehensive FREE online tax calculator suite

The Tax Calculator provides a full breakdown of tax for PAYE, CIS or Self Employed individuals providing options for Pension Calculations, Tax Codes, NIC Letters, Bonuses, Salary Sacrifice Schemes and more.

For people with multiple income sources, the UK Tax Calculators Wizard calculates every UK tax across all incomes in the same manner a tax return would.

visit website
Walleto.co.uk Website logo

Walleto.co.uk Website

The first truly easy to use, free online budget planner

There has never been an easier way to forecast your finances in less 5 minutes!

The budget calculator takes all your income details, across any type of income, calculates the taxes due, subtracts your expenses (both from extensive presets to your own defined expenses). You are presented with an online forecast, comparisons with other users with similar households as well as a printable report version to use as income and expenses chart.

visit website
TheMoneyCalculator.com Website logo

TheMoneyCalculator.com Website

Full featured online mortgage and loan calculators

You can use this website to calculate mortgage payments, forecast future interest rate effects, calculate remaining balances, check debt consolidation options, plan your savings, plan your pension as well as plan for your future house purchase. A lot of planning made easy!

Find a professional mortgage adviser or financial adviser online through our UK-wide network.

visit website
WhereDidMyTaxGo.co.uk Website logo

WhereDidMyTaxGo.co.uk Website

Ever wanted to know where the UK Government has been spending YOUR tax payments?

The WhereDidMyTaxGo.co.uk website takes your gross income since 2003, calculates your taxes (PAYE only), and uses the Governments expenditure data to give you an approximation of how much of your actual payments were spent where.

The personalised aspect of this website is a unique use of Government data.

visit website
TaxPenny.co.uk Website logo

TaxPenny.co.uk Website

Finding an Accountant the Smart Way

TaxPenny provide an online platform for accountants and those seeking an accountant to connect. Potential clients describe their circumstances, the work required and set a maximum price rage. Quotes are returned to clients within 1 working day. Accountants are able to search for new clients through various criteria and bid auction style for leads or purchase adhoc.

visit website
World Tax Calc Android app logo

World Tax Calc Android app

Compare Tax and Cost of Living of Major Economies

Calculate and/or compare taxes for major economies across the world, see differences in take home pay and see a cost of living comparison with a list of common purchases people make.

view app
World Tax Calculator iOS app logo

World Tax Calculator iOS app

Compare Tax and Cost of Living of Major Economies

Calculate and/or compare taxes for major economies across the world, see differences in take home pay and see a cost of living comparison with a list of common purchases people make.

view app

My Blog!

27/01/15 19:37:10

Using Cloud-based Load Balancing To Horizontally Scale Effectively

In this quick guide, we will go through what is required to convert an existing singular LAMP setup to a horizontally distributed network of servers sitting behind a Load Balancer. This guide will utilise a number of services from Rackspace Cloud.

cloud server

0

19/12/14 11:13:49

Creating Servers For Load Balancing

In this step-by-step guide we create the underlying server structure required for successful load balancing.

cloud server

0

14/09/14 14:40:59

Creating a Shared Memcached Cloud Instance

Key-value memory based storage can be a significant performance boost, as well as load reducer, for database heavy websites. Follow our step-by-step guide to setting one up using the Memcached application.

cloud server

0

27/06/14 12:12:01

Copying Data Across From Existing MySQL Databases to a Cloud Database

Now that you have created a database in the cloud, how do you get it populated as quickly as possible. Follow our step-by-step guide.

cloud server

0

27/03/14 13:14:05

Converting a Single Node MySQL Application to a Cloud Databases Instance

Switching from an existing single database application to a database in the cloud requires two steps. First is to actually create the cloud database instance. The second is to migrate your existing data across. We describe the steps required.

cloud server

0

.. or read all of my blog!

Get in touch!

Do you have any questions for me? An idea for an exciting new website or mobile application? Maybe you just want to leave a comment regarding one of my websites or apps? If yes then you've found the right place!

Complete the form below and I will get back to you as soon as possible. If you would prefer to get in touch via Twitter, you can reach me there using @rayarmanappdev.