Devlog #3 — Start to finish

Ambient's main menu: a dark side band with the logo and the Play, Options and Wishlist options, next to the blocks of Level 1 over the sea

Until this week, Ambient only existed inside the Unity editor. To play it you had to open the project and hit Play. Now it has a main menu, a pause menu with real settings, it plays with a gamepad, it has sound, and Level 1 can be finished: you start on an island, press seven buttons and reach an end screen. And above all, it’s on Steam. On a private branch, just for testing, but it installs from the library and opens like any other game. Several versions went out this week, up to 0.1.9, and I’ve tried it on the Steam Deck too.

The first of those uploads came with a surprise, though: the character wouldn’t move. More on that below.

A real menu

This was the big task of the week. It’s one of those things nobody sees in a video, but without which a game doesn’t feel like a game.

  • The pause menu. Press Escape or Start and everything stops: time, controls and sound. Behind it, the scene blurs, and that alone makes it feel much more finished.
  • Settings that work. Volume per channel (master, music, effects and ambience), display mode, resolution, vsync, frame limit, camera sensitivity, invert Y and full rebinding of keys and gamepad buttons. Everything is saved and applied on startup.
  • In two languages. Not a single piece of text is hand-written: it all comes from a translation table, in Spanish and English for now.
  • Quitting asks first, both to the desktop and to the main menu.

The main menu lives in its own scene, Title, with the camera turned towards the sea. Press Play and Level 1 loads; the idea is that later on you’ll pick other levels from there. And at the end of the demo there’s a closing screen inviting you to add the game to your Steam wishlist.

Midweek I gave all the menus a new, calmer look: a dark slate side band with a slanted edge, and cream cards for the settings, the confirmations and the end screen. With a new typeface, Montserrat, and a few simple icons drawn by the menu itself.

Opening the pause menu in Level 1: the background blurs and the settings tabs are browsed

Gamepad in hand

I wanted the game to be playable with a gamepad from the start, and as soon as I tried it with one, every seam showed:

  • The right stick was out of its mind. The camera turned dozens of times faster than it should, because of a multiplier hidden in the controls setup. Now, with the stick fully pushed, you turn 180 degrees per second, and it has its own sensitivity setting.
  • The menu was a maze. There was no way to get down from the tabs to the options, and pressing up or down bounced you between two tabs in a loop. Now left and right switch tabs (LB and RB too), down enters the page and the d-pad no longer escapes from it.
  • On the Steam Deck, the d-pad sometimes didn’t respond. A little noise from the stick could cancel the press. Fixed.
  • Jumping and crouching. Jumping with the trigger fired too often; now it only jumps when you press it. And crouching (which is also diving) moves to the left trigger.
  • Quitting the game on the Steam Deck caused a crash. I’ve patched it, though without being able to look at the Deck’s own log yet.

There’s now a small controls guide in the bottom corner, discreet and semi-transparent. With a keyboard it mimics the real layout of the keys (WASD, Control bottom left, the space bar to the right), and with a gamepad it switches by itself to Xbox or PlayStation icons, depending on the last one you touched. And one detail: the key or button you’re pressing lights up, with a soft halo behind it. It’s very subtle, one of those touches that make the guide feel alive.

Top right, small and faint, you’ll also see the game version and the code of the change it was built from. For anyone testing builds, that saves a lot of questions.

The controls guide in the bottom left corner, switching from keyboard to gamepad and highlighting the pressed button

Level 1, start to finish

The big news of the week: Level 1 can now be completed in full. I set up every group of blocks, and the chain is closed: seven groups and seven buttons, each one raising the next, until the last one ends the level.

That also changes what winning means. Until now the game counted touched blocks, but the real win condition is pressing every button. Press the last one and the end screen opens. The block counter still exists, but only as debug info, in a discreet little panel at the bottom right that only I see now.

And there are two changes you really notice when playing:

  • Blocks carry you. Before, if you were standing on a block while it rose, the block passed right through you. Now it lifts you with it, or pushes you if you’re beside it. Riding a column up out of the water is one of those things that has to just work.
  • You can activate a block while it’s rising, without waiting for it to finish. And while swimming, only its top face counts: brushing it from below or from the side while diving no longer does.
Moving through Level 1 while blocks rise out of the water around the player

Finally, sound

Until now Ambient was a silent game. This week it gained sound everywhere: a sea ambience in the background, jumps, landings that sound louder the higher the fall, the climbing move, going in and out of the water, and the menu sounds. They’re all placeholders for now, but they already tell you things.

The most special part is the blocks: every rising block makes its own sound, a rumble of grinding rocks coming from the block itself. Each one with a slightly different pitch and starting at a different point in the sound, so a whole group rising doesn’t sound like one block multiplied, but like a small landslide around you.

