Fragments

On building a world out of memories, and finding new ways to look back at the places we leave behind.

Listen to this articleHuman narration by Tommy GeocoNarration by Tommy Geoco

I’ve been designing software for most of my life, but I’ve always wanted to make a video game.

I grew up playing them and, in 2011, moved to Canada to work in the industry. It was a childhood dream. The experience wasn’t quite what I imagined, but my fascination with games never really went away. If anything, spending the following years designing software made me appreciate them even more.

That sentence about moving to Canada could easily be a line on my CV. It’s accurate, but it leaves out almost everything I remember about that period. The disappointment of a dream that turned out smaller than I’d imagined, the people I missed, and the unexpected happiness of being somewhere nobody knew me.

I’ve always found it difficult to write about myself. Curiously, I don’t have nearly as much trouble making things that are personal. So I wondered if a game could be a more interesting way of telling that story. Not necessarily what happened, but how I remember it feeling.

I called it Fragments.

It’s a small world, about 1.3 kilometres from one end to the other, divided into six places. In my notes, each has a word associated with it. Consciousness. Conformity. Distance. Becoming. Judgment. Creation.

I’ll leave those here for anyone curious enough to play.

A world that small, I assumed, would be a small project. I was very wrong.

A black screen with one small flame low at the left.

A cavernConsciousness

A lit doorway in a cliff over fog, and dark figures hanging in the air.

A landscape of stoneConformity

A snowed-in landing between two flights of stone steps, lit by the explorer’s torch, with small red flags on the rock.

SnowDistance

A dark wall of rock with one opening, and a small light walking toward it.

A mountainBecoming

A street of dark buildings seen from above, with a few lit windows and street lamps.

A cityJudgment

Tall plain slabs of concrete with thin lines of light between them, and three small figures on a level line.

Something beyond itCreation

Four dimensions

There’s a particular kind of difficulty in making games that I don’t think I’d fully appreciated before.

Designing an interface already involves a considerable number of decisions. Typography, colour, information, interaction, motion. But making a game is a little like being a product designer, an architect, a cinematographer, and a sound designer at the same time. And unlike a film, you don’t even get to decide how long someone looks at a scene.

I’ve started thinking of it as designing in four dimensions. There’s the image, the sound, the way things respond to you, and time. It’s the relationship between them that makes the medium so interesting.

Consider something as ordinary as walking.

The character in Fragments is a small traveller with a backpack and a torch. At the scale of the game, he’s sometimes only forty pixels tall. You can barely see his boots, yet I spent an unreasonable amount of time working on them.

High fidelityThe concept: his look, and the reference for his animation

~3 million trianglesIn the real render of this model; the low poly version has 41,237

40 pixelsHow tall the game draws him

Original concept

Low poly version

In one test, a foot that was supposed to be planted moved sixteen centimetres along the ground. You couldn’t really see those sixteen centimetres, but you could immediately tell that something was wrong with the way he walked.

His animation is now driven by the distance he travels rather than simply by time. Each metre advances the animation by the corresponding fraction of a stride, reducing the sliding to about a centimetre in that same test.

By the clock

16 cmA planted foot slides, in the game’s test

By the distance walked

1 cmIn the same test

Something else happens at the moment his foot settles. You hear a footstep and, depending on the surface, that same event leaves an impression in the snow or creates a splash in a puddle.

A sound

A printIn snow

A ringOn water

Seasoned game designers probably take this for granted. But I’m a noob, and it took a single footstep for me to understand what I meant by four dimensions: an image, a sound and a response, all arriving at the same instant.

I find it fascinating that we can perceive an inconsistency in something too small to consciously examine. There’s a similar phenomenon in interface design, where an animation can feel sluggish even when nobody can quite tell you why.

Now imagine that problem across an entire world.

Even the torch required some artistic licence. The light illuminating the environment doesn’t actually originate from the flame you see. It’s positioned a little further away to produce better shadows and prevent the character and surrounding rocks from becoming overexposed.

