Falling Birds

In Falling Birds, your aim is to collect items and keep falling for as long as possible. The game is over if you hit a platform or a bomb explodes while you’re carrying it. When the game ends, the leaderboard gets updated, and the score is posted on Twitter.

Although it seems quite simple, it’s quite complicated to get everything joined up and talking to each other!

Building The Game

Tom started the development of Falling Birds as a fun side project from work. Christian chipped in some of his design time and his graphics helped bring the game to life.

The current version of the game is more or less the earliest playable version. We have many plans to improve it and eventually release it on the App store (possibly for Android too).

The game has been developed in XCode on Mac, using the Cocos2D game engine.

Processing Scores

When the game ends, the iPad sends the information to our website. It includes details about the game, such as the player’s score, name, and Twitter account. It also tells us what items you collected and how far you fell so that we can produce some interesting statistics.

One of the biggest challenges with sending information is to ensure there is no delay in the game - it would be really annoying if the game froze while it sent the data.

So, the information is sent asynchronously - it’s held in a queue and then sent when the iPad has some spare processing time available and access to an internet connection.

It’s a bit like sending a letter in the post: you don’t wait at the postbox to get a reply - instead, you get on with other things and the postman brings you a reply later. In this case, the iPad doesn’t need a reply so it can just “fire and forget” the information and move on with the rest of the game.

When the information is received at the website, it needs to be handled very quickly to ensure that lots of incoming connections can be dealt with. This means we do as little work as possible, and so again, the information is put into a queue for processing later.

Another part of the website looks in the queue for any new scores that have arrived. It decodes the score, updates the main leaderboard database, and sends a Tweet using the Twitter API.

Every minute, anybody viewing the website leaderboard will see it refresh - the website asks the database for the latest leaderboard and updates the page.

Technical Note

We’re using a REST API to handle the receipt of scores, and a MySQL database to host the queue, which Cron processes once per minute. For production-quality speed and scalability we would put the messages into an AWS SQS queue, and use AWS Lambda to update the database and generate the Tweet in near real-time.

More about apps

For businesses, apps are an opportunity to engage with customers and improve productivity - especially for companies that have a mobile or distributed workforce.

Although Falling Birds is a game, it follows the same model that business apps use - it collects information and reports back to a database for processing later.

What could you do with a mobile app?

  • Do you have a team of engineers who need mobile job sheets?
  • Do you need information available without an internet connection?
  • Do you have salespeople who complete contracts at a customer’s premises?
  • Do you have a workforce that works out of the office?
  • Do you take lots of paperwork out of the office?
  • Do you have a catalogue that customers buy from?
  • Do you operate a warehouse with paper pick and pack sheets?
  • Do you already sell online?

If you answered “yes” to any of the above, then get in touch with us today and find out more about how apps can transform your business.

Falling Birds

Related Articles

The Switchplane Team

We're an award-winning digital agency based in Eastbourne, specialising in bespoke websites and applications for high growth businesses. We work with B2B and B2C clients in a wide range of sectors including finance, travel, construction, publishing, healthcare, utilities, fast moving consumer goods, and professional audio.

About Switchplane

Contact Us

Can we help with your project?

Get in touch

Join our Newsletter

Get updates on everything Switchplane by joining our newsletter.