./Gaming

Virtual Game Controllers

I play a lot of games – goes with the territory I suppose. Traditionally my platforms of choice have been desktop / laptop PCs (Windows or Mac OS X) and dedicated game consoles (PlayStation, XBox, Nintendo Wii, DS etc). More recently I’ve started playing more games on my phone(s) and tablet(s) – yes I have a few :).

The interesting thing about solely touch based devices is that most games look to replicate virtual equivalents to physical hardware – joysticks / thumb sticks and buttons are prime examples. With the continued spread of devices that now support the Flash Player and AIR runtimes I thought I’d knock up a simple set of virtual controllers for use in some of my game demo files for touch based game development.

The one thing that became apparent was that on paper it seems pretty straightforward – after all it’s just a controller right? However there were a few things that didn’t initially occur to me until I actually put the controls on a device and tried them out in a real world test.

To avoid just creating a short post containing the ‘tips n tricks’ I learnt I decided to actually write a couple of articles about how to create a virtual thumb stick controller using Flash Professional / Flash Builder and highlight the potential pitfalls in those articles. I say a couple of articles, as once I started to write the process up I realised that just having it as one post would have made it quite heavy.

You can grab the source code and read the first part of this two article series below:

Discussion

4 comments for “Virtual Game Controllers”

  1. […] for touch based devices – tablets, smartphones etc. You can read more about this in my earlier post, as well as find the links to both parts […]

    Posted by Virtual Game Controllers pt2 | .: Blog.FlashGen.Com :: Mike Jones - Flash Platform Evangelist :. | April 4, 2011, 13:53
  2. interesting read – http://blog.flashgen.com/2011/03/21/virtual-game-controllers/. now to get around to trying it out ;-)

    Posted by melkybee (melissa) | April 13, 2011, 20:48
  3. […] can read the Virtual Game Controllers article here, and download the source directly from Github […]

    Posted by Virtual Controller Code Now On Github | .: Blog.FlashGen.Com :: Mike Jones - Flash Platform Evangelist :. | April 26, 2011, 10:50
  4. […] tend to come with only a touch screen. This I opted to map to a set of virtual controls (you can read more about the ones I used and download the source to experiment with) and map the keyboard calls to the direction controller […]

    Posted by My 10 Tips When Developing For Multiple Devices | .: Blog.FlashGen.Com :: Mike Jones - Flash Platform Evangelist :. | July 16, 2011, 15:56

Post a comment