The flame, and the lightThe light at the flameAs wide as a door, and he is burnt outThe lightThe flameThe light where the game has itA metre off: further out, higher, ahead

It isn’t physically correct, but it’s considerably more convincing. Cinema has been getting away with this for a century.

Making a mountain

I didn’t write a single line of code for Fragments. The agents handled all of that.

On the creative side, though, I was involved in practically everything. Concept art, character design, composition, colours, lighting, narrative, music, and an almost absurd number of small decisions.

It turns out that having something capable of building almost anything you describe is incredibly useful, provided you can describe what you want.

Try describing a mountain.

The early environments had a quality I couldn’t quite put my finger on. Everything was oddly convenient. Rocks appeared in tidy groups, cliffs were suspiciously symmetrical, and anything worth looking at was placed almost exactly where you’d expect it to be.

As someone who spends most of his time designing interfaces, I found this rather amusing. All those years learning about visual hierarchy, alignment, and composition, and here I was trying to make something that looked like nobody had designed it.

Nature is considerably less polite than a layout.

I found it much easier to work with the agents in clay. No textures, no elaborate materials, just grey geometry and enough light to understand its shape. This made it possible to concentrate on the silhouette of a mountain, the amount of negative space between two structures, or where a path should disappear into the fog.

There’s little point in spending hours texturing a mountain whose shape you don’t like.

A dark painting of a great cliff over fog, with a cleft in it lit red from within: a small figure stands with a light on a ledge of rock that runs along the cliff’s foot to the cleft, snow on the rock’s shoulders above.

Concept art

The same place from the game’s camera in plain grey clay, with no fog and no surfaces: the ledge running up to the right along the foot of the cliff, the cliff’s columns of rock over it, and standing stones along the ledge’s near edge.

Clay

The same view in the game: the explorer with his torch on the wet ledge, the rock beside him lit by it, the cleft in the cliff glowing red further on, fog under the ledge and a far wall of rock with snow on it in the cloud behind.

The game

Once the composition felt right, I could introduce assets from Quixel Megascans, which contain scans of real-world surfaces. Much of the detail you see in the rocks comes from textures that describe how light should behave across relatively simple geometry. The torch can illuminate a crack that doesn’t actually exist in the model.

Layered rockThe cavern

Volcanic rockThe cavern

Rock under snowThe snow

AsphaltThe city

ConcretePast the city

GranitePast the city

Having lived in Canada for fifteen years, I’ve had plenty of opportunities to observe what snow does to a landscape. What fascinates me is how much detail disappears beneath it. Preserve too much of the underlying rock and the mountain looks painted white. I wanted the snow to soften the terrain, gradually revealing the rock again wherever the cover became thinner.

Thinking about how much detail to reveal became particularly useful when building a world for the browser. There’s only so much geometry and texture data you can keep in memory. The fixed camera gives you an advantage, though. Knowing how the world will be seen means you can be quite generous with detail in some places and remarkably economical in others.

Fog is perhaps my favourite example of this. It gives the landscape a sense of depth and scale without having to render everything that might exist beyond it. In fact, I think the world feels considerably larger because of how little of it you can see.

It also happens to be one of my favourite things to art-direct.

Pointing and humming

Something I’ve become increasingly interested in is how we communicate ideas to these new tools.

We tend to think of prompting as writing instructions. But for much of Fragments, writing was actually a fairly inefficient way to express what I wanted. Sometimes the easiest thing was to open Blender and render something myself, or draw a rough version of a scene and hand it to the agent.

I gave them all sorts of material. Concept art, sketches, photographs, colour palettes, and occasionally a terribly drawn shape that conveyed exactly what I meant.

Sometimes even an emoji would do. I wanted red flags scattered across the snowy landscape, so I sent the agent one. 🚩

This particular environment represents my move to Canada. There were plenty of red flags along that journey, too.

