ENC Arnhem — The Spirit of Waterpolo

2026

A water polo game in the browser: play with ENC Arnhem in the Valkenhuizen pool against the computer or a second player.

ENC Arnhem plays its home matches in the Valkenhuizen pool in Arnhem. In this game you control the team in a 3D version of that pool: the 25-metre pool with its tall window wall, the gallery with a glass railing and the white trusses with round and hexagonal openings. The field is 25 by 15 metres, as ENC plays at home. The caps and colours come from the club; the club logo is used with permission. The players and the opponents are fictional.

The game was made to promote playing water polo at ENC Arnhem. The main menu, the end of every match and the children's guide have a button to the club's sign-up page for a trial training.

Matches follow the 2026 World Aquatics rules: seven players in the water, a shot clock of 28 and 18 seconds, 18-second exclusions, penalties from 5 metres, offside inside 2 metres and a penalty shootout after a draw. The junior mode follows the KNZB rules for under-12s. You choose Men, Women or Mixed U16 and play against the computer at four levels or against a second player at the same computer. There are single matches, afternoon and evening matches, a tournament, a season with a table, top scorers and players who improve, a penalty shootout, a training course in four lessons and a sticker album. The game comes with an illustrated guide to water polo for children, with the rules, a field to tap on and a quiz.

The match itself is a separate simulation with a fixed time step, independent of the graphics: swimming, passing, shooting (including lobs, skip shots and backhands), diving goalkeepers, a referee and a tactical AI that moves the ball around, uses the extra player and defends during an exclusion. The water runs a ripple simulation on the GPU with waves behind every swimmer, patches of light on the bottom and splashes. All sounds and the music are generated in the browser.

Built with three.js, TypeScript and Vite, with Claude Code as programming assistant. The players, their animations, the motion design of the menus and scoreboard and the children's guide were made by the Claude Fable model. The painted player portraits and illustrations were made with gpt-image-2. Automated tests check the rules, the AI and the game in the browser.

Technologies

three.js TypeScript Vite WebGL Web Audio Vitest Playwright Claude Fable gpt-image-2

More of my work

Browse the full portfolio or read the blog.

More work