Three.js
HexGL
HexGL 是做在 Three.js 上的未来感浏览器竞速。比现在的 three npm 线旧,但人们要「能克隆的 Three.js 竞速」时,通常还是指它。

Three.js竞速JavaScriptMIT示例
Ad
适合谁
- 做 WebGL 的 JavaScript 开发者
- 把 Three.js 游戏和 Godot 这类完整引擎对比的人
- 中级:预计要改导入方式
能学到什么
- 完整的 Three.js 游戏循环:赛道、载具、摄像机
- 已经上线过的网页竞速里的性能手法
- 2010 年代 WebGL 游戏和 Phaser 场景的结构差别
克隆并运行
- 克隆 BKcore/HexGL。
- 用任意静态服务器打开目录(npx serve,或仓库写明的命令)。模块加载失败时不要双击 index.html。
- 用 Chromium 内核浏览器。赛道资源较大,等第一次加载。
这是游戏,不是引擎教程。API 已经变了。用它学摄像机和速度手感,2026 年要发行时再把零件迁到当前的 three 包。
这些是公开仓库。简介是为本站写的,不是转载。
编辑说明核对于 2026-10-05。
相关源码

Racing game
Small racing loop using Three.js and the react-three stack.

Drakonas
Bullet-hell shooter rendered with Three.js.

Three.js tower defense
3D tower defense on Three.js.

3d.city
City builder used to stress WebGL and Three.js.

Astray
WebGL maze using Three.js and 2D physics.
Pirate 3D
Three.js scene packaged toward iOS with Capacitor.