I couldn’t resist.

A screenshot of the snowy landing with three small circles drawn on it by hand in red.The same landing in the game, with a small flag of muted red in each of the three places.

Three circlesWhere the flags go

A screenshot of a street corner with a wobbly white outline of a rock drawn over it by hand.

An outlineWhere the rocks go

A plan of a ledge from above, on a grid of metres, with a thick blue line drawn by hand along it from 0 to 15 metres, a little off the orange line of the way.

A blue lineThe way along the ledge

The author’s storyboard of the game’s first minute, nine panels in pencil, each with its name written over it: pitch black; ignition, a tiny glow; light reveals the cavern; cavern context; approaching the exit; exit opens; stepping out; onto the ridge; final game view, outside.

A storyboardNine panels, before any of it was built

The first minuteThe game, recorded

Then there was the music. My parents made me learn the piano when I was about ten. I wasn’t particularly enthusiastic about it at the time, but knowing a little music theory has occasionally come in handy.

I’ve been writing music for the game, too. The sounds of the puzzles, the little melodies that accompany a discovery, the chord progressions that carry you from one place to another. Sometimes I know exactly what I want. Other times, I’ll give an agent the beginnings of an idea and see where it takes it. I enjoy being surprised by the result.

There’s a musical passage in Fragments, played as a door opens, that moves from G minor to A and then needs somewhere to land. I could hear that resolution in my head but couldn’t quite name it. After a few unsuccessful attempts at explaining the progression, I picked up my phone and hummed it.

The agent identified the missing note as D. It also helpfully informed me that one of my notes was about a third of a semitone flat.

The floor is doneG minor laid down slowly, then a hollow A: it stops short of homeG minorADIts answer

What I love about this isn’t that an agent can name a note. It’s what becomes possible once it has. A melody hummed into a phone can become an orchestral arrangement. A rough drawing can become a place you can walk through.

These are primitive ways of expressing ideas, yet sometimes they’re more precise than language. I suspect a lot of the interfaces we’ll use to create things will look far simpler than the software they control. More like a sketchbook, or a microphone.

There’s something liberating about that.

The pleasure of figuring things out

Partway through development, I realised that walking from one memory to another wasn’t particularly interesting on its own. I was happy with the environments, but the experience was beginning to resemble a slideshow with very expensive lighting.

I wanted the player to be involved in uncovering the story, so some of the memories became puzzles.

The first arrives as a voice you can’t understand. The recording has been separated into three strands, each out of step with the others. As you bring them into alignment, the voice gradually becomes intelligible.

I liked the idea of making a memory something you have to reconstruct rather than simply collect. It also gave sound an actual role in the gameplay, beyond establishing atmosphere.

Designing the puzzles taught me something I’ve come to appreciate about games like Tetris and The Witness. There’s an enormous difference between understanding a problem and solving one.

A good puzzle should be easy to understand and hard to solve. Not hard to understand and easy to solve.

It’s a distinction that’s surprisingly easy to miss when you’re the person designing it.

The three strands in that first puzzle would occasionally move a little, which I assumed was a sufficiently obvious indication that they could be manipulated. During a playtest with a couple of friends, it wasn’t. They had just walked past a number of strange things moving in the air. Why would they interpret this particular movement as an instruction?

Two small arrows were enough to make the interaction understandable. Once you’ve moved a strand, they disappear for good.

I wanted the mystery to exist in the world, not in the interface. At the same time, some of my favourite games are the ones that refuse to hold your hand. I think there’s a difference between giving someone enough information to begin and telling them what they’re supposed to discover. The former is good design. The latter takes away some of the pleasure.

For the other puzzles, I borrowed ideas from games people might already know. Spatial relationships, patterns, mechanical interactions. Familiar enough that you can develop an intuition for them, but different enough that your existing knowledge doesn’t immediately give you the answer.

Three strandsSlide them until they agree

