Overview

Palet breton lets you play palet on a board, in 3D, in the browser, with nothing to install. You throw like a real hand, underarm: move your finger down to swing the arm back, then flick it up to release the palet. In the garden or in the yard of the Le Sympati'c bar, against Simon, Maryvonne or Tonton Fañch. The game is hosted on the domain of Ti Palet, my 3D printed indoor palets. It is in French.

Architecture

  • Three.js for the 3D and Rapier, a physics engine compiled to WebAssembly, for the palet: damped landing on the poplar board, collisions between palets, detecting when it stops.
  • A throw filmed on a real actor: the game finds the key moments of the animation on its own (arm furthest back, release). The finger scrubs through the backswing, the palet leaves the hand on the exact release frame, and the legs are recomputed to keep the foot on the line.
  • Light characters: a home-made tool converts Mixamo characters into compressed glTF files (meshoptimizer, WebP textures), about 1 MB instead of 6 to 41.
  • Everything else is generated in code: textures, sounds and the app icons.
  • A 100% static site, served by IIS. A service worker keeps the game on the device to play offline.

Screenshots

The throw

The throw

Underarm, the arm swinging like a pendulum

The board

The board

Three palets around the jack

Le Sympati'c bar

Le Sympati'c bar

The yard of a country bar, rebuilt from a photo

Technologies

Three.jsRapierWebAssemblyJavaScriptViteglTFPWA
An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please reload the page.