r/rust_gamedev • u/pockerhead • 3h ago
Mines Afloat: minesweeper on a living sea, built on the Rune UI framework with Jolt buoyancy (plays in the browser on WebGPU)
Play in the browser: https://pockerhead.github.io/rune-minesweeper/
Source (MIT): https://github.com/pockerhead/rune-minesweeper
Desktop builds for Windows, Linux, macOS: https://github.com/pockerhead/rune-minesweeper/releases/tag/v0.2.0
The board floats. Every tile is a raft on the water with real buoyancy (Jolt Physics through oxijolt), a small boat sails the channels between them to the cell you pick, the numbers are volumetric clouds that cast shadows and show in the water, and a mine sends the boat and the nearby rafts flying.
How it is made, to be fair about it: Rune gives the window, input, text, layout and the web host. The sea, boat and clouds are a hand-written wgpu renderer plugged into Rune's compositor through an effect slot. The interesting part is where the two meet:
menu labels are rendered by a second Rune runtime into a texture and printed onto the planks, so they tilt, bob, catch light and show in reflections;
the end-of-game banner is a Liquid Glass style effect slot that bends the live sea at its rim, with Rune text on top;
pinch zoom and pan on phones, wheel and trackpad on desktop, one camera for drawing and picking.
It started as a joke in the Russian Rust gamedev Telegram chat: someone had Kimi build a flat Rune minesweeper and wished for "the field as a sea with a pretty shader" and "mines with buoyancy physics". So here it is. Thanks, chat
Disclosure: the code was written almost entirely by Claude (Anthropic), with me setting direction, reviewing and testing on real devices.
Needs WebGPU: recent Chrome or Edge, Safari 26, Firefox 141+ on Windows. Some Android phones report no WebGPU adapter in Chrome; in-app browsers usually have none.