Posts Tagged ‘freelance’

Shaun in the City

Sunday, April 5th, 2015

shaun-in-the-city-1The Shaun in the City art trail is a series of 120 unique sculptures placed around London and Bristol. This app was created to help you find your way to each and every one, tick them off as you go, and much more besides! You’ll earn achievements along the way, discover details about the statues and have an all-round good time!

I developed this app with the lovely folks at Aardman Animations. Testing involved an eighteen hour day trip to London and ten hours of walking a marathon and a quarter to check the location of all the sheep! Bleat that if you dare!

shaun-in-the-city-2(Proceeds from app sales go to the charity)

Buy the app for your Android phone/tablet.

Buy the app for your iPhone/iPad.

Visit the Shaun in the City website.

Send a donation to the charity.

MixaMonster

Sunday, April 5th, 2015

mixamonster-1Can you discover the correct colours to mix up the lovable interactive monsters in this Windows Phone game for kids? If you can figure out the correct combination of colours, you’ll get to play with a wacky creature and their accessories. The trial version lets you find 4 monsters, and the paid version unlocks the full set.

mixamonster-2

I worked on this game with the wonderful talented illustrator Imogen Adams and producer extraordinaire Nils Hellberg, and others at Turbo Island Games. The game concept, monster design and illustration is all Imogen’s imaginative work.

Milka Advent

Monday, November 17th, 2014

milka-introCelebrate the magic of Christmas with the Milka Advent Christmas Countdown app. Explore the snowy alpine world with your real Milka chocolate calendar, and discover a mini games and activities each day.

 

 

milka-countdownOnly available in Austria, Germany and France, the English screenshots you see here are from the development version, not available to the public. This app was developed with the lovely folks at Play Nicely for Mondelez.

 

 

milka-shareGet the app on iPhone/iPad

Get the app on Android

 

 

 

 

 

milka-calendar

 

 

 

New Peugeot 108 in 3D

Sunday, June 29th, 2014

peugeot-108-exteriorExplore the new Peugeot 108 car in full 3D on your phone or tablet. Try out all the different paints and themes, zoom in to every feature of the car and explore the interior. There’s information about the features and options, animations, photos and videos and even more in this fully featured iOS/Android app. Built in Unity3D with the lovely folks at Play Nicely.

You can even explore an augmented-reality version of the car through your device’s webcam, if you have a suitable physical marker (available to print from the app).

Download for iPhone/iPad (free)

Download for Android (free)

pugeot-108-interior

 

 

 

 

 

 

 

peugeot-108-AR

Hero Squad 2

Sunday, June 29th, 2014

HeroSquad2Race to the emergencies as fast as you can in this open-world driving game. This is a sequel to the original popular Hero Squad game, with all new missions, new gameplay mechanics and a new continuous score-attack mode.

 

Play Hero Squad 2: Rapid Response in your browser.

Wizards vs Aliens: The Eye of Bashtarr

Sunday, June 29th, 2014

WizardsVsAliensTest your platforming and puzzling skills in this game for the CBBC show Wizards vs Aliens, built by Aardman Digital. Use each character’s strange and unusual powers of magic and science to levitate rocks, hack enemy sentries, control the environment, slow time and more.

Play Wizards vs Aliens in your browser.

I worked on level design, UI and back-end server integration on this project, with the talented Tom Milner as lead developer.

Home Sheep Home 2: Steam

Wednesday, February 26th, 2014

hsh2_steamOnce upon a time I made a cute browser game called Home Sheep Home for Aardman Animations. It was a surprise hit, so we built a sequel, Home Sheep Home 2: A Little Epic. We released this on the web in low-res episodes, and on iOS as an app, and as a glorious super-high-res packed-with-extras Windows desktop version.

But this was the little game that dreamt of being on Steam, the PC’s premier download platform. It’s taken years to get there, but finally it has made it!  And in style too, with tons of Steam achievements and lovely Steam cloud saves too. So what are you waiting for? Go and get it immediately! Especially if you enjoyed Thomas Was Alone which takes much of its gameplay mechanics from this game.

Buy on Steam

The Hobbit Official Companion

Wednesday, February 26th, 2014

TheHobbitOfficialCompanionExplore the legendary world of Middle-earth with this official companion to The Hobbit. Built for HarperCollins with Aardman Digital, this interactive 3D map contains tons of articles about your favourite characters, places and more.

Try free on your iPhone/iPad
Try free on your Android phone/tablet
Buy full app on your iPhone/iPad

ss Great Britain: Full Steam Ahead

Sunday, August 25th, 2013

Full Steam AheadDesign, build and sail epic steam ships in this educational game from the ss Great Britain Trust and Aardman. Cross seas, carry cargo, fight tug-o-wars, try for top speeds and more. Make sure your ship’s hull is strong enough to withstand the rage of the sea. If it isn’t up to scratch, it’ll break up and sink!

Play Full Steam Ahead in your web browser.

Download as an app for your Android tablet.

Download for your iPad.

Technical Analysis

