Back to all writing

My Ocean Was a Better Warning System Than My Streets

Game Dev Series•Part 29•6 min read•By Mikhil

I wanted a coastal city, so of course I gave the prototype an ocean. Water made the edge of the world interesting before most of the inland buildings were worth looking at.

It also gave the player a very efficient way to discover when the world was lying.

A stretch of sand might look walkable while the physical terrain ended somewhere else. A pier could reach into the water but still need actual support and collision. A rescue behavior could prevent a soft lock while also revealing that the boundary between land and sea had been defined too crudely. The coast was not decoration; it was the place where several assumptions met and began disagreeing.

I already wrote about the particularly humiliating beach fall-through problem earlier in the series. This chapter is about the wider coastal experiment that surrounded it.

The ocean was larger than the land could justify

In the original coastal work, the relationship between the inland polygon, shoreline bands and large ocean surface needed explicit treatment. A plausible blue plane did not define a reliable place to stand.

The first coastline rebuild also exposed an uncomfortable difference between the world seen from above and the world used from the ground. The land polygon might have a perfectly closed boundary while the visible sand extended beyond the area the rescue rules considered safe. The pier might have a proper mesh while its origin no longer met the new slope. Every one of those mismatches is easy to ignore from a distant overview and impossible to ignore while walking. The sea was the first part of the environment that made the player's trust in the ground a central design problem.

A street-level prototype can cheat geography. Put a wide ground plane under the buildings and a player can walk without worrying about where the world ends. The coastal rebuild removed that convenience. The ocean had to remain water; the island had to occupy one continuous valid footprint; the player needed a clear response when stepping beyond safe land.

The changing coast also made every later visual improvement riskier. A pier could be repositioned to look better from above and accidentally lose its connection to solid sand. A seawall could gain nicer geometry while its collision stayed on the old boundary. An ocean effect could make shallow water attractive while leaving a visible discontinuity at the shore. I began separating the physical foundation from its visual finish so each could be validated on its own. The sea became the clearest example of how a place can look correct at a glance and still fail the basic test of being safely explorable.

Rescue was useful, not a substitute for terrain

An emergency recovery control was a practical answer when a prototype could put a player somewhere inaccessible. It kept testing possible while reminding me that the physical world still needed repair.

It helped to think of the recovery control as a development safety net rather than a secret superpower. The player shouldn't have to know which older save belongs to which terrain revision. If the character loads inside a structure, recovery should get them back to usable ground without silently deleting the rest of their history. But I also needed to report every time that happened so the underlying placement or compatibility problem could be corrected. A successful recovery from a bad position is better than losing a session. A world where recovery is never needed is better still.

The early project included an emergency recovery control because the world could place the player somewhere unusable. A saved position might now be inside a newly solid prop. A buggy coastline could move someone out of ordinary walking space. A narrow doorway could trap the character after a visual revision. Giving the player a safe way back was a practical safeguard while those risks existed.

The button also had to be predictable rather than spectacular. An emergency recovery that moves a player somewhere arbitrary creates new uncertainty. The destination must be a known usable area, and the action should not silently reset inventory, money or other progress. This was an early reliability feature more than a gameplay mechanic, and I wanted it to remain that way. If I ever reached a point where players were relying on recovery as a normal shortcut through the town, that would be evidence of unfinished navigation rather than a clever convenience feature.

The pier arrived before its coast was dependable

A dock can be visually appealing from above and still require a continuous ramp, supported deck and correctly aligned collision to feel like a real structure. These were exactly the sorts of details the early models had to start respecting.

One of the early Block by Block coastal builds included a pier while I was still working out how the island, its sand and the ocean should behave in the actual game. I liked the pier as a landmark. It also exposed the problems of treating a coastal structure as a separate object from the ground that supports it.

The early independent coastal review checked the shape of the land, resource references, the pier collider and the broad relationship between the ocean and the island. Those were legitimate source-level checks. They did not establish that somebody had walked to the end in Godot under ordinary collision and movement.

The earlier shoreline bugs had already shown how badly that promise could fail. A sandy surface might look present while the player passed through it or triggered water recovery in the wrong place. The pier presented another version of the same question: does the deck the player sees actually support the walk they are invited to take?

The coast taught me to look for interfaces rather than isolated objects. Where does terrain become sand? Where does a sand slope meet water? Where does a wooden ramp contact land? Which edge is a beach and which edge is a rescue condition?

I still care about the color of the shallows and the shape of the rocks. But those questions only become interesting after a simple one has been answered: can the player walk towards the water and trust what they see? The ocean made that standard difficult to ignore.