A wordOne line, the letters in order

A labyrinthLay the light, never twice

Three at onceEvery key moves all three

A thing imaginedBuild it in an order that fits

One thing I had to consider was where a puzzle sits in the journey. Most puzzles in Fragments reward curiosity, but two of them actually prevent you from moving forward: one inside the mountain and another at the final door.

I deliberately made those easier. I also wanted the nature of each puzzle to have some connection to its surroundings. Inside the mountain, for instance, you have to find your way through a maze. I remember that period of my life feeling like one.

A puzzle that takes fifteen minutes to solve might be wonderful in The Witness, but in Fragments, it could undo the emotional momentum of everything that came before it. I also imagined that many of the people playing this game wouldn’t necessarily consider themselves gamers.

It’s a counterintuitive problem, because making a puzzle better in isolation can actually make the game worse. Sometimes the right thing to do as a designer is to make something a little less interesting on its own, so that everything around it becomes more interesting.

Hiding the machinery

One of my favourite decisions in the game came from a rather unromantic problem: loading.

I’ve always found loading screens a little disappointing. You’re about to enter another world, but first you’re reminded that it’s a piece of software. I wanted the opening of Fragments to feel more like the beginning of a film.

The game begins in complete darkness. As the character lights his torch, the cavern slowly reveals itself, giving you just enough light to make sense of your surroundings.

440 MBOn the graphics card, 0 m in0Metres walked1,27474 MBTo fetch, for the whole walk85 MBOne 4,096 px picture, unpacked583 MBThe most held at once

So I let the browser discover the world at roughly the same time as the player.

The game prioritises the things you encounter first, allowing the rest of the environment to arrive as the opening unfolds. Even the texture formats differ. Most of the world uses GPU-compressed textures to reduce memory consumption, but in a throttled connection test, using a different format for the cave reduced one loading interval from twenty-one seconds to thirteen.

Every picture compressed21.1 s7.9 MB to fetch the cave36 MB on the graphics cardThe cave’s left as they are13.1 s4.0 MB to fetch the cave178 MB on the graphics card

The cave uses considerably more graphics memory as a result, but at the beginning of the game, there’s plenty to spare. Nothing else has arrived yet. So the cave spends memory to buy time, and gives it back once you’ve walked out of it.

The darkness is what makes this possible. A torch only lights what’s near you, so that’s all that needs to exist. As you take your first steps, the rest of the world quietly arrives. By the time you step outside, it’s there.

You’re never looking at a loading screen. You’re looking at a dark cave.

0.0 s0 s2 s4 s6 s8 s10 s12 sScreenWordsSoundDownloadThe page’s own words goThe torch catches, and the cavern comes up round it“Best experienced with headphones”“Move”The music risesThe cavern and the explorer, 7.6 MBThe rest of the first stretch, still arriving as he first walksThe page’s own words goThe torch catches, and the cavern comes up round it“Best experienced with headphones”“Move”The music risesThe cavern and the explorer, 7.6 MBThe rest of the first stretch, still arriving as he first walksDAF

The opening is as much about sound as it is about light. Notes are timed to individual phrases, sometimes arriving on a particular word, so the text becomes part of the composition rather than another layer of interface sitting on top of it.

I love the idea that someone might be sitting in front of a computer that’s furiously downloading assets, compiling shaders, and preparing a three-dimensional world, and all they’re experiencing is a moment of stillness.

Things we leave behind

There’s a stone bridge in Fragments that comes apart after you cross it. Some of its structure remains suspended in the air, but you can no longer return to the place you came from. That mechanic is important to the story, and I’ll leave its meaning for you to interpret. But it’s also important to the browser.

The explorer starting across a bridge of stone slabs on tall piers over fog, with a lit doorway in the cliff on the far side.

Crossing

The same place a moment later: most of the slabs are gone and a few hang in the air, the piers stand alone in the fog, and the explorer is on the cliff by the doorway.

