Skip to content

Velocity Blocks 1.3.0

Choose a tag to compare

@github-actions github-actions released this 27 Oct 13:26
· 6 commits to main since this release

New in 1.3.0: chase a ghost and share your best lap.

  • Race one target ghost at a time: Gold, then the Author, then your best. Its line is on the road for the whole lap, with a live gap and your split at every checkpoint.
  • Author times are now set by an AI driver that practised every track. They are tougher.
  • Replays show gas, brake, steering and nitro, and the line you drove.
  • Share a replay as a video, or as a link your friends can watch and race.

What's new

Chase a ghost, follow its line

  • One target ghost at a time: Gold until you win gold, then the Author, then your personal best. Pause > Chase picks a different one.
  • Its line on the road for the whole lap, coloured by what it does there: green on the throttle, yellow lifting, red braking, violet on nitro.
  • A live gap to the ghost (green when you're ahead, red when behind), with your gap logged at every checkpoint.
  • The ghost's name tag stays on screen even when the ghost is behind you, so it never just disappears.

New author times

  • Set by a pro AI driver that practised every track for the Car, Bike and Truck. They are about 20-24% faster than before (A01: 10.00 s, was 12.86 s), and the gold, silver and bronze times follow from them.
  • Existing medals may change: they are now judged against these times. Your records and unlocked tracks are untouched.

Replays you can read

  • Telemetry in every replay: gas and brake %, steering, nitro, speed, the clock and your splits.
  • Line: driven shows the path you actually took; Line: ideal shows the racing line, to compare.
  • ▶ Best lap on every campaign card opens your best lap's replay without racing first.
  • Author lap on the results screen shows how the author time was driven.

Share your best

  • Share video: records the replay with its telemetry and opens the share sheet (WhatsApp and the like).
  • Share run: sends a small link that replays your exact lap in your friend's game, marked verified when it matches your time. They can tap Race it to race against you.
  • Opening a link: run links open in the app (choose Velocity Blocks in "Open with"), or use Menu > Open shared run and paste one.

Good to know

  • Best laps set before 1.3.0 replay without the pedal and steering telemetry, and can't be shared as a run link. Video works for them, and new best laps have everything.
  • Video format: MP4 on most phones. On older Android WebViews it's WebM, which WhatsApp sends as a file.
  • Run links in a browser play in the web game once the website is updated to 1.3.0.

For developers

  • Pull request: #4. Version: 1.3.0 (versionCode 10300).
  • New:
    • src/game/proDriver.ts, src/track/proLaps.json (author laps, 23 kB), scripts/pro-laps.ts (regenerate after physics changes).
    • src/game/ghostDelta.ts, drivenLine.ts, inputLog.ts, runShare.ts.
    • src/ui/telemetry.ts, src/app/replayVideo.ts.
  • Android: VbNativePlugin gains writeShareChunk, shareFile, shareText, takeLink and a link event, plus a VIEW intent filter for https://velocityblocks.vercel.app/play. No new permissions or dependencies.
  • Testing: ?autoplay / ?autoplay=base let the AI drive every race on a device or emulator (window.vbTest for DevTools).
  • Tests: 1542 passed, 1 skipped. Checked on an Android 15 emulator.