Three.js

HexGL

HexGL is a futuristic browser race built on Three.js. It is older than the current three npm line, but it is still the game people mean when they ask for a Three.js racing example you can clone.

HexGL
Three.jsracingJavaScriptMITExample
Ad
Engine
Three.js
Language
JavaScript
Genre
racing
License
MIT

Who it is for

  • JavaScript developers targeting WebGL
  • People comparing Three.js games to a full engine like Godot
  • Intermediate: expect to modernize imports

What you can learn

  • A complete Three.js game loop: track, ship, camera
  • Browser performance tricks from a shipped web racer
  • How a 2010s WebGL game is structured versus a Phaser scene

Clone and run

  1. Clone BKcore/HexGL.
  2. Serve the folder with any static server (npx serve, or the repo’s stated command). Do not double-click index.html if modules fail.
  3. Use a Chromium browser. Track assets are large; wait for the first load.

This is a game, not an engine tutorial. APIs have moved. Use it to learn camera and speed feel, then rebuild pieces on a current three package if you ship in 2026.

Public repositories. The short descriptions are written for this site.

Editorial notes reviewed 2026-10-05.

Related source

Quiz