I’m pleased to announce a game we’ve been working on is now out. A collaboration between The Creation Agency and Bitmode (my previous home), we bring you The Great Snowball Fight!

Snowball Fight

The game is played over Google Maps, launching virtual snowballs at unsuspecting players in order to rank up, earn points and even win prizes from retailers you hit. You can also add buddies, connect via Facebook and receive special powerups.

Utilising Flash with AIR 3 and native extensions, we were able to build a game for iOS, Android and also PC. The game uses native extensions for deeper platform integration, such as the compass sensor or push notifications, as well as GPS to pin-point your location.

Head on over to the site to download the game and get throwing some snowballs!

Update: See comments for iOS compass extension source.

  • Ian

    Posted: December 14, 2011


    Hi Richard,

    Which maps api did you use - and how?

    Thanks,

    Ian


  • Rich

    Posted: December 14, 2011


    Hi Ian,

    Static maps API into a Loader, the only way I could rotate the map but not the avatars really. It meant I had to manually plot the avatars over the top, so I had to dig into mercator projections to map longitude/latitude to pixels at each zoom res (Google Maps zoom level 1 represents something like 14 billion pixels), it's out there in some random Java/VB snippets but yeah quite tricky!


  • Pascal

    Posted: January 8, 2012


    Would you be willing to post your iOS native extension for the compass?


  • robin

    Posted: January 9, 2012


    Second that - would be great if you'd be willing to make the ios compass extension available to other developers!


  • Rich

    Posted: January 10, 2012


    Hi guys,

    The plan was to upload the AIR extensions as there's not much code to them but it's tedious to write and test, I just haven't had time. Below is a link to the iOS and Flash code, also the script to compile the ANE, not tidied up or anything. but use it as you wish.

    For the Android extension we based it on Christian Cantrell's example (check out his blog for more), and also wrote a dummy "desktop" swc that just returns isSupported->false for the "default" target in extension.xml, so that it runs in the emulator as well as on Android and iOS.

    Download iOS extension source code


  • Robin van Emden

    Posted: January 11, 2012


    Hi Richards, that is great! Thanks a lot!


  • Pascal

    Posted: January 12, 2012


    Thank's a lot, Richard!


  • Pascal

    Posted: April 9, 2012


    Hi Richard,

    I looked at the extension source code file you provided and am not finding the .ane.

    Can you please include it?

    I am relatively new to programming AS3: compiling it myself from the source files (looks like C++?) is a bit out of my league...

    Thank you.

    - Pascal