r/webgpu • • 12h ago

Pelagos: a free open-world archipelago game on raw WebGPU, no engine

18 Upvotes

I've been working on Pelagos, a free open-world game set in an endless archipelago inspired by the Adriatic.

The entire game is built directly on WebGPU, with no game engine and no 3D library. I built it with the help of AI coding tools.

Play Pelagos: https://pelagos.wasd.fly

The video above was recorded from the in-game trailer, which also runs live in your browser:
https://pelagos.wasd.fly/?demo=short

The world is generated from a seed. Change it in the settings and you'll get a different archipelago, with its own islands, towns, roads and weather. The music is generated as you play, too, and changes with the time of day and weather.

Explore coastal towns, quiet coves, mountain roads and open water. Travel by sailboat, motor yacht, speedboat, jet ski, motorcycle or seaplane. Take on optional jobs, meet other players, or just pick a destination and see where you end up.

You can walk around the islands and explore boat interiors. The waves respond to wind and swell, storms gather in the distance, and the world shifts from day to night. The game runs in your browser, with nothing to install.

I also made WASD Launcher for Windows 10/11. It puts WebGPU and WebGL games on one start page and opens them in standalone windows, with graphics settings geared toward gaming. With the same game open it uses about a quarter less memory than Chrome. It's free, open source, under 1 MB, and doesn't need an installer:
https://github.com/alexz006/wasd-launcher/releases/latest

Under the hood: an FFT ocean, volumetric clouds, and a world that is a pure function of position. The game itself is one HTML file under 1 MB (about 370 kB over the wire), with no image, model or sound files: everything is generated in code. The ocean started from web-ocean by Noniv (https://github.com/Noniv/web-ocean), and the clouds are loosely based on cloudscape by Fishypants (https://github.com/Fishypants/cloudscape).

I've tested Pelagos on an RTX 3090 Ti, Android, and iPhone. I'd love to hear how it runs on your device - and what you'd like to see added to the game.


r/webgpu • • 57m ago

Introducing Halcyon, a GPU-accelerated UI framework for Rust

Post image
1 Upvotes