From 435f70f0ccb39e5a3adb470af34e8db3905c9545 Mon Sep 17 00:00:00 2001 From: Pauljd Date: Thu, 5 Nov 2026 21:19:16 +0000 Subject: [PATCH] 0.108.27: Bumble, OrbitHive's bee, joins the cast Paul, 5 November 2026: bring OrbitHive's bee into the cast, redesigned to match. Drawn to the model sheet: a round honey body with two navy stripes, pale wings, antennae tipped with little honey hexagons, the cast's round white eyes with navy pupils, no mouth and no outline. The same in both OrbitHive skins (the old astronaut helmet goes, for one look everywhere), and on OrbitHive's Arcade card. Co-Authored-By: Claude Opus 5.5 (1M context) --- android/app/build.gradle.kts | 4 +- android/app/src/main/assets/orbithive/game.js | 45 ++++++++++--------- .../java/tv/orbit/classic/ArcadeOrbMan.kt | 27 +++++++++++ .../main/java/tv/orbit/classic/EmbyClient.kt | 2 +- .../main/java/tv/orbit/classic/OrbitArcade.kt | 3 +- .../tv/orbit/classic/SecureMediaDataSource.kt | 2 +- 6 files changed, 56 insertions(+), 27 deletions(-) diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index 5af6343d..27416200 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -9,8 +9,8 @@ android { applicationId = "tv.orbit.classic" minSdk = 26 targetSdk = 36 - versionCode = 186 - versionName = "0.108.26-luna-drift" + versionCode = 187 + versionName = "0.108.27-bumble" } buildFeatures { compose = true } compileOptions { sourceCompatibility = JavaVersion.VERSION_17; targetCompatibility = JavaVersion.VERSION_17 } diff --git a/android/app/src/main/assets/orbithive/game.js b/android/app/src/main/assets/orbithive/game.js index 52f4aa85..2b9fa65f 100644 --- a/android/app/src/main/assets/orbithive/game.js +++ b/android/app/src/main/assets/orbithive/game.js @@ -838,32 +838,35 @@ ctx.restore(); } + // Bumble, OrbitHive's bee, drawn to the Orbit cast's model sheet (design/arcade/orbit-cast.md): flat colours with one soft + // highlight, no outline, the cast's round white eyes with navy pupils, no mouth. Honey body, two navy stripes, pale wings, + // and antennae tipped with little hexagons from the hive. The same in both skins. function drawBee(x, y, s, tilt = 0) { + const NAVY = '#14213d', HONEY = '#ffd84a'; ctx.save(); ctx.translate(x, y); ctx.scale(s, s); ctx.rotate(tilt); const flap = Math.sin(game.time * 30) * 0.25; - ctx.fillStyle = 'rgba(227,242,253,.85)'; - ctx.save(); ctx.rotate(-0.5 + flap); ctx.beginPath(); ctx.ellipse(-12, -22, 16, 10, 0, 0, Math.PI * 2); ctx.fill(); ctx.restore(); - ctx.save(); ctx.rotate(0.5 - flap); ctx.beginPath(); ctx.ellipse(12, -22, 16, 10, 0, 0, Math.PI * 2); ctx.fill(); ctx.restore(); - ctx.fillStyle = '#ffcc1a'; ctx.strokeStyle = '#3b2a12'; ctx.lineWidth = 3; - ctx.beginPath(); ctx.ellipse(0, 0, 22, 26, 0, 0, Math.PI * 2); ctx.fill(); ctx.stroke(); - ctx.save(); ctx.beginPath(); ctx.ellipse(0, 0, 22, 26, 0, 0, Math.PI * 2); ctx.clip(); - ctx.fillStyle = '#3b2a12'; ctx.fillRect(-24, 4, 48, 6); ctx.fillRect(-24, 15, 48, 6); + ctx.fillStyle = 'rgba(232,240,255,.8)'; + ctx.save(); ctx.rotate(-0.45 + flap); ctx.beginPath(); ctx.ellipse(-13, -22, 15, 10, 0, 0, Math.PI * 2); ctx.fill(); ctx.restore(); + ctx.save(); ctx.rotate(0.45 - flap); ctx.beginPath(); ctx.ellipse(13, -22, 15, 10, 0, 0, Math.PI * 2); ctx.fill(); ctx.restore(); + // Antennae with hexagon tips. + ctx.strokeStyle = NAVY; ctx.lineWidth = 2.5; ctx.lineCap = 'round'; + ctx.beginPath(); ctx.moveTo(-6, -22); ctx.quadraticCurveTo(-9, -34, -15, -37); ctx.moveTo(6, -22); ctx.quadraticCurveTo(9, -34, 15, -37); ctx.stroke(); + for (const hx of [-15, 15]) { + ctx.fillStyle = HONEY; ctx.beginPath(); + for (let k = 0; k < 6; k++) { const a = Math.PI / 6 + k * Math.PI / 3; const px = hx + Math.cos(a) * 4.5, py = -38 + Math.sin(a) * 4.5; k ? ctx.lineTo(px, py) : ctx.moveTo(px, py); } + ctx.closePath(); ctx.fill(); + } + // A round honey body with two navy stripes. + ctx.fillStyle = HONEY; ctx.beginPath(); ctx.arc(0, 0, 24, 0, Math.PI * 2); ctx.fill(); + ctx.save(); ctx.beginPath(); ctx.arc(0, 0, 24, 0, Math.PI * 2); ctx.clip(); + ctx.fillStyle = NAVY; ctx.fillRect(-26, 6, 52, 6); ctx.fillRect(-26, 16, 52, 6); ctx.restore(); - ctx.fillStyle = '#4fc3f7'; ctx.strokeStyle = '#1a237e'; ctx.lineWidth = 2.5; - ctx.beginPath(); ctx.arc(-8, -10, 7, 0, Math.PI * 2); ctx.fill(); ctx.stroke(); - ctx.beginPath(); ctx.arc(8, -10, 7, 0, Math.PI * 2); ctx.fill(); ctx.stroke(); - ctx.fillStyle = '#fff'; - ctx.beginPath(); ctx.arc(-10, -12, 2, 0, Math.PI * 2); ctx.arc(6, -12, 2, 0, Math.PI * 2); ctx.fill(); - ctx.strokeStyle = '#3b2a12'; ctx.lineWidth = 2; - ctx.beginPath(); ctx.moveTo(-5, -25); ctx.quadraticCurveTo(-10, -40, -18, -38); ctx.moveTo(5, -25); ctx.quadraticCurveTo(10, -40, 18, -38); ctx.stroke(); - ctx.beginPath(); ctx.arc(0, -1, 6, 0.15 * Math.PI, 0.85 * Math.PI); ctx.stroke(); - if (save.skin === 'orbit') { - // An astronaut's helmet over the head. - ctx.fillStyle = 'rgba(191,227,255,.2)'; ctx.strokeStyle = '#e8edf5'; ctx.lineWidth = 3.5; - ctx.beginPath(); ctx.arc(0, -10, 21, 0, Math.PI * 2); ctx.fill(); ctx.stroke(); - ctx.fillStyle = 'rgba(255,255,255,.55)'; ctx.beginPath(); ctx.ellipse(-8, -20, 6, 3.5, -0.6, 0, Math.PI * 2); ctx.fill(); - ctx.strokeStyle = '#b7cbe8'; ctx.lineWidth = 5; ctx.beginPath(); ctx.arc(0, -10, 21, 0.28 * Math.PI, 0.72 * Math.PI); ctx.stroke(); + ctx.fillStyle = 'rgba(255,255,255,.3)'; ctx.beginPath(); ctx.arc(-9, -11, 7, 0, Math.PI * 2); ctx.fill(); + // The cast's eyes. + for (const ex of [-8, 8]) { + ctx.fillStyle = '#fff'; ctx.beginPath(); ctx.arc(ex, -4, 6.2, 0, Math.PI * 2); ctx.fill(); + ctx.fillStyle = NAVY; ctx.beginPath(); ctx.arc(ex + 1.5, -4, 3.1, 0, Math.PI * 2); ctx.fill(); } ctx.restore(); } diff --git a/android/app/src/main/java/tv/orbit/classic/ArcadeOrbMan.kt b/android/app/src/main/java/tv/orbit/classic/ArcadeOrbMan.kt index 2c6c3e3e..7c7180eb 100644 --- a/android/app/src/main/java/tv/orbit/classic/ArcadeOrbMan.kt +++ b/android/app/src/main/java/tv/orbit/classic/ArcadeOrbMan.kt @@ -21,6 +21,9 @@ import androidx.compose.ui.graphics.Path import androidx.compose.ui.graphics.StrokeCap import androidx.compose.ui.graphics.drawscope.DrawScope import androidx.compose.ui.graphics.drawscope.Stroke +import androidx.compose.ui.graphics.drawscope.withTransform +import androidx.compose.ui.graphics.drawscope.rotate +import androidx.compose.ui.graphics.drawscope.clipPath import androidx.compose.ui.input.key.onPreviewKeyEvent import androidx.compose.ui.platform.LocalContext import androidx.compose.ui.platform.LocalWindowInfo @@ -335,6 +338,30 @@ internal fun DrawScope.drawOrbChaser(centre: Offset, r: Float, who: OrbCharacter } } +/** + * Bumble, OrbitHive's bee (Paul, 5 November 2026), to the cast's model sheet: a round honey body with two navy stripes, pale + * wings, antennae tipped with little hexagons, the cast's eyes and no mouth. [flap] beats the wings, -1 to 1. The game's own + * copy is drawBee in assets/orbithive/game.js; the two match. + */ +internal fun DrawScope.drawOrbBee(centre: Offset, r: Float, flap: Float = 0f) { + val navy = Color(0xFF14213D); val honey = Color(0xFFFFD84A); val k = r / 24f + for (side in listOf(-1f, 1f)) { + val wing = centre + Offset(side * 13 * k, -22 * k) + withTransform({ rotate(side * (25f - flap * 14f), wing) }) { drawOval(Color(0xCCE8F0FF), wing - Offset(15 * k, 10 * k), Size(30 * k, 20 * k)) } + val tip = centre + Offset(side * 15 * k, -37 * k) + val stalk = Path().apply { moveTo(centre.x + side * 6 * k, centre.y - 22 * k); quadraticTo(centre.x + side * 9 * k, centre.y - 34 * k, tip.x, tip.y) } + drawPath(stalk, navy, style = Stroke(2.5f * k, cap = StrokeCap.Round)) + val hex = Path().apply { for (i in 0..5) { val a = PI / 6 + i * PI / 3; val px = tip.x + (4.5f * k * kotlin.math.cos(a)).toFloat(); val py = tip.y - k + (4.5f * k * sin(a)).toFloat(); if (i == 0) moveTo(px, py) else lineTo(px, py) }; close() } + drawPath(hex, honey) + } + drawCircle(honey, 24 * k, centre) + clipPath(Path().apply { addOval(androidx.compose.ui.geometry.Rect(centre, 24 * k)) }) { + drawRect(navy, centre + Offset(-26 * k, 6 * k), Size(52 * k, 6 * k)); drawRect(navy, centre + Offset(-26 * k, 16 * k), Size(52 * k, 6 * k)) + } + drawCircle(Color.White.copy(alpha = .3f), 7 * k, centre + Offset(-9 * k, -11 * k)) + for (side in listOf(-1f, 1f)) { drawCircle(Color.White, 6.2f * k, centre + Offset(side * 8 * k, -4 * k)); drawCircle(navy, 3.1f * k, centre + Offset(side * 8 * k + 1.5f * k, -4 * k)) } +} + /** The maze and everyone in it. [phase] is how far between ticks we are, for smooth movement; [glow] the power glow, 0 to 1. */ internal fun DrawScope.drawOrbField(game: OrbGame, phase: Float = 0f, glow: Float = 0f, timeMs: Long = 0L) { val maze = game.maze diff --git a/android/app/src/main/java/tv/orbit/classic/EmbyClient.kt b/android/app/src/main/java/tv/orbit/classic/EmbyClient.kt index fa4dc06f..f7985273 100644 --- a/android/app/src/main/java/tv/orbit/classic/EmbyClient.kt +++ b/android/app/src/main/java/tv/orbit/classic/EmbyClient.kt @@ -66,7 +66,7 @@ internal class HttpsEmbyTransport(internal val deviceId: String = UUID.randomUUI connection.connectTimeout = 10_000 connection.readTimeout = request.readTimeoutMs ?: if (request.path == "/Sessions/Logout") 5_000 else 15_000 connection.setRequestProperty("Accept", "application/json") - connection.setRequestProperty("X-Emby-Authorization", "Emby Client=\"Orbit TV\", Device=\"Orbit TV\", DeviceId=\"$deviceId\", Version=\"0.108.26\"") + connection.setRequestProperty("X-Emby-Authorization", "Emby Client=\"Orbit TV\", Device=\"Orbit TV\", DeviceId=\"$deviceId\", Version=\"0.108.27\"") request.token?.let { connection.setRequestProperty("X-Emby-Token", it) } if (request.method == "POST") { val bytes = request.body.orEmpty().toByteArray(Charsets.UTF_8) diff --git a/android/app/src/main/java/tv/orbit/classic/OrbitArcade.kt b/android/app/src/main/java/tv/orbit/classic/OrbitArcade.kt index 233e4cf4..37f349a6 100644 --- a/android/app/src/main/java/tv/orbit/classic/OrbitArcade.kt +++ b/android/app/src/main/java/tv/orbit/classic/OrbitArcade.kt @@ -319,8 +319,7 @@ private fun androidx.compose.ui.graphics.drawscope.DrawScope.gameIcon(game: Arca val s = size.minDimension; val c = center when (game) { ArcadeGame.OrbMan -> drawOrbMascot(c, s * .28f) - ArcadeGame.Hive -> listOf(Offset(0f, -.2f) to Color(0xFFFFD84A), Offset(-.18f, .12f) to Color(0xFF6EF0FF), Offset(.18f, .12f) to Color(0xFFFF7AC6)) - .forEach { (o, col) -> drawPath(hexagon(c + Offset(o.x * s, o.y * s), s * .17f), col) } + ArcadeGame.Hive -> drawOrbBee(c + Offset(0f, s * .12f), s * .26f) ArcadeGame.Snake -> { listOf(-.32f, -.16f, 0f).forEachIndexed { i, x -> drawCircle(Color(0xFF3DDC97), s * .1f, c + Offset(x * s, (if (i % 2 == 0) .12f else .04f) * s)) } val head = c + Offset(.2f * s, -.06f * s) diff --git a/android/app/src/main/java/tv/orbit/classic/SecureMediaDataSource.kt b/android/app/src/main/java/tv/orbit/classic/SecureMediaDataSource.kt index fc67edcd..c9459960 100644 --- a/android/app/src/main/java/tv/orbit/classic/SecureMediaDataSource.kt +++ b/android/app/src/main/java/tv/orbit/classic/SecureMediaDataSource.kt @@ -33,7 +33,7 @@ internal class SecureMediaDataSource(private val session: EmbySampleSession) : B next.instanceFollowRedirects = false next.connectTimeout = 10_000 next.readTimeout = 20_000 - next.setRequestProperty("User-Agent", "OrbitTV/0.108.26") + next.setRequestProperty("User-Agent", "OrbitTV/0.108.27") next.setRequestProperty("Accept-Encoding", "identity") session.mediaHeaders(address).forEach { (key, value) -> next.setRequestProperty(key, value) } if (dataSpec.position != 0L || dataSpec.length != C.LENGTH_UNSET.toLong()) {