New Mx features

I’d quite like to write about two new features in Mx that I’ve worked on in the past 2 or 3 weeks. First, a video:


Download video

The first feature is MxDialog (thanks to Iain Holmes for contributions to this too) – a container widget that lets you do visually pleasing modal dialogs. For those situations when you absolutely must have modal dialogs.

The second feature is animated window rotation. Unfortunately, I can’t capture at the frame-rate it runs at, but do check out the code and try it yourself – it’s super smooth. As far as I’m aware, all the widgets in Mx work correctly when rotated too.

These features demonstrate two things that are really easy to do with Clutter: Fast, pixel-based effects (blurring, low-lighting), and arbitrary transformation without breaking input handling. Both Clutter and Mx are available from the usual place.

]]>

Pill popping and happy wombats

Damien, Neil and I gave our joint talk about doing interesting and unusual things in Clutter yesterday. I think it went down alright, hopefully we can give more of this kind of talk in the future, showing people how you can use Clutter in cool ways.

For my part of the talk, I spoke about developing small, fun games. I intended the advice I gave to apply to developing any small game with anything, though it definitely applies to making games in Clutter. You can find the text and slides for my talk here. Like Neil and Damien (and the rest of the Intel OTC crew), I wrote my talk in pinpoint, pippin‘s excellent, new, Clutter-based presentation tool.

I wrote two games before the talk:

Both of these games are available from my git repository. Pill-popper works with any recent version of Mx and Clutter, Happy Wombats currently requires master clutter-box2d and the ‘kinetic-scrolling’ branch of Mx (which should shortly be merged – I’ll update this post when it is). When these games are more complete, I hope to submit them to the MeeGo garage, and perhaps suggest their inclusion for gnome-games.

Happy Wombats includes an editor, so I’d love to receive some levels at some point. I’ll be improving things soon, but it’s already quite easy to use. Guadec has been great so far, I hope we can keep up the momentum of awesome developments until the next one ๐Ÿ™‚

]]>

New hosting

Thanks to the awesome Nick Richards, I have new hosting (the old OpenedHand server that hosted my site is disappearing soon :(). If you’re reading this, everything has gone smoothly ๐Ÿ™‚

Oh, and I’ll be at Guadec, presenting a talk with Damien Lespiau and Neil Roberts. You won’t want to miss it!

]]>

My first VIM script

I’ve switched over to vim for quite a while now (over a year now, I think), after being a die-hard gedit user. My productivity has gone way up since, but there’s always been something that’s bugged me: When you press , it always goes to the start of the line. Really, I want it to go to the first non-whitespace character, and if it’s already there, go to the start of the line (same behaviour as most modern graphical editors). After an unsuccessful twitter appeal, I decided to write my first ever VIM script to do this:

Putting that script in your ~/.vim/plugin directory, and then mapping it with

gives me my desired behaviour ๐Ÿ™‚ It’s a pretty naive script, but it does the job.

]]>