◀ VibeCruiser

yourgame

A free browser game — play it in your browser, no install. 用代码写游戏, 视频里一步步做出来 · 单文件 HTML 打开就能玩. 每条视频对应一款能玩的单文件 3D 小游戏: 一个 HTML 文件, 打开就能玩, 只依赖仓库里自带的 Three.js, 不用装任何东西。 视频里演示的就是这里的代码 (视频版为了逐帧渲染做了确定性改写: 固定随机种子 + 自动玩家, 玩法逻辑一致)。 舞台: 场景 / 相机 / 灯。 输入: 跳 / 旋转 / 移动。 一定要先把碰撞检测写对, 再做旋转和加速。 每局随机。物理是固定步长, 同一个浏览器里同一个 seed 结果相同 (控制台 race(123) 连跑两次一致); 但不同 JS 引擎的浮点运算有细微差别…

by @myumdl · myumdl/yourgame on GitHubLANG HTMLHOSTED ON MYUMDL.GITHUB.IOUPDATED 5 Oct 2026

Made this, @myumdl? See how many people played it → or use email

▶ Play full screen ▲ Vote: free account with email ▲ Or sign in with GitHub

GitHub may ask you to sign in, then to let VibeCruiser “Verify your GitHub identity” and “Act on your behalf”. We only read your profile and email, and never post anything.

Open the live demo Source on GitHub

From the README

每条视频对应一款能玩的单文件 3D 小游戏: 一个 HTML 文件, 打开就能玩, 只依赖仓库里自带的 Three.js, 不用装任何东西。

视频里演示的就是这里的代码 (视频版为了逐帧渲染做了确定性改写: 固定随机种子 + 自动玩家, 玩法逻辑一致)。

舞台: 场景 / 相机 / 灯。 输入: 跳 / 旋转 / 移动。

一定要先把碰撞检测写对, 再做旋转和加速。

每局随机。物理是固定步长, 同一个浏览器里同一个 seed 结果相同 (控制台 race(123) 连跑两次一致); 但不同 JS 引擎的浮点运算有细微差别, 弹珠赛又是混沌系统, 十几秒后就会分叉 —— 所以视频那一局 (离线在 Node 里跑的 seed 14) 不靠重算, 而是把真实轨迹存成 replay-g04.json, 点「回放视频那一局」按轨迹播放。 换选手: 改文件顶部 LANGS (名字 + 颜色); 改赛道: course() 里每一行是一段坡 / 一个坑。

颜色都在文件顶部: 跑酷改 player / obsMat 的颜色, 俄罗斯方块改 SHAPES[k].col 那一行, 打砖块改 COLORS 那一行 (六排砖六种颜色)。

Read the full README on GitHub →

Built something like this? Submit your vibe — free account, takes a minute. How listing works.

More like this

Made this?

Claim it: create a free account, then press CLAIM THIS in the cruiser. Put the badge below in your README or on your demo page first; that link is how we know it's yours.

Your project is on the cruise, loaded live from your own site. Put the badge in your README or on the demo page: it shows your live play count, it links back to this page, and everyone who lands here is one click from running the real thing.

On VibeCruiser

How listing, the badge and claiming work →