» Log in

From a dusty old blueprint...

Magnetic Billiards

...to a brilliant new video game!

Magnetic Billiards: Blueprint

 

Super exciting window stuff

Blog posted by JPickford on Mon, 13 Apr 2009
Subject: Magnetic Billiards: Seriously Casual

JPickford

Perhaps not the most exciting image I've posted but this is what I've been up to this week. For some reason I really enjoy working on this kind of interface stuff.

A while back I added a windowing system to Magnetic Billiards. It works with a simple mark-up language which allows us to mix text and images and have keywords which provide hyperlinks to other windows. This has been very useful in presenting all the help information for the game and the script driven nature means Ste can easily add content without needing me to recompile anything.

More recently I added a couple of dynamic elements; buttons and text entry fields. These were needed for the more interactive help stuff we've added lately and to allow multiple usernames / accounts on one PC.

Buttons in the current implementation are images but we realised that buttons with text in them would be very useful (particularly for our new project which is already underway). Whilst implementing a new kind of button with a text field is fairly straightforward I thought it would make more sense if those buttons were actually fully scripted windows so we could make full use of the mark-up language, mixing text and images etc.

This all went pretty smoothly but the clipping of the windows was almost too much for my tiny brain. There was already a simply clipping system which clipped the contents of the window against the window itself (allowing for the window to be resized and the content to scroll) but the actual border and background of the window didn't need clipping. To get sub windows to work I had to make that stuff clippable but also clip the contents of the sub-window according to the state of it's parent window as well it's own state. This quickly gets recursive and a right headscratcher.

Thankfully I got it all straight with some reasonably elegant code during a bit of a late-night coding session with the help of a bottle or two of Leffe Blond.

 

Permalink to this post: http://www.zee-3.com/magneticbilliards/blog/view.php?post=168

Comments

Only logged in users can comment on this post.

Return to Blog summary »

 

Magnetic Billiards is a fresh family of puzzle games by The Pickford Bros.

The first game, Magnetic Billiards: Blueprint for iOS, is no longer available for download.

We're currently working on the follow-up, Magnetic Billiards: Seriously Casual, coming to PC soon.

Plok Vol 2 now available on Kindle, iBooks and in print

Buy Pickford Bros prints on BigCartel

Support Plok on Patreon

» View the FAQ for support.


Magnetic Billiards: Blueprint new feature demos on YouTubeBlueprint
demo videos


Follow PickfordBros on TwitterFollow
PickfordBros


RSS feed for The Pickford Bros BlogSubscribe to RSS feed


Follow the development of Magnetic Billiards through this blog.

Blog / Archive / Press Cutting History

 

A game by The Pickford Bros

The Pickford Bros

Metacrtic ratings:

» All Accolades

Magnetic Billiards: Blueprint, Pocket Gamer Gold Award - 9/10

Also by us!

Click below to discover our most recent games.

Naked War

Workshop