Files
OrbitTv/docs/VERIFICATION-bumblehive-native.md
T
pauljdandClaude Opus 5.5 38986efda9 BumbleHive: native Kotlin game, Hard mode, one-time save carry-over
BumbleHive is rebuilt natively (arcade/hive), drawn on a Compose Canvas and
playing exactly as assets/orbithive/game.js did: the 200 levels, shooting,
bounces, landing, bursts and falls, swaps, Honeybombs, the ceiling timer,
scoring and stars, weighted aim, level pages, help and settings, Bumble's
Daily Bonus, both skins, the bee and flowers, the same beeps as tones and the
Barlow font. It uses the Arcade's pause menu, How to Play, result card,
Reduce motion, quiet ceiling and per-profile saves. The WebView game path and
ArcadeFlags.hiveProfileSaves are gone; assets/orbithive stays for the import
and a safe rollback.

Parity with game.js run under Node: 200/200 levels, 469/469 scripted
landings and 26/26 shot paths identical.

The old WebView save (localStorage orbithive-save-v1) is read once by a
hidden WebView on the same URL and kept as a read-only Household save any
profile can continue from as a copy; the key and the WebView data are never
written. Hard mode (on the title): ceiling x0.6 (min 5 s), 3 swaps, colours
every 10 levels, its own save.

33 Kotlin and 5 Node tests; 0 bytes allocated per frame in steady play.
Docs: docs/bumblehive-native.md, docs/VERIFICATION-bumblehive-native.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 21:29:33 +00:00

5.1 KiB
Raw Blame History

BumbleHive native: verification (8 November 2026)

Branch arcade-bumblehive-native from arcade-orbi-raiders (760c957, which also carries the power-up sheet change), worktree /home/pauljd/Documents/OrbitTV/orbit-arcade. Version unchanged (0.110.5-arcade-stage-c, 281): for review, not a release. Nothing pushed, merged or installed; no TV or adb used; orbit-tv and orbit-tv-release left alone. What it is: docs/bumblehive-native.md.

Checks

One Gradle run (assembleDebug assembleRelease testDebugUnitTest lintDebug, orbit-tv's .tooling), against 760c957 built the same way in a scratch worktree.

arcade-orbi-raiders (760c957) arcade-bumblehive-native
Build (debug and release) passed passed
Kotlin unit tests 815 run, 24 skipped, 0 failed 848 run, 24 skipped, 0 failed (33 new)
Node tests (tools/test-bumblehive.sh) 23 passed 28 passed (5 new)
Lint 0 errors, 67 warnings 0 errors, 85 warnings
Release APK 47,728,227 bytes 47,793,763 bytes (+65,536, +0.14%)
Debug APK 52,019,816 bytes 54,403,753 bytes (+2,383,937; the files inside grow 215 KB, the rest is how the incremental debug build packs its dex files)

Lint: no new warning kinds from the code. UseKtx 57 → 66 (nine Canvas.withTranslation-style suggestions in HiveArt.kt, kept as plain save/restore so the drawing makes no lambdas per frame). The other 9 new lines are lint's "newer version available" checks on build.gradle.kts and the Gradle wrapper (GradleDependency 6, NewerVersionAvailable 2, AndroidGradlePluginVersion 1): about the build files, not this change, and absent from the baseline run only because of lint's version lookup.

Parity with game.js

BumbleHiveParityTest against src/test/resources/bumblehive/parity.json, recorded from the real game.js under Node:

  • 200/200 levels identical: every cell, colour count, rows, shape and panic time.
  • 469/469 scripted landings identical in 15 levels (Honeybombs included): grid, score, ceiling, drops, panic, screen after each; one win and five swarms among them.
  • 26/26 shot paths identical frame by frame, bounces included (largest difference 0.0).
  • hive-parity.test.js checks the record still matches game.js.

New tests

  • HiveSimTest (20): Hard numbers (panic ×0.6 min 5 s, colours every 10, 3 swaps), Hard's layouts the same as Normal's, Hard's save separate from Normal's both ways, the save round trip and a level reset keeping Honeybombs; weighted aim, one shot per OK press, swaps and Honeybombs, the ceiling drop and swarm, win score, stars and unlock, burst and fall bonus, runs reported once however they end, Back, Level Select; Daily Bonus (free, Not today, once a day, no streaks), Reduce motion's wheel; help toggles; the Household question (copied not linked, asked once, waits until answered and merges); allocation: 10,000 ticks of bot play, 438 shots, 0 bytes allocated in the frames.
  • HiveLegacyTest (10): the import equals what was stored; runs once and never rewrites; no old save; empty and corrupt old saves kept as they were but not offered; a failed read writes nothing and is retried; an unreadable snapshot isn't replaced; old per-profile keys recorded; the read script only reads; continuing copies and leaves the snapshot alone (a second profile can too); the new kept field survives the file and a reset, old files still read.
  • BumbleHiveParityTest (3), above.
  • Node (5): the record matches game.js; the real READ_SCRIPT against a storage that refuses writes: the old save returned exactly, nothing written; missing, empty and unreadable storage; the import uses the old game's URL; game.js loaded with no bridge (if the WebView ever runs it) writes nothing.
  • Changed: ArcadeSessionTest and ArcadeWordsTest (BumbleHive's level progress can now be reset per profile).

Not checked

  • Nothing was seen running: no emulator, no TV. Drawing, text and borrowed glyphs, focus, the result card, the tones, and frame times and memory on the 2 GB box are checked only by the compiler, the tests and reading.
  • The import has not run on a real WebView. Origin sameness is reasoned from the old code (same URL, settings, default data folder), not observed.
  • Drawing allocation couldn't be measured off the box (only the rules were).

Proposed check on the box (for Paul to approve; not run)

Before install, read-only: snapshot the old save so it can be compared after.

ADB=/opt/android-sdk/platform-tools/adb; D=192.168.0.252:5555; P=tv.orbit.classic; OUT=~/Documents/OrbitTV/audits/bumblehive-native-$(date +%Y%m%d-%H%M); mkdir -p "$OUT"
$ADB connect $D
$ADB -s $D shell run-as $P ls -la app_webview/Default/Local\ Storage/leveldb > "$OUT/leveldb-before.txt"

After install, once BumbleHive has opened on the title: check files/arcade/household-bumblehive-legacy.json shows 48 unlocked (the WebView itself may touch its LevelDB log files when it opens storage, as it did every time the old game opened; the save's key is only read), then dumpsys gfxinfo over two minutes of play as for Orbi-Raiders.