Hi everyone! I made a small cozy game where you keep a lighthouse. Boats lost in the dark drift and wander, but every boat inside your pool of light sails toward it. So you sweep the beam to gather a little fleet and lead it past the rocks into the harbour before dawn. The fleet includes rowboats, trawlers, a ferry, grandpa asleep in his bathtub and a giant rubber duck.
Play (free, desktop and mobile): Shine Ahoy! – Play free online | Glowbit Games
There are 16 nights in 4 harbours with fog banks, drifting icebergs, whirlpools, currents, lightning, pirates who hate the light and a kraken who loves it. A fog horn stops boats in the dark, sends the kraken diving and scatters pirates. There is also an endless Long Night mode and a Harbour Maker where you can share bays as text codes.
Some technical bits
- The whole bay is one shader plane: the vertex shader moves the waves with the same sum of sines that the boats bob on (
waveAton the CPU), so hulls sit on the water. The fragment shader draws scrolling ripple normals, a sky and moon reflection with a glitter path, and the lighthouse’s pool of light with specular sparkle. On top of that come boat lantern reflections stretched toward the camera, foam around rocks and icebergs, spiralling whirlpools, chevrons drifting along currents, shore surf, the harbour’s warm glow, cloud shadows, lightning flashes and the sunrise. - The beam: a soft volumetric cone from the lamp to the pool on the water (view-angle falloff, drifting dust), a lamp glare with an anamorphic streak, and a real
SpotLight, so boats, rocks and the kraken light up when the beam passes over them. Rain streaks glitter where they cross the beam, and fog banks glow when lit. - Procedural models: boat hulls are lofted and merged with vertex-coloured primitives, and every bow has googly eyes. Lamps and windows are a separate glowing mesh so they bloom. The kraken’s eight tentacles are rebuilt on the CPU every frame as tapered tubes along wavy curves, so they can wiggle, rear up to grab a boat and slide under when it dives. One lesson: my first hull loft had inside-out winding, so the hull sides were invisible from the camera. Always check close-ups of new procedural meshes.
- GPU particles: one ring buffer of points animated in the vertex shader for boat wakes (glowing plankton on the reef), splashes, bubbles, chimney smoke and confetti at the docks.
- Render-free simulation: boats, the light, rocks, icebergs, currents, whirlpools, fog, the kraken, pirates, lightning and scoring are plain TypeScript with no three.js, deterministic for a given seed. Unit tests and an autopilot run in Node, and a test checks that the autopilot gets at least 1 star on every night. The trailer is scripted against the same sim.
- Any screen: the camera looks down on the bay and frames it for any aspect ratio. Portrait phones get a steeper view that pans toward the light, with edge arrows for boats off-screen. Post is
postprocessingwith mipmap bloom on a half-float buffer, AgX tone mapping, vignette and SMAA. - 100% procedural: there are no image or sound files. Web Audio makes the sea swell, rain and gulls, a toot for each boat, the fog horn, wood crunches with “glub glub” bubbles, the kraken’s slurp, pirates going “Arrr!”, a rooster at dawn, and a 6/8 sea shanty for each harbour. The whole game is about 267 KB of gzipped JS.
Stack: three.js r186, TypeScript, Vite, postprocessing.
I’d love to hear how it runs on your devices, and whether grandpa made it home!