There’s also room for music now, with a test track until the real one arrives. And when you dive, everything (music, effects, blocks and sea) goes dull and muffled, like putting your head under in a swimming pool.

One sea to the horizon

The water in Level 1 was made of two pieces: a detailed mesh for the nearby water, with its waves, and a simpler one for the distance, with a hole in the middle where the first one fitted. It worked, but I really didn’t like having two seas stitched together.

Now it’s a single piece, 800 metres across, that gets more detailed the closer it is to the camera: right next to you it has detail down to about twenty centimetres, and on the horizon, very little. The waves fade out with distance so the far water doesn’t flicker, and the seam is gone. On top of that, it uses a third of the vertices the near water alone used to have.

In the last change of the week I also reworked the shape of the waves: they no longer come from formulas, but from a texture that deforms the surface and gives it its relief.

The sea of Level 1 from the top of a block, unbroken all the way to the horizon, with a block floating nearby

Heading for February

This week I also set myself a date: the February 2027 Steam Next Fest, which starts on the 22nd. The plan is tight, because what matters isn’t that day, but having the store page live by the end of November and the demo sent to Valve around 11 January. So this week’s pieces (menus, settings, end screen, sound) aren’t a coincidence: they were first on the list.

I’ve also been mulling over what each level will be. One of the ideas I like most: each level will be a specific hour of the day, fixed, each with its own mood. Level 1 would be the calm, sunny morning you already know.


🔧 Under the hood: works on my machine

The first time I uploaded the game to Steam, I installed it from the library, opened it and… the character wouldn’t move. No walking, no crouching, no jumping. The camera didn’t even turn with the mouse. And in the editor, the same project worked perfectly… Read more

Everything else was fine: the water moved, the blocks were in place. It’s the classic “works on my machine”, and it’s one of the most baffling kinds of bug, because it takes away your favourite tool: testing in the editor.

Ruling out suspects

A compiled game (a build) isn’t the same as the game inside the editor: it’s a packaged version, without tools, that starts from scratch. So the first step was working out what differed between the two. I ruled things out one test at a time:

TestResult
The game’s log (Player.log)Clean: not a single error
Is everything needed inside the build?Yes, with its references intact
Is Steam to blame? Running the .exe directlyStill doesn’t move: the problem is the build
Does anything get through? Moving the mouseThe camera doesn’t turn: no input gets through at all
What changed since the last build?It was the first one since I upgraded Unity in September

The fact that absolutely nothing got through was a clue. It wasn’t that the character ignored the keys: it was as if the game had no keyboard.

Looking inside

So I made a special diagnostic build that leaves notes in the log at every step of the chain: when the controls are switched on, whether key presses arrive, whether the character receives them. I opened it, held W for a few seconds and closed it.

The log made it clear: at the moment the game switched on its controls, there were zero devices connected. No keyboard, no mouse, no gamepad.

The problem: arriving too early

The game’s controls are handled by a kind of settings file that lives in the project, not in the scene. That file switched itself on as soon as it was loaded. In the editor nothing ever goes wrong, because by the time you hit Play, Unity’s input system has been running for a good while and already knows your keyboard and mouse.

But in a build, those files load very early, before the input system has detected any device. My controls were switching on in a world without a keyboard, and once switched on like that, they never found out the keyboard had shown up. With the previous Unity version the startup order must have been different, which is why it had never happened before.

The fix

A very small one: the controls no longer switch themselves on. Now an object in the scene switches them on, and it does so once the scene has loaded. By then, the input system has already found the devices. In the diagnostic build, the log went on to show 3 devices present when the controls switched on and 24 movement notices while I held W. I moved. I uploaded 0.1.3, the first one you can play from Steam.

The sequel

Two days later, the same ghost came back through another door. The controls guide was supposed to switch to gamepad icons when you used one, and in the editor it did. In the build, it didn’t. And with a gamepad, the mouse cursor stayed visible in the menus.

This time I recognised it straight away: once again, a question of order. The code that tracks which device you’re using signed up for the “you switched devices” notices very early in startup, and in a build Unity wipes those subscriptions just before loading the first scene. The notice was silently lost. Now it signs up after the scene loads, and the guide switches from keyboard to gamepad as it should.

What I’m taking from this: the editor is a comfortable place, but it isn’t the game. A build starts from scratch and in a different order, and anything that depends on “who gets there first” has to be tested there.

What’s next

  • Settle the game’s final title and its logo: it’s the first thing the Steam page needs.
  • A field of view (FOV) setting in the video options.
  • Autosaving your progress: right now only the settings are saved.
  • Test the build thoroughly on the Steam Deck, starting with that crash on quit.

See you next week.

Enjoyed this? Get every new devlog post in your inbox.

By:


Leave a Reply