AcrossThe piers stay

Once a section of the world becomes unreachable, the game can eventually release its geometry and textures from memory. Crossing into the snow, for example, makes it possible to discard the original cavern and a couple of hundred megabytes of rock with it.

There’s a subtle complication, though. Being unable to return somewhere doesn’t necessarily mean you can no longer see it.

You can still walk to the broken edge of the bridge and look at the landscape behind you. The game accounts for this by determining the furthest point you could walk back to and calculating what an imaginary camera positioned there would still be able to see.

Only when the landscape is no longer reachable or visible does it disappear.

The cavernA bridge of stoneA bridge of ropeSnowNothing has closed behind himHe can walk back to itA camera at the edge could still see itLet go

I didn’t expect to find something so poetic in a memory management system. The game remembers a place you can no longer return to, but only for as long as you can still see it.

I’ve always admired how games can make technical limitations part of their language. A constraint that initially seems inconvenient can turn out to be the most interesting property of a design. It gives you a reason to make a decision you might never have considered otherwise.

I wonder how many beautiful ideas we’d miss if we could build everything exactly as we initially imagined it.

A change in perspective

As you move through Fragments, the world gradually becomes less natural and more architectural. Stone becomes asphalt, mountains become buildings, and eventually almost everything is reduced to pure geometry. There’s a reason the world takes this particular shape, and I’ll also leave it to your own interpretation.

I’ve always loved architecture, particularly brutalism. There’s something honest about exposing the structure of a building. A few simple forms, carefully arranged, can feel far more monumental than something intricately detailed. I wanted the latter part of the game to have that quality.

Much of the story is told through these changes in the environment, although some are more subtle than others. The density of the fog, the gradual disappearance of colour and light, the familiarity of a sound returning somewhere unexpected. Some of these decisions came from very specific memories.

Perhaps the most meaningful of them is a change in the camera.

The camera looks down35.3°

From aboveFrom the side

For much of the journey, you’re observing the character through an orthographic camera, looking down at an angle of roughly 35 degrees. There’s no conventional perspective, so things retain their scale regardless of how far away they are.

I like the emotional distance this creates. You feel small, yet you have a view of the world that the character doesn’t. It’s a little like looking back at something that happened to you years ago, when you can finally see things you couldn’t see at the time.

Later in the game, something changes. A familiar world becomes darker, following a loss that is deeply personal to me.

Eventually, the way you see it changes too.

The camera gradually descends into a side view, with the player’s own movement driving the transition. Stop walking and the camera stops. For a brief moment, you can exist somewhere between the two perspectives.

I wanted a change in perspective to be exactly that. Something you experience rather than something you’re told has happened.

Some experiences permanently alter the way you see the world. It’s difficult to describe this in words, but games give us the rather wonderful ability to express it literally.

Fragments

One of the reasons I admire Hideo Kojima’s work is that I often find myself thinking about his games long after I’ve finished them. Sometimes it’s a seemingly insignificant detail that I can’t quite make sense of, or something I only understand years later.

I like that he leaves things for us to wonder about.

While making Fragments, I found myself becoming attached to that idea. There are things in the game that might mean something different to you than they do to me. That’s what I love about art, even the kind that runs in a browser.

I could explain why the figures are suspended in the air, why certain structures are arranged the way they are, or why a particular note plays at a particular moment.

But explaining those things would take away one of the reasons I wanted to make a game rather than write about them.

A few years ago, I could barely have imagined making something like this on my own. An entire little world, with its own architecture, music, inhabitants, and peculiar rules, running inside a browser. What’s curious is that, at a time when we’re becoming increasingly capable of creating almost anything, I’ve found myself just as interested in what I can leave unsaid.

I still find it difficult to write about myself. There are things in Fragments that I probably wouldn’t know how to put into words, even today. But I knew how I wanted them to feel.

And for once, I had a way of making them.