{liveText}
@@ -456,6 +499,26 @@ color: var(--frost); } + /* The jumps: one a board, and a mark on any board the chosen piece can reach. */ + .jump { + display: flex; + gap: 1rem; + margin-top: 0.25rem; + font-size: 0.85rem; + } + + .jump .current { + color: var(--ember); + } + + .jump .lit::after { + content: ' ●'; + font-size: 0.6em; + vertical-align: middle; + color: var(--frost); + } + + .marked .link:disabled { color: var(--bone-faint); text-decoration: none; @@ -488,6 +551,13 @@ margin: 0 auto; } + /* A phone on its side has no height for three boards: one shows at a time, as wide as the screen allows. */ + @media (max-width: 1000px) and (max-height: 540px) { + .frame { + max-width: none; + } + } + .glass-way { max-width: 640px; margin: 0 auto 0.5rem; diff --git a/src/lib/components/BoardArtwork.svelte b/src/lib/components/BoardArtwork.svelte index 0c33384..f48debb 100644 --- a/src/lib/components/BoardArtwork.svelte +++ b/src/lib/components/BoardArtwork.svelte @@ -15,10 +15,11 @@ // underworld, each twelve by eight in the colours Gygax suggested, with // the pieces as discs bearing his letters. Shared by the table, the // lessons and the hall's still of the opening. + import { tick } from 'svelte'; import { FILES, RANKS, PER_LEVEL, fileOf, rankOf, levelOf, idx, isLight, kindOf, sideOf, frozen, squareName, LETTERS, NAMES, SIDE_NAMES, type State } from '$lib/game'; let { g, tokens, levels = [3, 2, 1], showCoords = false, flipped = false, selected = null, targets = [], reach = [], shownSquares = [], shownCaptured = [], checkSquare = -1, - calm = true, decorative = false, tap = () => {}, escape = () => {} + calm = true, decorative = false, tap = () => {}, escape = () => {}, climb }: { g: State; tokens?: Token[]; @@ -40,9 +41,12 @@ tap?: (i: number) => void | PromiseA name first, and the buttons wake. The drake is the computer, playing for the house.
{/if} {#if game.options?.length} -