Santabot: A Unity3D Flash Game

All right, so a Christmas game like “Santabot vs. The Flying Saucers from Mars” may be a day late (or 364 days early) and a few quid short, but it’s the best I got at the moment. When the good folks at Unity3D announced the beta 3.5 preview version with Flash export I downloaded the thing as quick as I could. After a few false and frustrating starts (had to install the app 3 times before it started working properly. Have no idea why – I haven’t heard that happening to anyone else), I was up and running.

After building a quick and simple game here are a few thoughts.

  • Unity3D is freakin fast. The game may be simple, but still it was just a day’s work. Building the same thing in plain ol’ Flash would have taken I don’t even want to think about how long. Even using a 3D engine like Away3D, it would have been a fairly substantial undertaking. Bottom line – if you’re looking to build 3D Flash games, Unity is the way to go.
  • The output files are a bit chunky. A developer build (which compiles much quicker) of the .swf file is around 16 megs. A compressed release build is still around 2.5 megs. Hopefully future versions of Unity will allow us to break up assets into smaller .swf files and load them at runtime as needed.
  • The jury’s still out on scripting in Unity. I’m sure there are some best practices which I have not discovered or learned, but writing code for Unity seems really clunky. It reminds me of the dark days of Flash (Flash 5, that is) when scripts had to be attached to MovieClip instances and refer back to the _root object to communicate with others. It may be nice if Unity implemented something similar to Flash’s document class to function as the Unity project’s entry point.

In any case, what little experience I’ve had with Unity, I’ve always enjoyed (installation difficulties aside). Now if I could just learn some 3D modelling software so I wouldn’t have to resort to just sticking primitives together like Legos in Swift 3D.

Anyway, you can check out the game here. Be sure to use a browser with the release version of Flash Player 11 installed. If you happen to try it in a beta version of Flash, very bad things will happen.

Maybe I’ll build it up a bit more and enter it in the Unity3D contest. I’m sure a lot can be done in the next 10 days or so…

4 Comments »

  1. northwolf says:

    Will we write as3 code in Unity? I hope they can give us a good news in the future.

  2. Devon O. says:

    The javascript for Unity is so close to AS3 that syntax really isn’t an issue. Unfortunately trying to structure the code in an application is sort of a cross between writing javascript for the web and AS in Flash 5. Sort of a soup sandwich (i.e. a mess)..

  3. I advise you not to use JS, but C# instead. Sure, the syntax is something to get used to, but it won’t cost you too much effort.

    The pro’s are the use of native events (like AS3 Signals) and a very big .NET library you can use out of the box, which contains a lot of useful code like validators, formatters, converters, services etc.

  4. Devon O. says:

    Thanks for the tip, Bart. I always wondered if there were any benefits as I’ve heard performance is the same either way. The native events and additional tools could be quite handy, though…

RSS feed for comments on this post. / TrackBack URI

Leave a Reply

Devon O. Wolfgang

Technical Reviewer of “The Essential Guide to Flash CS4 AIR Development”

Contributing Author of “Flash AS3 for Interactive Agencies”

Senior Flash Engineer PopCap Games, International Ltd.

Portfolio

Santabot: A Unity3D Flash Game


All right, so a Christmas game like “Santabot vs. The Flying Saucers from Mars” may be a day late[...]

Magnify – a jQuery Plugin


Let me begin by saying right up front, I have not given up on Flash[...]

It’s a Starling Halloween


Getting some practice for the upcoming Zombie Apocalypse[...]

Getting Started with Proscenium

So I had a chance this weekend to sit down and play around with Adobe’s new 3D framework for Stage3D, Proscenium, and thought I’d share a few of the results (a word of caution, there are no preloaders for any of the examples and may load a bit slowly). The first shows some reflections and [...]

Particle Editor for Starling Framework

An in-browser particle editor for the Starling 2D Framework for Flash Player 11.

So Long and Thanks for all the Flash on the Beach

So, another Flash on the Beach has just has just drawn to a close[...]

Game Development Tips from the Trenches of PopCap

Well, this is a post that’s a bit overdue, but, thanks to a well timed bank holiday, I finally had the opportunity to sit down and type up what I’ve been meaning to for some time now…

Old Skool Demoscene FX as 3D Textures

Many moons ago, I got the idea to create some demoscene plane deformation effects in Flash based on the formulas found here: http://www.iquilezles.org/www/articles/deform/deform.htm. I posted my less than desired results up on wonderfl. Thankfully, fellow wonderfl user, Hasufel, forked my attempt and optimized the hell out of it coming up with this. Well, today, for no [...]

Making The Gaming Scene (A Change in Careers)

And for my second blog post of the day, a much more personal note. After about three years of working with, what I would consider as objectively as possible, the best digital agency in Ireland, vStream Digital Media, I have made the immense career decision to leave the agency world and enter the arena of [...]

Feeling Lucky?

Images to dice, kick ascii style [...]

Adventures in Playbook Land

Adventures in Playbook Land


Now that the ordeal is over, I thought I’d take the time to sit down and share my account of what it was like to develop a Blackberry Playbook application using the Adobe Flex SDK[...]

Flash

Draw it for Me

So many ideas – so little time….

Kinect Application Running in Dublin

So, on Friday I just wrapped up our latest project at vStream Digital Media, a Kinect powered flipbook that lets users flip through the hand written notebooks of Philip Lynott of Thin Lizzy. The app uses OpenNI, runs in Adobe AIR and is currently on display at a pretty bitchin’ Phil Lynott exhibition running in [...]

Beach Ball Kinect Party

So we finally got a Kinect camera hooked up to a pc at work and, while it doesn’t seem to be legal to use it for commercial projects (but, hey, I’m no lawyer), the boss asked me to get it figured out and come up with some ideas just in case it would be feasible [...]

Facebook and Flash – A Book Review

Now, I should begin by saying I absolutely hate building Facebook applications. And I build a lot of them at work. Every time I get the word from above that we’re doing another FB app, I just groan – both inwardly and out. It’s become a running joke of the office. Why do I dislike [...]

Multitouch Fluid Dynamics with AIR for Android and RTMFP

The other day I was having some fun playing around with Eugene Zatepyakin’s (aka @inspirit) FluidSolverHD (Actionscript port of C++ fluid dynamics library, MSAFluid. Or is MSAFluid, the processing/java port of the C++ library? In any case it’s a very cool fluid dynamics thingamabob – the HD version using Alchemy). After a bit of tinkering, [...]