◀ VibeCruiser

code rhythm

A free music game — play it in your browser, no install. 浏览器端代码打字音游:跟着鼓点敲代码。Vite + TypeScript + 原生 Canvas,Web Audio 合成全部音乐,零框架零外部音频。

by @weather66-ai · weather66-ai/code-rhythm on GitHubLANG TypeScript★ 1HOSTED ON CODE-RHYTHM.APP.WORKBUDDY.HOSTUPDATED 2 Dec 2026

Made this, @weather66-ai? 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

浏览器端的代码打字音游:鼓点响起,字符音符从右侧顶部落向键盘,在它落到对应键帽的瞬间按下那个键。 左边是代码原文,打过的字变绿。目标是练熟写代码时最常用的那些键(字母数字分号、常见符号、Shift 组合符号)。

技术栈:Vite + TypeScript + 原生 DOM / Canvas,没有任何框架。 音频:Web Audio 实时合成——鼓、贝斯、旋律、音符落点声,没有外部音频文件。 谱面:每关一份固定 JSON(charts/demo.json、charts/twinkle.json),无生成器、无编辑器。 关卡:开始页选关,关卡自带 BPM、鼓型、旋律与下落参数。 速度:0.4×–1.2× 连续可调,默认 0.75×(比原速慢一档).

打开后选关 → 调速度 → 点「开始演奏」或按 空格。只支持桌面浏览器(要真键盘),手机能打开但玩不了。

打开页面后点「开始演奏」或按 空格(必须有一次点击/按键,浏览器才允许出声)。

上面所有时间都会先减去校准偏移(session.toSongTime(raw) = raw - offset), 所以玩家整体晚 30ms 时,在 note.timeMs + 30 按下依然判 Perfect。

准确率 = 已判定音符的加权平均(Perfect 1.0、Good 0.5、Miss 0),连击过程中不会掉。

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 →