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) <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user