This is the first game I’ve released to work on several platforms: in a browser, iOS and Android. It turns out Flash is a superb platform for this, within certain constraints. The two big issues you have to deal with are screen shape/size, and mobile performance.

Screen shape/size

IMG_0058The array of screen resolutions and aspect ratios available now is bewildering. Just on iOS you have everything from a tiny low resolution iPhone 3, way up to a crazy high-res iPad4. Add in Android devices, and you have only two choices – design at a fixed aspect ratio and accept that most devices will have black bars at the edges, or you can make your design re-flow itself to different devices.

We chose the latter, and I’m glad we did. Black bars on devices look lazy. We created the design around the iPad2’s screen, but always with the possibility of it scaling to wider displays. We used a background texture that could scale up until it fit any screen. Then added elements like panels, flourishes and buttons that were driven in code to sit in calculated positions such as the corners, centre-top, absolute centre and so on. The centre content was scaled to fit as best as possible without breaking its aspect ratio, and everything else was scaled by the same amount then repositioned to its fixed positions.

My approach to this in build involves tagging movieclips with various properties to tell them where they should go and how they should scale. This is far easier than specifying the names of everything that should be positioned in code, and helps avoid you becoming lazy about specifying suitable auto positioning properties for things.

We couldn’t use huge high resolution retina textures for everything due to performance and filesize worries. Instead we mask some of the lower resolution textures with overlay noise, and keep detailed things like text and the fancy flourishes in vector so they render at the native resolution.

Performance

Mobile performance is lousy for native Flash display list elements. It’s better with bitmaps than with vectors, and you can take advantage of cacheAsBitmap to get the best of both worlds if you design with it in mind. Native display list elements are far easier to work with than frameworks like Starling however, so I decided to try to stick with them as much as possible. In this game, that means that all the UI screens are native display lists, and when you’re driving your ship around in real time, everything is rendered in Starling on the GPU. This hybrid approach works well, but you have to design the UI with minimal motion in mind. This game suits this approach well, but not all would.

IMG_0054This was my first experience of Starling, which turns out to be a lovely framework. It’s small and simple enough to be understandable (even modifiable as I’ll discuss later), but powerful enough to be very useful. Mirroring the display list APIs means that seasoned Flash programmers feel at home with minimal learning effort too.

It’s well worth being aware of how Starling works for context switches and draw calls. If you can keep these low, performance may surprise you with how strong it is! It’s quite easy to accidentally add in context switches by interlacing sprites from different textures in the same display list container.

Performance on iOS initially looked awful all round. Then I realised that the default quick build mode gives you an interpreted binary, which executes very slowly indeed (maybe 10x slower for code execution). There are other options for creating properly native code, so make sure you understand what each option does before you write off iOS performance as hopeless. The native compile however added an extra 5 minutes to the overall build time on a quad-core i7 processor (which for the test version was just 10’s of seconds).

Because of the excessive build time for a high performance iOS build, I used Android tablets as my mobile development devices and only cross compiled to iOS occasionally to make sure things were still good there. I found AIR’s compatibility across Android and iOS to be exceptional, and the code contains almost no special conditions for iOS. The only major difference I found was in managing selections in textfields, which I couldn’t get to work with iOS’s built in software keyboard.

The other advantage of building for Android first is that installing on devices is far easier. It’s hard to imagine how Apple could have made their provisioning system any less helpful to developers, and the exact opposite can be said for Android. I set up my compile script to simply copy the Android APK file into my Dropbox folder on my desktop, then I could just install it via Dropbox on my devices with just a couple of taps. I could send development links to anyone else via a Dropbox share link too.

While I’m on an Apple rant, I’ll also add that the Google Play store release procedure is leaps and bounds ahead of the Apple App Store’s confusing iTunes-Connect mess. And forcing developers to own a Mac to upload iOS apps? Lousy.

Simulation

Full Steam Ahead is a game about sailing ships of your own design. For that, we needed a half-decent physical model of breakable ships and wavy seas. We chose Box2D as usual for our physics engine, but had to improvise how to do the breakage and water elements.

Destructible Hulls

The ships you design in Full Steam Ahead are capable of breaking up if they hit the shore, sea floor, are overloaded or just badly shaped. A wide and weak ship can be broken up by the action of the waves too. To model this, I take the ship-shape that the user has drawn and chop it into squares on a grid. Then I add the beams that the user has specified around the edges. On top of all that I join adjacent hull cells and beams etc with weld joints. Each frame I check the stress at each joint. Over a limit specified by the materials in question, and I delete the joint and add some damage to the hull texture.

This approach is great because it deals with any situation thrown at it. If a ship is bent in half over a big wave, it will snap along the middle. If the tide goes out and it scrapes a big rock on the sea floor, it will break the hull in the right place. You can even add an engine that is too powerful and rips itself free of the hull at the right point.

