Big Bad Robots is an indie game developer but we also do contract development. We have developed on all kinds of platforms (PC,Handheld,Consoles) but now primarily focus on iOS,Android and Unity. Contact us if you looking for developers with over 20 years experience in software and game development at biz -at- bigbadrobots.com

Implementing OpenID using PHP,JanRain and Zend

June 13, 2010terence

OpenID is being touted as the way forward in allowing the chaos of user identity management to brought to a manageable level. OpenID has been available for a while, but has finally started to build traction primarily because the “big boys” of the Internet have decided to get behind it. Unfortunately, what is being said and the reality are two different things.

Google, Yahoo, Microsoft have all setup their own “unique” way for other websites to allow access to their user data with each requiring their own login step (and appropriate logos) to sign in. My initial naive exception was that I could key in a username and password and I would instantly be logged into the website that supported “OpenID”. Sadly that isn’t so, and the mess is left to  you to implement a login system. I won’t go into the theory behind OpenId as that is already well covered by many sites including Google, OpenID itself and by various articles. I will however include a diagram which illustrates the steps behind an login process as it is useful to keep in mind when implementing it.

open id flow


Flex Remoting, the iPhone and other matters…

January 21, 2010terence

For the past week or so, I have been investigating various Remoting solutions that I can implement for the Flex Games I have currently developing. The basic features that I am looking for were:

  • Translation of complex data types (being able to map classes on the client and matched on the server)
  • PHP supported
  • Compressed data format
  • Transparent RPC mapping

I initially started with AMFPHP but switched to ZendAMF. AMFPHP seems to be falling behind in support with the last release in 2008 which is decades in Internet time. Zend AMF is also backed by Adobe which is a good sign. On the side note, iPhone integration looks pretty good to with a Cocoa AMF. I would have preferred C++ but I guess it will do in  pinch for now. I will be testing that next week or so.

Zend seems a bit fat, because you have to also include the Zend Framework as well. That’s something I’m going to have to figure out to see if it can add value to services I am writing.

Commonly used Game Design patterns

January 5, 2010terence

Game developers are fairly practical in their implementations. The most practical of Design Patterns that every game developer should understand intimately are:

  • Singleton – Singletons are needed but often abused as a design pattern. A singleton is basically a class with one instance. Most prior singletons were not thread-safe but with multi-processor architectures of hardware, this should be a consideration. Singletons are common used for creating loggers, database/networking access objects.
  • Factories – Factories are usually coupled with singletons. Factories are often found in resource/assset managers allow  managed assets to be created. The role of a factory class is to “create objects” based on a template with specific functionality or generic
  • Model-View-Controller – The Model-View-Controller is a way to separate (but not necessarily simply) functionality of complex systems. A Game Engine could use the MVC design pattern to sort out the various components into logical blocks of code.  MVC is used extensively in Flex development to break up monolithic applications into manageable portions. The Model contains all data used by the application. The View is what the user sees and the Controller is Application core, responding to events from the View and coordinating resources from the Model.

Ubuntu, Flex and AXDT

January 2, 2010terence

Right now there aren’t  any good open-source development environments for Flex. Everybody seems to be using Flex Builder, which you have to pay for. For me, I like things free especially since my primary web development platform is Ubuntu 9.10. I did find AXDT which, which I feel shows the greatest promise in evolving as a free alternative to Flex Builder. Plus it helps that the primary target seems to be Ubuntu.

For more information, you can go to: www.axdt.org. I have got it working with the latest Flex 3.5. I am having some trouble with Flex 4 though but that’s still in Beta. Primarily I wanted something to allow me to edit mxml and Actionscript files not caring much about layouts. I have also been able to get it working with AMFPHP. So far it has done most of what I want.