Devlog #2 — Into the water

Underwater in Level 1, looking up: the surface as a bright ceiling with the sun and the silhouettes of the blocks

For weeks I’d been looking down at that sea. I watched it ripple around the blocks, with its foam and its turquoise gradient, and every time I fell off a ledge, instead of splashing in, I ended up standing on it as if it were glass. A beautiful backdrop you couldn’t touch.

This week that changed. Now you can jump into the water. The first time I did it, from the top of the tallest block in Level 1, I stayed down there for a good while, floating among the blocks that hadn’t risen yet, watching the light pour in from the surface. It was the first moment the game truly looked like what I have in my head.

You can swim

I wanted swimming to work like in the original Refunct: something you understand without anyone explaining it. So there are very few rules:

  • At the surface you move with WASD, crouch to dive and jump to get out.
  • Underwater you move where you look, jump takes you up and crouch takes you down. Let go of everything and you hang at that depth.
  • If you fall from high up, momentum sinks you and the water brakes you. The first version sent you five metres down after a ten-metre fall, and it felt like dropping into a well. Now it’s about three: just enough to feel the impact without losing sight of the surface.

The decision I struggled with most was this one: you can only get out of the water by jumping onto a block. If there’s none in reach, you float. At first it felt like an artificial restriction, but without it the water became a shortcut to anywhere. With it, the sea is the gap between islands, and getting back to land is a small goal of its own: find a block that sticks out far enough (about 70 cm at most) and swim to it.

Two more details I really like. You can touch blocks while swimming, so a half-submerged one counts just like one you stepped on. And buttons now only respond once their block has finished rising: you can’t dive down to a button that’s still sleeping underwater and cheat.

Jumping into the water from a block, diving between submerged blocks and jumping out onto a low block

The world below

This is my favourite part of the week. When you put your head under, everything changes: the fog turns dense and dark, the image takes on a blue tint and blurs a little. And if you look up, the surface is a bright ceiling, with the silhouettes of the blocks cut out against it like shadow puppets.

When you come up, it all vanishes at once, like lifting your head out of a swimming pool and the noise suddenly rushing back.

Submerged blocks seen from inside the water, with blue fog and blur
At water level: blocks sticking out of the surface and others submerged, with a button under the water

Moving feels better

This week was also about polishing how things feel. Small changes, the kind nobody consciously notices but that make the character feel more like yours:

  • Landing has weight. When you fall from a certain height, the camera dips a little and springs back, as if you were bending your knees. The higher the fall, the deeper the dip. This one gave me more trouble than I expected; more on that below.
  • Climbing is smoother. The mantle, the move that pulls you up onto a ledge, had a jolt at the start, another at the end and a little hop when it finished. Now it rises along a curve that slows down at the top and leaves you walking.
  • Climbing at an angle. If you reached a ledge at an angle, the character snapped round to climb it head-on. Now it climbs in the direction you’re looking.
A fall from a tall block with the camera dip on landing, and a mantle onto a ledge

Two rather funny bugs fell along the way: while crouching you could instantly climb sky-high blocks, as if you had springs in your knees, and if you crouched just before falling into the water you stayed hunched forever.

A window for the groups

Designing the level is largely deciding which blocks rise together and when. Until now I did it with a bar in the scene view and a handful of loose tools, and every change was a little ritual. Now there’s a window, Block Groups, that brings it all together: create groups, move blocks between them, save their poses, preview the rise and flag errors. It opens with the Q key.

And the very first thing it did when I opened it was give me bad news: Level 1 had three groups that no button raised. They’d been sitting there, underwater and out of reach, without me noticing. That’s what tools are for.

The Block Groups window in the Unity editor with the groups of Level 1

🔧 Under the hood: a landing in two beats

The camera dip on landing looked like the easy part of the week. The first version worked straight away: you fell, the camera dropped a few centimetres and came back. I tuned the values to my taste in the inspector and called it done… Read more

Until I started playing with it. Something was off. The landing didn’t feel like a single motion but like two: first the character hit the ground, and then, after a slight delay, it started to bend. As if the knees reacted late.

Measure before touching anything

The first step was finding out whether this was real or just an impression. So I traced the camera’s speed frame by frame during an 8-metre fall:

MomentCamera speed
Last frame in the airabout 19 m/s downwards
First frame of the dipabout 1.5 m/s
The next 0.15 s1.5–2 m/s, almost constant
Reaching the bottomdead stop, almost still for 0.1 s

There it was. The camera went from falling at 19 m/s to moving at 1.5 m/s in an instant, sank slowly in a straight line, stopped dead and came back up. It wasn’t a bend: it was four segments glued together.

Two culprits

The first: it wasn’t a spring. For the motion I was using a punch function from the animation library, which sounds like what I needed but is really a shake, meant for rattling things. Its speed depends on the distance and frequency, not on how fast you were falling. With the low frequency I had chosen, the descent came out even slower and the contrast with the fall even bigger.

The second: a real delay, however tiny. The “you’ve landed” notice arrives one physics step after the actual collision with the ground. About 20 milliseconds in which the character had already stopped and the camera hadn’t started moving yet. Not much time, but right at the moment the eye is paying most attention.

The fix

I swapped the shake for a real damped spring, a dozen lines updated every frame. The trick is in how it starts: on landing, I give the spring exactly the initial velocity needed for its first peak to match the dip I want. That way the camera starts dropping fast, brakes smoothly all the way to the bottom and comes back with a gentle bounce.

Chart of the camera offset on landing: before, a slow straight descent with a plateau; now, a fast drop that brakes continuously and returns with a gentle bounce

As for the delay, the dip now starts on the first impact with the ground, without waiting for the landing notice.

Measured again: the camera’s speed goes from −19 to −13, −8, −6 and −4 m/s, braking without breaks. It drops 55 cm, overshoots by 2 cm on the way back and settles exactly where it should. One single motion.

It doesn’t fully match the 19 m/s of the fall, and that’s on purpose: stopping that speed within half a metre would take about five hundredths of a second, and it would look like a hard thud, not knees bending. What erased the two-beat feeling wasn’t the speed, but the dip starting fast and braking without jumps.

One lesson I’m keeping: when something “feels weird”, it’s almost always measurable. And measuring it costs far less than blindly tweaking values in the inspector.

What’s next

  • Give groups 4, 5 and 6 of Level 1 a button that raises them.
  • Start on the demo list: menu, music, sound effects and an end screen.
  • Decide what to do with Gym and Level 2: adapt them to the new system or retire them, since Level 1 is now the reference scene.

See you next week.

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

By:


Leave a Reply