Archive for March, 2012|Monthly archive page
In my short time spent working with haXe, NME and Jeash I have used a few code IDEs. Initially, I upgraded my FDT to version 5 which is touted as having good haXe support…. not so. The haXe support in FDT5 is very poor at present. I am sure it will get better and come into line with what is usually an awesome product (and one I have used happily for years now).
The next IDE I tried was Sublime Text 2 (see image above). There is a Beta release you can try out for free. The haXe support is pretty good and there are lots of nice touches to the IDE. In particular I loved the scrolling panel on the right. I now miss this whenever I am using another IDE. It has some code completion and you can compile in the IDE itself if you want to.
However, in the last week or two I have settled on the new haXe plugin for IntelliJ IDEA (see image above). This was actually my Actionscript IDE of choice and so I have been excitedly waiting for the haXe plugin support to arrive. It is now on version 0.2.1 and the latest release features the following:-
- Type resolving improvements
- Documentation support
- New color settings
- Jump to declaration of local, std symbol or class
- Reference and Class completion
Don’t have any whitespace either side of your CDATA tags in XML. It will mess up the Fast parsing (at least for the html5 target). If I find a workaround I’ll post it up here….
I recently attended my first FITC event. FITC is focused primarily on high-end digital creativity. The conference took place in the wonderful city of Amsterdam over the end of February 2012. It was an intimate affair for a conference, with probably around 400 attendees. There was a workshop day on Sunday followed by two full days of presentations over three or four strands. There was a well-engineered mix of technical and creative talks by some key industry figures as well as some interesting sneak-peeks and major announcements. I am going to highlight some of the most interesting and important aspects of the conference (but in no way am I trying to cover everything as there was just too much to go over, and you would probably get bored 🙂 ).
The Sunday Workshop
I attended the Building Flash Games with Starling workshop hosted by Adobe Developer/Game Evangelist @LeeBrimelow. We spent a day building a 2D game from scratch using the new Starling Framework. Starling leverages the new GPU acceleration possible in Stage 3D but presents it in an almost identical way to Flash’s normal display list. This makes it easy for Flash developers to create incredibly performant 2D games simply by importing from the starling library instead of the flash library. There are obviously more steps to writing truly performant games but essentially you can achieve an awful lot for very little and we built a simple physics game called Grenades.
To create Grenades we used the impressive and more-intuitive-than-Box2D framework Nape. We also covered spritesheets and physics models using the awesome apps TexturePacker and PhysicsEditor. Grenades is very similar to the omni-present Angrybirds and Lee Brimelow did a great job of slowly layering on the code until we had a couple of levels of the game functioning with scoring, sound and even a (Flash IDE-based) level-editor.
HTML HTML HTML HTML HTML (that’s 5 HTMLs)
FITC, I believe, used to stand for “Flash in the Can” but has now been changed to “Future, Innovation, Technology, Creativity”. And this change was also mirrored in the content of the conference. In the industry there has been a huge shift in focus and excitent away from Flash to HTML5. At FITC there were only a handful of actual Flash specific talks and by the end of day one it was easy to have had the HTML5 logo burned into your retinas. So this was an HTML5-heavy affair and with good reason. For a conference that has a large percentage of (ex?)-Flash devs and designers, the issue that a lot of us are facing is how do we continue to build on what we do in the current and continually changing digital landscape? HTML5 has been heralded as the next big thing for some time now and many of the talks covered the reality of this new technology. Clients are asking for content to work on multiple platforms, behave performantly and not cost much or any more. However, the reality of achieving these things is a far more complicated picture.
Games for Kids: Flash vs HTML5
His initial path, for the graphics side of things, took him to investigate SVG as an alternative to Flash’s vector graphics strength but found performance was massively lacking. So…. he went on to look at Canvas which is getting more and more powerful at the moment. However, he found that Android devices were incredibly slow at rendering Canvas. This left him with using DOM elements to render the game world and eventually, through a process of line by line code optimisation, he was able to get something passable working across his four different test devices.
Other issues he ran into included Android’s inability to use multi-touch gestures in-game. The terrible reality of sound implementation across browsers. Often a single sound is only possible, even worse, on iOS a sound must be triggered by a button. It’s so bad in fact that in @jessefreeman‘s latest book, ‘An Intro to HTML5 Game Dev’, he surmises that with current browsers it’s probably best not to even include sound at all…… no sound in games? Not good. Webcam access is only currently supported by Opera. Video requires multiple codecs and fallback strategies. Jon also found that performance for specific browsers is, on different devices in areas such as SVG, Canvas and CSS transitions, completely inconsistent and changes in random unexpected directions with almost every release. In particular, this is a problem with auto-updating browsers like Chrome….. it will suddenly update behind the scenes and your work will be broken or will have ground to a halt.
Basically, it’s still very rough out there. Things are getting better across the board, but very slowly. His conclusion was that HTML5 is not yet worth pursuing to make cross-browser multi-platform high-level web games. He speculated that this may be the case for some time to come as browsers implement their own take on features, in their own time, with very loose ‘standards’. He wondered if cloud-based streaming solutions like Onlive might actually be the answer….
The Adobe Keynote
It was an exciting keynote from Adobe. They have re-focused their direction for the Flash Platform towards high-end gaming and video. Flash’s name is mud right now and could be forever so there is an element of too little too late to a lot of this but what they were showing was truly impressive.
- AIR 3.2 finally has Stage3D hardware accelerated 2D and 3D running on mobile. They demoed a number of games running on mobile devices with truly impressive performance. Many thousands of sprites running at 60fps. There was a look at the incredibly performant framework Genome2D. Here are a few of the AIR demoes to check out – http://www.flashstreamworks.com/2012/02/28/five-air-3-2-stage3d-mobile-demos-that-will-knock-your-socks-off/
- Multithreading is almost here.
- New mouse capabilities are ready, including mouse-lock and full right-click control.
- There were some excellent Air Native Extensions allowing you to leverage device specific functionality not available in the AIR runtimes.
- They demoed the latest version of Unreal Engine running in Flash (through Alchemy). It is actually running better than on some modern day consoles. It was very impressive to see how far Flash has come. Many large game publishers are now starting to produce console-quality web content with the new Flask player capabilities. It was noted that although these super-high-end features are not necessarily relevant to a lot of people’s day-to-day work, the power and performance will trickle down to be leveraged in more common situations.
- Monocle is a Flash profiler that was announced a few months ago. It is going to run on top of release-version flash content and allow you to analyse each individual frame of a flash movie, you can click in and out of functions, manipulate the timeline to view any state of your application and pinpoint exactly where memory or performance issues may be occurring. It even works with Stage3D.
- Hellcat is Adobe’s name for a future edition of Flash Pro. It’s 64-bit rewrite allows for some impressive performance and realtime rendering in the IDE, also a 2 second load time. All this is great…. but I would rather just have an IDE that isn’t riddled with bugs and frequently crashes.
- Adobe Edge has now reached preview 4. It’s becoming an interesting tool for more basic end-to-end HTML5 visual solutions with limited interactivity. I’m not sure what kind of code is being generated under the hood but some of the latest examples were impressive.
- The most exciting announcement for me was the inclusion of part of Grant Skinner’s amazing CreateJS framework as an extension in Flash Pro CS6. This feature will allow designers to output complex vector-based canvas animations direct from the Flash IDE as .js classes. I am going to write a separate blog post imminently with much more information specifically on CreateJS.
For me personally, to make a snapshot of the technical mood of the conference, I would say this….. The digital landscape is changing fast, the dominant years of Flash have passed and we need to figure out how to do what we have done so easily in Flash in different technologies and on different platforms. The hype would lead you to believe that HTML5 will be able to solve everything but the reality is very complex and there are problems with performance, compatability and standards at almost every turn. Allowing one company to spearhead a web technology is dangerous in terms of ownership and control but it does allow for significant progress. Compare this to the slow-moving and differing implementations of standards by the multiple boards, committee and companies responsible for the current set of browsers and it’s easy to long for what seemed like a simpler past. However, that would be to ignore the excitement and challenge of developing in this new realm.
In terms of solutions, people are not sure what the right direction to take will be yet. There often isn’t a single clear choice but there are many breathtaking new frameworks, languages and technologies coming into play. I have been looking very seriously into haXe NME recently and it’s exciting and full of potential. I want to also look much more seriously at CreateJS as it reaches version 1.0. There is also other impressive tech such as Sencha, Phonegap and Spaceport, to name a few. In terms of performance, there is no denying the incredible ground being covered at the moment. Almost every week brings an improvement to the rendering and performance of mobile devices’ browsers. Soon, this won’t be the issue that it is now and this will give developer’s more choice and freedom. These are, without doubt, exciting times to do what we do.