· Midnight Outpost Team · Devlog  · 2 min read

Devlog #10 — Grass Rework

Every zone now has living grass — individual tufts that sway in the wind and sort correctly with the player. The world feels a lot more alive.

Every zone now has living grass — individual tufts that sway in the wind and sort correctly with the player. The world feels a lot more alive.

The world needed more life. It has it now.

From Tilemap to Tufts

The old grass was a TileMapLayer with a wind shader applied to the whole layer — it looked okay, but every tile moved in lockstep and the player always rendered on top of it. No depth, no sense that the grass existed in the same space as you.

The new system replaces the painted tilemap with individual grass tuft scenes — small Node2D instances scattered procedurally across each zone’s ground tiles. Each tuft has its own shader, its own position, and its own place in the y-sort stack. Walk north through a field and the grass will appear in front of you. Walk south through the same field and it falls behind.

Wind Shader

Each tuft uses a custom grass_tuft.gdshader that keeps the base of the blade locked to the ground while letting the top sway. The bottom half of the sprite is completely frozen — no sliding roots, no floating blades. Only the upper portion moves, responding to a layered wave function with an occasional gust on top.

The wind parameters are tuned per zone. Forest and plains get a fuller sway. Ocean shores get a lighter, faster flutter. Dense zones are somewhere in between.

Blue Herbs

The dense empty zone now has a second layer of blue wildflowers scattered at lower density over the existing grass. Same wind shader, different sprite, slightly softer movement. It makes that zone feel distinctly different from the open plains without adding complexity to the zone script.

Zone Coverage

Every zone in the world now has tufts: the outpost surroundings, forest, mine, lake shore, plains, village, cave exit area, all eight ocean border zones, and the three empty flavours. The farming plots in the plains exclude grass properly — tilling a cell with the hoe clears any overlapping tufts at the same time.

The old grass TileMap and its wind shader have been removed from the project entirely.

Back to Blog

Related Posts

View All Posts »

Devlog #9 — Firearms

Devlog #9 — Firearms

Pistols, revolvers, and an SMG have entered the outpost. Find them in the world, keep them loaded, and hold the line — guns are now part of the loop.

Devlog #8 — The Village Zone

Devlog #8 — The Village Zone

A settlement stands further out than you've ventured before. The Village Zone brings explorable buildings, lootable interiors, and a trader willing to do business if you have the coin.

Devlog #7 — The Lake Zone

Devlog #7 — The Lake Zone

A shimmering body of water now sits at the edge of the known world. The Lake Zone brings animated water tiles, a handcrafted shoreline, and the first fishing item — even if the fish aren't biting yet.