What this doesn’t do however is sink. Buoyancy is based on the area below the water, so if a ship floats, so does a small chunk of that ship (as far as Box2D is concerned). To deal with this, the game keeps track of which edges of which chunks are nominally open to the sea. You can deliberately leave parts of the ship open (e.g, the deck) to save weight and cost. We also mark edges as open to the sea if their weld is deleted through being overstressed. If any open edge is under the height of the sea at that point, it starts to flood into the hull’s cell. As it floods I increase it’s density up to a limit, to simulate the extra weight of water inside the compartment.

Flooding a single cell works well, but feels unrealistic. Only the edges of the ship flood when exposed to water, and the rest stays dry. I tried just flooding every cell a little when the ship was leaking, but this leads to more unsatisfactory looking results. A ship open at just one end will sink evenly, rather than going down nose first. Also, a ship that breaks into two parts – one that floods and the other that is still seaworthy – still sinks both halves. The water does not ‘know’ that the two parts are disconnected.

The solution was to spread the water from each cell to its neighbour along the welds. If a weld is present, the water is slowly equalised between the two cells. If there is no weld, the water does not cross into the next cell. This means that a ship floods gradually from any damaged point, not necessarily evenly. A broken but seaworthy chunk may stay floating forever while another part could break off, flood and sink.

Sea

Box2D provides a built in Buoyancy Controller class which gives you a single perfectly straight water line across the world. It extends infinitely in either direction and does not support curves. It works by slicing shapes against the line, and measuring the portion under the water. That part is perfect for Full Steam Ahead, but I had to add the waves myself. The solution was to model the surface of the waves as a sum of multiple sine curves, all defined in the level designs. These are sampled and drawn to the screen as modified Starling Quad objects (they don’t have a texture, just an alpha colour). The modification is that they don’t have to be perfectly rectangular. Instead they are trapezoid columns, together modelling the top of the wave in segments.

full-steam-ahead-buoyancyTo compute the physics, each floating cell of the ship is given its own buoyancy controller (blue lines in the screenshot). Each frame, I update the controller by re-sampling the sea waves at the X position of the object. As far as each individual floating item is concerned, the sea is flat (although probably angled and moving over time). Aggregated together, the ship’s hull experiences a curved wave.

With any complex simulation like this, it is essential to be able to see what’s going on behind the scenes while developing. The screenshot below shows the cells of a broken ship in pink, with red lines indicating broken welds. Yellow lines indicate flooding points (filled in yellow if they are currently underwater). Pink circles show centre of mass of each cell, and have darker centres if they are more flooded. The large white circle shows the centre of the largest connected part of the ship, and is used to determine what the camera watches.

full-steam-ahead-debug

 

 

 

Newsround: Reporter Rush

Sunday, June 9th, 2013

Command a team of reporters, directors and camera operators across the globe in this time-management game. Test out your multitasking skills to see how fast you can collect the news. Built for the awesome Aardman Digital and the excellent BBC Newsround team, this game includes live feeds from today’s news.

Play Newsround: Reporter Rush

 

This game also has a sister game, developed alongside. It’s a rhythm and timing game where you’re trying to edit a live news broadcast. I did a little integration work on it, but mostly it was built by another developer.

 

Play Newsround: Master Control Room

 

Technical details

Combining live news feeds with real-time 3D graphics in Flash made for a complex build, especially given that we weren’t using Stage3D to handle high-speed performance.  The excellent Away3D engine handles drawing the globe and flight paths. All 3D assets are created at runtime, including special custom-meshes for the flight paths that can link any two points on the globe with a ribbon. The globe is surprisingly accurate, and you can feed in longitude/latitude coordinates from any standard source to pinpoint spots on the globe itself.

All 2D billboards are added in Flash over the top of the 3D content. We project 3D world spots into the screen space and attach standard movieclips. These are depth sorted according to their original Z position, and made invisible or turned into alternative representations when they are behind the globe.

We went through many iterations of positioning algorithm for the mission billboards. Originally they stacked against the edges, but that lacked any dynamic feel.  Then we tried a Box2D solution where the boxes were kept from overlapping by physical rules, and glued to the matching spot on the globe by springs. This worked OK, but could often become jittery when too many items were trying to stack into the same space. You could also get the springs ‘crossed up’ by rotating the globe so that items crossed over the centre line. Not idea for UI that you’re meant to interact with. The final solution that you see is a pretty basic projection and scaling of a point above the ground spot, then skewed out towards the edges. We found that allowing the billboards to overlap didn’t harm gameplay since you can simply turn the globe to find the ones you want. The game also raises the one you’re hovering over to the front of the display to help with visibility.

As with almost all BBC content, this game is accessible to people with switch controls – those users who have disabilities that severely restrict their control options. The entire game can be played using just tab and space, which can be mapped to a blow/suck tube, giant buttons, sound inputs and all sorts of other things with specialist hardware. Adding these controls is always a pain, and especially so in a game with a dynamically shifting UI like this one. However, the payoff is that the game does not exclude people with disabilities – a thoroughly worthy goal.

We went to town on the fancy effects a little in this one. Note the way icons pop up and down, spring out in a flower as several people come to the same location and so on. These effects take a long time to add, but are surprisingly effective at enhancing a game’s overall feel.