Add original Vanuatu artwork for all sixteen achievements
46
artwork/achievements/README.md
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
# Vanuatu achievement artwork
|
||||
|
||||
Original warm island vector compositions for the 16 existing achievements.
|
||||
Tracking: https://codeberg.org/boardgamers/boardgamers/issues/595
|
||||
|
||||
## Provenance and editing
|
||||
|
||||
All geometry in `scripts/achievement-art.mjs` was newly drawn for this change;
|
||||
no publisher art, photographs, downloaded icons, fonts, or traced paths are inputs.
|
||||
The original geometry in that script and its generated SVG/PNG artwork is dedicated
|
||||
to the public domain under CC0-1.0 (https://creativecommons.org/publicdomain/zero/1.0/).
|
||||
System sans-serif is used only to render supplementary threshold digits.
|
||||
|
||||
`viewer/art.js` at baseline commit `9fefc927595df49b939cad14e96d068a0b7ecf3e`
|
||||
provides semantic vocabulary only: sail/boat, build/hut, point/shell, coin/vatu,
|
||||
explore/chest, tourist/pawn, marker/stack, dike and water. No path or source bytes
|
||||
from it are copied. This avoids assumptions about publisher derivative rights.
|
||||
|
||||
Run `pnpm install --frozen-lockfile`, install Playwright Chromium if needed, then
|
||||
`pnpm art:achievements`. The generator is the editable source; individual SVGs
|
||||
are also editable vector exports. Chromium renders transparent 256px PNGs offline,
|
||||
with no server or database. The export manifest records source and asset SHA-256s.
|
||||
Regenerate after changing or formatting the generator. Renderer/font differences
|
||||
may change raster bytes; use the checked-in PNGs as the reviewed upload candidates.
|
||||
Contact sheets show 32/48/64/96px circular images on light and dark backgrounds.
|
||||
|
||||
Count-specific victories contain exactly 2/3/4/5 outrigger boats respectively.
|
||||
Four huts and three occupied islands are literal. Score/cash/treasure/tourism
|
||||
numbers represent thresholds, not counts of decorative objects. Flood survival
|
||||
uses an eight-dot completed-round ring and dike without a victory flag; flood
|
||||
victory has a flag. The no-characters award uses a crossed empty card beside
|
||||
action tokens, not a portrait. Ordinary tourism pawns denote visitors only.
|
||||
|
||||
## Contract and review
|
||||
|
||||
`baseline.json` is the revision-1 manifest from engine 0.2.1. Tests require identical
|
||||
IDs/names/descriptions, a pinned unchanged evaluator hash, protocol-0.11 schema,
|
||||
complete asset references, exact boat counts, unique hashes and decoded dimensions.
|
||||
Engine 0.2.2 / manifest revision 2 changes only icon references and revision.
|
||||
|
||||
Canonical release target is Codeberg `boardgamers/vanuatu`, branch `main`;
|
||||
configured public mirror is GitHub `boardgamers/vanuatu`, branch `main`.
|
||||
No assets or engine have been uploaded or activated. Independent code and actual
|
||||
visual review are required before publication. Do not use broad metadata publisher
|
||||
scripts: subsequent publication must upload only these 16 keys and activate only
|
||||
the exact tested engine package, preserving viewer/settings/visibility metadata.
|
||||
BIN
artwork/achievements/achievement-duel-victory.png
Normal file
|
After Width: | Height: | Size: 24 KiB |
1
artwork/achievements/achievement-duel-victory.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 128 128"><circle cx="64" cy="64" r="62" fill="#285c60" stroke="#efd49a" stroke-width="3"/><g stroke="#344e47" stroke-width="2.5" stroke-linejoin="round" stroke-linecap="round"><path d="M14 88Q24 80 35 88T57 88T79 88T111 88M25 99Q36 92 47 99T69 99T98 99" fill="none" stroke="#a9ded5"/><g transform="translate(64 43) scale(0.65)"><path d="M-30 6Q-36-3-19-10L3-15 25-6Q40 8 20 14L-13 17Z" fill="#efd49a" /><path d="M-22 3-11-7 7-8 22 1 12 7-10 9Z" fill="#6ca57b" /></g><g transform="translate(65 28) scale(0.55)"><path d="M0 23V-17" fill="none" /><path d="M0-17H24L17-8 24 0H0Z" fill="#f3ae42" /></g><g data-boat="true" transform="translate(33 70) rotate(15) scale(0.85)"><path d="M-21 9H23L13 19H-11Z" fill="#f3ae42" /><path d="M0 8V-23L18 5H0Z" fill="#fff1c9" /><path d="M-19 24H20M-10 14V24M11 14V24" fill="none" /></g><g data-boat="true" transform="translate(91 77) rotate(-15) scale(0.85)"><path d="M-21 9H23L13 19H-11Z" fill="#e9a982" /><path d="M0 8V-23L18 5H0Z" fill="#fff1c9" /><path d="M-19 24H20M-10 14V24M11 14V24" fill="none" /></g></g></svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
BIN
artwork/achievements/achievement-fifty-points.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
1
artwork/achievements/achievement-fifty-points.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 128 128"><circle cx="64" cy="64" r="62" fill="#285c60" stroke="#efd49a" stroke-width="3"/><g stroke="#344e47" stroke-width="2.5" stroke-linejoin="round" stroke-linecap="round"><path d="M14 88Q24 80 35 88T57 88T79 88T111 88M25 99Q36 92 47 99T69 99T98 99" fill="none" stroke="#a9ded5"/><g transform="translate(64 82) scale(1.25)"><path d="M-30 6Q-36-3-19-10L3-15 25-6Q40 8 20 14L-13 17Z" fill="#efd49a" /><path d="M-22 3-11-7 7-8 22 1 12 7-10 9Z" fill="#6ca57b" /></g><g transform="translate(45 70) scale(0.7)"><path d="M-14-3H14V18H-14Z" fill="#eab168" /><path d="M-21-2 0-22 21-2Z" fill="#c76a40" /><path d="M-4 18V5H5V18" fill="#3a5550" /></g><g transform="translate(82 71) scale(0.7)"><path d="M-14-3H14V18H-14Z" fill="#eab168" /><path d="M-21-2 0-22 21-2Z" fill="#c76a40" /><path d="M-4 18V5H5V18" fill="#3a5550" /></g><g transform="translate(64 41) scale(0.85)"><path d="M-21-10Q0-29 21-10L7 17H-7Z" fill="#fff0c2" /><path d="M-13-9-4 11M0-15V11M13-9 4 11" fill="none" /></g><g stroke="none"><rect x="43" y="91" width="42" height="25" rx="12" fill="#fff1ce"/><text x="64" y="110" text-anchor="middle" font-family="sans-serif" font-size="21" font-weight="bold" fill="#294e50">50</text></g></g></svg>
|
||||
|
After Width: | Height: | Size: 1.3 KiB |
BIN
artwork/achievements/achievement-four-huts.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
1
artwork/achievements/achievement-four-huts.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 128 128"><circle cx="64" cy="64" r="62" fill="#285c60" stroke="#efd49a" stroke-width="3"/><g stroke="#344e47" stroke-width="2.5" stroke-linejoin="round" stroke-linecap="round"><path d="M14 88Q24 80 35 88T57 88T79 88T111 88M25 99Q36 92 47 99T69 99T98 99" fill="none" stroke="#a9ded5"/><g transform="translate(64 74) scale(1.45)"><path d="M-30 6Q-36-3-19-10L3-15 25-6Q40 8 20 14L-13 17Z" fill="#efd49a" /><path d="M-22 3-11-7 7-8 22 1 12 7-10 9Z" fill="#6ca57b" /></g><g transform="translate(44 49) scale(0.75)"><path d="M-14-3H14V18H-14Z" fill="#eab168" /><path d="M-21-2 0-22 21-2Z" fill="#c76a40" /><path d="M-4 18V5H5V18" fill="#3a5550" /></g><g transform="translate(84 49) scale(0.75)"><path d="M-14-3H14V18H-14Z" fill="#eab168" /><path d="M-21-2 0-22 21-2Z" fill="#c76a40" /><path d="M-4 18V5H5V18" fill="#3a5550" /></g><g transform="translate(43 78) scale(0.75)"><path d="M-14-3H14V18H-14Z" fill="#eab168" /><path d="M-21-2 0-22 21-2Z" fill="#c76a40" /><path d="M-4 18V5H5V18" fill="#3a5550" /></g><g transform="translate(85 78) scale(0.75)"><path d="M-14-3H14V18H-14Z" fill="#eab168" /><path d="M-21-2 0-22 21-2Z" fill="#c76a40" /><path d="M-4 18V5H5V18" fill="#3a5550" /></g></g></svg>
|
||||
|
After Width: | Height: | Size: 1.2 KiB |
BIN
artwork/achievements/achievement-full-table-victory.png
Normal file
|
After Width: | Height: | Size: 27 KiB |
1
artwork/achievements/achievement-full-table-victory.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 128 128"><circle cx="64" cy="64" r="62" fill="#285c60" stroke="#efd49a" stroke-width="3"/><g stroke="#344e47" stroke-width="2.5" stroke-linejoin="round" stroke-linecap="round"><path d="M14 88Q24 80 35 88T57 88T79 88T111 88M25 99Q36 92 47 99T69 99T98 99" fill="none" stroke="#a9ded5"/><g transform="translate(64 65) scale(0.6)"><path d="M-30 6Q-36-3-19-10L3-15 25-6Q40 8 20 14L-13 17Z" fill="#efd49a" /><path d="M-22 3-11-7 7-8 22 1 12 7-10 9Z" fill="#6ca57b" /></g><g transform="translate(65 54) scale(0.5)"><path d="M0 23V-17" fill="none" /><path d="M0-17H24L17-8 24 0H0Z" fill="#f3ae42" /></g><g data-boat="true" transform="translate(64 25) rotate(0) scale(0.53)"><path d="M-21 9H23L13 19H-11Z" fill="#f3ae42" /><path d="M0 8V-23L18 5H0Z" fill="#fff1c9" /><path d="M-19 24H20M-10 14V24M11 14V24" fill="none" /></g><g data-boat="true" transform="translate(101.09120413551099 51.94833721937705) rotate(72) scale(0.53)"><path d="M-21 9H23L13 19H-11Z" fill="#e9a982" /><path d="M0 8V-23L18 5H0Z" fill="#fff1c9" /><path d="M-19 24H20M-10 14V24M11 14V24" fill="none" /></g><g data-boat="true" transform="translate(86.92362483940646 95.55166278062295) rotate(144) scale(0.53)"><path d="M-21 9H23L13 19H-11Z" fill="#e9a982" /><path d="M0 8V-23L18 5H0Z" fill="#fff1c9" /><path d="M-19 24H20M-10 14V24M11 14V24" fill="none" /></g><g data-boat="true" transform="translate(41.07637516059356 95.55166278062295) rotate(216) scale(0.53)"><path d="M-21 9H23L13 19H-11Z" fill="#e9a982" /><path d="M0 8V-23L18 5H0Z" fill="#fff1c9" /><path d="M-19 24H20M-10 14V24M11 14V24" fill="none" /></g><g data-boat="true" transform="translate(26.908795864489008 51.94833721937705) rotate(288) scale(0.53)"><path d="M-21 9H23L13 19H-11Z" fill="#e9a982" /><path d="M0 8V-23L18 5H0Z" fill="#fff1c9" /><path d="M-19 24H20M-10 14V24M11 14V24" fill="none" /></g></g></svg>
|
||||
|
After Width: | Height: | Size: 1.9 KiB |
BIN
artwork/achievements/achievement-island-victory.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
1
artwork/achievements/achievement-island-victory.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 128 128"><circle cx="64" cy="64" r="62" fill="#285c60" stroke="#efd49a" stroke-width="3"/><g stroke="#344e47" stroke-width="2.5" stroke-linejoin="round" stroke-linecap="round"><path d="M14 88Q24 80 35 88T57 88T79 88T111 88M25 99Q36 92 47 99T69 99T98 99" fill="none" stroke="#a9ded5"/><g transform="translate(64 84) scale(1.4)"><path d="M-30 6Q-36-3-19-10L3-15 25-6Q40 8 20 14L-13 17Z" fill="#efd49a" /><path d="M-22 3-11-7 7-8 22 1 12 7-10 9Z" fill="#6ca57b" /></g><g transform="translate(57 65) scale(1.25)"><path d="M-14-3H14V18H-14Z" fill="#eab168" /><path d="M-21-2 0-22 21-2Z" fill="#c76a40" /><path d="M-4 18V5H5V18" fill="#3a5550" /></g><g transform="translate(77 40) scale(0.9)"><path d="M0 23V-17" fill="none" /><path d="M0-17H24L17-8 24 0H0Z" fill="#f3ae42" /></g></g></svg>
|
||||
|
After Width: | Height: | Size: 862 B |
BIN
artwork/achievements/achievement-nine-vatus.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
1
artwork/achievements/achievement-nine-vatus.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 128 128"><circle cx="64" cy="64" r="62" fill="#285c60" stroke="#efd49a" stroke-width="3"/><g stroke="#344e47" stroke-width="2.5" stroke-linejoin="round" stroke-linecap="round"><path d="M14 88Q24 80 35 88T57 88T79 88T111 88M25 99Q36 92 47 99T69 99T98 99" fill="none" stroke="#a9ded5"/><path d="M42 43Q29 63 32 86Q64 111 96 86Q99 63 86 43Z" fill="#c9864b" /><ellipse cx="64" cy="44" rx="24" ry="10" fill="#354d49"/><circle cx="48" cy="42" r="10" fill="#f6d385"/><path d="M44 38l4 8 4-8" fill="none" /><circle cx="64" cy="36" r="10" fill="#f6d385"/><path d="M60 32l4 8 4-8" fill="none" /><circle cx="79" cy="44" r="10" fill="#f6d385"/><path d="M75 40l4 8 4-8" fill="none" /><g stroke="none"><rect x="43" y="91" width="42" height="25" rx="12" fill="#fff1ce"/><text x="64" y="110" text-anchor="middle" font-family="sans-serif" font-size="21" font-weight="bold" fill="#294e50">9</text></g></g></svg>
|
||||
|
After Width: | Height: | Size: 971 B |
BIN
artwork/achievements/achievement-no-characters-victory.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 128 128"><circle cx="64" cy="64" r="62" fill="#285c60" stroke="#efd49a" stroke-width="3"/><g stroke="#344e47" stroke-width="2.5" stroke-linejoin="round" stroke-linecap="round"><path d="M14 88Q24 80 35 88T57 88T79 88T111 88M25 99Q36 92 47 99T69 99T98 99" fill="none" stroke="#a9ded5"/><rect x="65" y="35" width="31" height="48" rx="5" fill="#fff0cd" stroke-dasharray="5 4"/><path d="M71 76 89 42" fill="none" stroke="#b15e42"/><g transform="translate(36 39) scale(0.9)"><path d="M0 23V-17" fill="none" /><path d="M0-17H24L17-8 24 0H0Z" fill="#f3ae42" /></g><ellipse cx="43" cy="77" rx="20" ry="8" fill="#d57b4e"/><ellipse cx="43" cy="68" rx="20" ry="8" fill="#d57b4e"/><ellipse cx="43" cy="59" rx="20" ry="8" fill="#d57b4e"/></g></svg>
|
||||
|
After Width: | Height: | Size: 812 B |
BIN
artwork/achievements/achievement-quartet-victory.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
1
artwork/achievements/achievement-quartet-victory.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 128 128"><circle cx="64" cy="64" r="62" fill="#285c60" stroke="#efd49a" stroke-width="3"/><g stroke="#344e47" stroke-width="2.5" stroke-linejoin="round" stroke-linecap="round"><path d="M14 88Q24 80 35 88T57 88T79 88T111 88M25 99Q36 92 47 99T69 99T98 99" fill="none" stroke="#a9ded5"/><g transform="translate(64 64) scale(0.64)"><path d="M-30 6Q-36-3-19-10L3-15 25-6Q40 8 20 14L-13 17Z" fill="#efd49a" /><path d="M-22 3-11-7 7-8 22 1 12 7-10 9Z" fill="#6ca57b" /></g><g transform="translate(64 54) scale(0.5)"><path d="M0 23V-17" fill="none" /><path d="M0-17H24L17-8 24 0H0Z" fill="#f3ae42" /></g><g data-boat="true" transform="translate(64 28) rotate(0) scale(0.57)"><path d="M-21 9H23L13 19H-11Z" fill="#f3ae42" /><path d="M0 8V-23L18 5H0Z" fill="#fff1c9" /><path d="M-19 24H20M-10 14V24M11 14V24" fill="none" /></g><g data-boat="true" transform="translate(101 64) rotate(90) scale(0.57)"><path d="M-21 9H23L13 19H-11Z" fill="#e9a982" /><path d="M0 8V-23L18 5H0Z" fill="#fff1c9" /><path d="M-19 24H20M-10 14V24M11 14V24" fill="none" /></g><g data-boat="true" transform="translate(64 100) rotate(180) scale(0.57)"><path d="M-21 9H23L13 19H-11Z" fill="#e9a982" /><path d="M0 8V-23L18 5H0Z" fill="#fff1c9" /><path d="M-19 24H20M-10 14V24M11 14V24" fill="none" /></g><g data-boat="true" transform="translate(27 64) rotate(-90) scale(0.57)"><path d="M-21 9H23L13 19H-11Z" fill="#e9a982" /><path d="M0 8V-23L18 5H0Z" fill="#fff1c9" /><path d="M-19 24H20M-10 14V24M11 14V24" fill="none" /></g></g></svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
BIN
artwork/achievements/achievement-rising-waters-victory.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 128 128"><circle cx="64" cy="64" r="62" fill="#285c60" stroke="#efd49a" stroke-width="3"/><g stroke="#344e47" stroke-width="2.5" stroke-linejoin="round" stroke-linecap="round"><path d="M14 88Q24 80 35 88T57 88T79 88T111 88M25 99Q36 92 47 99T69 99T98 99" fill="none" stroke="#a9ded5"/><g transform="translate(59 77) scale(1.2)"><path d="M-30 6Q-36-3-19-10L3-15 25-6Q40 8 20 14L-13 17Z" fill="#efd49a" /><path d="M-22 3-11-7 7-8 22 1 12 7-10 9Z" fill="#6ca57b" /></g><g transform="translate(53 59) scale(1)"><path d="M-14-3H14V18H-14Z" fill="#eab168" /><path d="M-21-2 0-22 21-2Z" fill="#c76a40" /><path d="M-4 18V5H5V18" fill="#3a5550" /></g><g transform="translate(73 36) scale(0.8)"><path d="M0 23V-17" fill="none" /><path d="M0-17H24L17-8 24 0H0Z" fill="#f3ae42" /></g><path d="M13 92Q23 63 48 75T83 70Q111 46 110 80Q99 101 75 97T13 106Z" fill="#469cac" /><path d="M22 89Q35 76 53 85T88 80" fill="none" stroke="#d5eee1"/></g></svg>
|
||||
|
After Width: | Height: | Size: 1,011 B |
BIN
artwork/achievements/achievement-seventy-five-points.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
1
artwork/achievements/achievement-seventy-five-points.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 128 128"><circle cx="64" cy="64" r="62" fill="#285c60" stroke="#efd49a" stroke-width="3"/><g stroke="#344e47" stroke-width="2.5" stroke-linejoin="round" stroke-linecap="round"><path d="M14 88Q24 80 35 88T57 88T79 88T111 88M25 99Q36 92 47 99T69 99T98 99" fill="none" stroke="#a9ded5"/><g transform="translate(64 86) scale(1.35)"><path d="M-30 6Q-36-3-19-10L3-15 25-6Q40 8 20 14L-13 17Z" fill="#efd49a" /><path d="M-22 3-11-7 7-8 22 1 12 7-10 9Z" fill="#6ca57b" /></g><path d="M25 81H103V89H25ZM35 65H93V75H35Z" fill="#bf975a" /><g transform="translate(43 67) scale(0.56)"><path d="M-14-3H14V18H-14Z" fill="#eab168" /><path d="M-21-2 0-22 21-2Z" fill="#c76a40" /><path d="M-4 18V5H5V18" fill="#3a5550" /></g><g transform="translate(85 67) scale(0.56)"><path d="M-14-3H14V18H-14Z" fill="#eab168" /><path d="M-21-2 0-22 21-2Z" fill="#c76a40" /><path d="M-4 18V5H5V18" fill="#3a5550" /></g><g transform="translate(64 55) scale(0.6)"><path d="M-14-3H14V18H-14Z" fill="#eab168" /><path d="M-21-2 0-22 21-2Z" fill="#c76a40" /><path d="M-4 18V5H5V18" fill="#3a5550" /></g><g transform="translate(64 29) scale(0.8)"><path d="M-21-10Q0-29 21-10L7 17H-7Z" fill="#fff0c2" /><path d="M-13-9-4 11M0-15V11M13-9 4 11" fill="none" /></g><path d="M35 28 29 22M93 28 99 22M64 8V3" fill="none" stroke="#f3b850"/><g stroke="none"><rect x="43" y="91" width="42" height="25" rx="12" fill="#fff1ce"/><text x="64" y="110" text-anchor="middle" font-family="sans-serif" font-size="21" font-weight="bold" fill="#294e50">75</text></g></g></svg>
|
||||
|
After Width: | Height: | Size: 1.6 KiB |
BIN
artwork/achievements/achievement-three-islands.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
1
artwork/achievements/achievement-three-islands.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 128 128"><circle cx="64" cy="64" r="62" fill="#285c60" stroke="#efd49a" stroke-width="3"/><g stroke="#344e47" stroke-width="2.5" stroke-linejoin="round" stroke-linecap="round"><path d="M14 88Q24 80 35 88T57 88T79 88T111 88M25 99Q36 92 47 99T69 99T98 99" fill="none" stroke="#a9ded5"/><path d="M64 39 31 83 96 83Z" fill="none" stroke-dasharray="4 5" stroke="#e9d7a6"/><g transform="translate(64 36) scale(0.65)"><path d="M-30 6Q-36-3-19-10L3-15 25-6Q40 8 20 14L-13 17Z" fill="#efd49a" /><path d="M-22 3-11-7 7-8 22 1 12 7-10 9Z" fill="#6ca57b" /></g><g transform="translate(64 26) scale(0.6)"><path d="M-14-3H14V18H-14Z" fill="#eab168" /><path d="M-21-2 0-22 21-2Z" fill="#c76a40" /><path d="M-4 18V5H5V18" fill="#3a5550" /></g><g transform="translate(33 83) scale(0.65)"><path d="M-30 6Q-36-3-19-10L3-15 25-6Q40 8 20 14L-13 17Z" fill="#efd49a" /><path d="M-22 3-11-7 7-8 22 1 12 7-10 9Z" fill="#6ca57b" /></g><g transform="translate(33 73) scale(0.6)"><path d="M-14-3H14V18H-14Z" fill="#eab168" /><path d="M-21-2 0-22 21-2Z" fill="#c76a40" /><path d="M-4 18V5H5V18" fill="#3a5550" /></g><g transform="translate(95 83) scale(0.65)"><path d="M-30 6Q-36-3-19-10L3-15 25-6Q40 8 20 14L-13 17Z" fill="#efd49a" /><path d="M-22 3-11-7 7-8 22 1 12 7-10 9Z" fill="#6ca57b" /></g><g transform="translate(95 73) scale(0.6)"><path d="M-14-3H14V18H-14Z" fill="#eab168" /><path d="M-21-2 0-22 21-2Z" fill="#c76a40" /><path d="M-4 18V5H5V18" fill="#3a5550" /></g></g></svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
BIN
artwork/achievements/achievement-tourism-twelve.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
1
artwork/achievements/achievement-tourism-twelve.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 128 128"><circle cx="64" cy="64" r="62" fill="#285c60" stroke="#efd49a" stroke-width="3"/><g stroke="#344e47" stroke-width="2.5" stroke-linejoin="round" stroke-linecap="round"><path d="M14 88Q24 80 35 88T57 88T79 88T111 88M25 99Q36 92 47 99T69 99T98 99" fill="none" stroke="#a9ded5"/><g transform="translate(64 78) scale(1.4)"><path d="M-30 6Q-36-3-19-10L3-15 25-6Q40 8 20 14L-13 17Z" fill="#efd49a" /><path d="M-22 3-11-7 7-8 22 1 12 7-10 9Z" fill="#6ca57b" /></g><g transform="translate(42 53) scale(0.8)"><path d="M-14-3H14V18H-14Z" fill="#eab168" /><path d="M-21-2 0-22 21-2Z" fill="#c76a40" /><path d="M-4 18V5H5V18" fill="#3a5550" /></g><g transform="translate(86 53) scale(0.8)"><path d="M-14-3H14V18H-14Z" fill="#eab168" /><path d="M-21-2 0-22 21-2Z" fill="#c76a40" /><path d="M-4 18V5H5V18" fill="#3a5550" /></g><circle cx="47" cy="71" r="5" fill="#fff2ce"/><path d="M43 77h8l3 14h-14Z" fill="#fff2ce" /><circle cx="65" cy="71" r="5" fill="#fff2ce"/><path d="M61 77h8l3 14h-14Z" fill="#fff2ce" /><circle cx="83" cy="71" r="5" fill="#fff2ce"/><path d="M79 77h8l3 14h-14Z" fill="#fff2ce" /><g transform="translate(64 26) scale(0.45)"><path d="M-21-10Q0-29 21-10L7 17H-7Z" fill="#fff0c2" /><path d="M-13-9-4 11M0-15V11M13-9 4 11" fill="none" /></g><g stroke="none"><rect x="43" y="91" width="42" height="25" rx="12" fill="#fff1ce"/><text x="64" y="110" text-anchor="middle" font-family="sans-serif" font-size="21" font-weight="bold" fill="#294e50">12</text></g></g></svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
BIN
artwork/achievements/achievement-treasure-six.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
1
artwork/achievements/achievement-treasure-six.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 128 128"><circle cx="64" cy="64" r="62" fill="#285c60" stroke="#efd49a" stroke-width="3"/><g stroke="#344e47" stroke-width="2.5" stroke-linejoin="round" stroke-linecap="round"><path d="M14 88Q24 80 35 88T57 88T79 88T111 88M25 99Q36 92 47 99T69 99T98 99" fill="none" stroke="#a9ded5"/><g transform="translate(64 86) scale(1.2)"><path d="M-30 6Q-36-3-19-10L3-15 25-6Q40 8 20 14L-13 17Z" fill="#efd49a" /><path d="M-22 3-11-7 7-8 22 1 12 7-10 9Z" fill="#6ca57b" /></g><g transform="translate(64 65) scale(1)"><path d="M-24 0V-13Q0-29 24-13V0Z" fill="#d69b48" /><path d="M-25 0H25V25H-25Z" fill="#a96237" /><path d="M-14 0V25M14 0V25" fill="none" stroke="#f2c872" stroke-width="5"/><path d="M-4 0H4V10H-4Z" fill="#fff0c2" /></g><g transform="translate(36 91) scale(0.4)"><path d="M-21-10Q0-29 21-10L7 17H-7Z" fill="#fff0c2" /><path d="M-13-9-4 11M0-15V11M13-9 4 11" fill="none" /></g><g stroke="none"><rect x="43" y="91" width="42" height="25" rx="12" fill="#fff1ce"/><text x="64" y="110" text-anchor="middle" font-family="sans-serif" font-size="21" font-weight="bold" fill="#294e50">6</text></g></g></svg>
|
||||
|
After Width: | Height: | Size: 1.2 KiB |
BIN
artwork/achievements/achievement-treasure-twelve.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
1
artwork/achievements/achievement-treasure-twelve.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 128 128"><circle cx="64" cy="64" r="62" fill="#285c60" stroke="#efd49a" stroke-width="3"/><g stroke="#344e47" stroke-width="2.5" stroke-linejoin="round" stroke-linecap="round"><path d="M14 88Q24 80 35 88T57 88T79 88T111 88M25 99Q36 92 47 99T69 99T98 99" fill="none" stroke="#a9ded5"/><g transform="translate(64 62) scale(1.3)"><path d="M-24-6-17-28H24L28-6Z" fill="#d69b48" /><g transform="translate(-10 -6) scale(0.45)"><path d="M-21-10Q0-29 21-10L7 17H-7Z" fill="#fff0c2" /><path d="M-13-9-4 11M0-15V11M13-9 4 11" fill="none" /></g><g transform="translate(9 -10) scale(0.55)"><path d="M-21-10Q0-29 21-10L7 17H-7Z" fill="#fff0c2" /><path d="M-13-9-4 11M0-15V11M13-9 4 11" fill="none" /></g><path d="M-25 0H25V25H-25Z" fill="#a96237" /><path d="M-14 0V25M14 0V25" fill="none" stroke="#f2c872" stroke-width="5"/><path d="M-4 0H4V10H-4Z" fill="#fff0c2" /></g><g transform="translate(29 84) scale(0.5)"><path d="M-21-10Q0-29 21-10L7 17H-7Z" fill="#fff0c2" /><path d="M-13-9-4 11M0-15V11M13-9 4 11" fill="none" /></g><g transform="translate(99 84) scale(0.5)"><path d="M-21-10Q0-29 21-10L7 17H-7Z" fill="#fff0c2" /><path d="M-13-9-4 11M0-15V11M13-9 4 11" fill="none" /></g><g stroke="none"><rect x="43" y="91" width="42" height="25" rx="12" fill="#fff1ce"/><text x="64" y="110" text-anchor="middle" font-family="sans-serif" font-size="21" font-weight="bold" fill="#294e50">12</text></g></g></svg>
|
||||
|
After Width: | Height: | Size: 1.4 KiB |
BIN
artwork/achievements/achievement-trio-victory.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
1
artwork/achievements/achievement-trio-victory.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 128 128"><circle cx="64" cy="64" r="62" fill="#285c60" stroke="#efd49a" stroke-width="3"/><g stroke="#344e47" stroke-width="2.5" stroke-linejoin="round" stroke-linecap="round"><path d="M14 88Q24 80 35 88T57 88T79 88T111 88M25 99Q36 92 47 99T69 99T98 99" fill="none" stroke="#a9ded5"/><g transform="translate(64 67) scale(0.65)"><path d="M-30 6Q-36-3-19-10L3-15 25-6Q40 8 20 14L-13 17Z" fill="#efd49a" /><path d="M-22 3-11-7 7-8 22 1 12 7-10 9Z" fill="#6ca57b" /></g><g data-boat="true" transform="translate(64 32) rotate(0) scale(0.68)"><path d="M-21 9H23L13 19H-11Z" fill="#f3ae42" /><path d="M0 8V-23L18 5H0Z" fill="#fff1c9" /><path d="M-19 24H20M-10 14V24M11 14V24" fill="none" /></g><g data-boat="true" transform="translate(33 87) rotate(-20) scale(0.68)"><path d="M-21 9H23L13 19H-11Z" fill="#e9a982" /><path d="M0 8V-23L18 5H0Z" fill="#fff1c9" /><path d="M-19 24H20M-10 14V24M11 14V24" fill="none" /></g><g data-boat="true" transform="translate(95 87) rotate(20) scale(0.68)"><path d="M-21 9H23L13 19H-11Z" fill="#e9a982" /><path d="M0 8V-23L18 5H0Z" fill="#fff1c9" /><path d="M-19 24H20M-10 14V24M11 14V24" fill="none" /></g><g transform="translate(66 60) scale(0.5)"><path d="M0 23V-17" fill="none" /><path d="M0-17H24L17-8 24 0H0Z" fill="#f3ae42" /></g></g></svg>
|
||||
|
After Width: | Height: | Size: 1.3 KiB |
BIN
artwork/achievements/achievement-weather-the-waters.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
1
artwork/achievements/achievement-weather-the-waters.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 128 128"><circle cx="64" cy="64" r="62" fill="#285c60" stroke="#efd49a" stroke-width="3"/><g stroke="#344e47" stroke-width="2.5" stroke-linejoin="round" stroke-linecap="round"><path d="M14 88Q24 80 35 88T57 88T79 88T111 88M25 99Q36 92 47 99T69 99T98 99" fill="none" stroke="#a9ded5"/><circle cx="112" cy="64" r="4" fill="#f6d793"/><circle cx="97.94112549695429" cy="97.94112549695427" r="4" fill="#f6d793"/><circle cx="64" cy="112" r="4" fill="#f6d793"/><circle cx="30.058874503045722" cy="97.94112549695429" r="4" fill="#f6d793"/><circle cx="16" cy="64" r="4" fill="#f6d793"/><circle cx="30.058874503045715" cy="30.058874503045722" r="4" fill="#f6d793"/><circle cx="63.99999999999999" cy="16" r="4" fill="#f6d793"/><circle cx="97.94112549695427" cy="30.058874503045715" r="4" fill="#f6d793"/><g transform="translate(64 68) scale(0.95)"><path d="M-30 6Q-36-3-19-10L3-15 25-6Q40 8 20 14L-13 17Z" fill="#efd49a" /><path d="M-22 3-11-7 7-8 22 1 12 7-10 9Z" fill="#6ca57b" /></g><g transform="translate(63 51) scale(0.9)"><path d="M-14-3H14V18H-14Z" fill="#eab168" /><path d="M-21-2 0-22 21-2Z" fill="#c76a40" /><path d="M-4 18V5H5V18" fill="#3a5550" /></g><path d="M13 92Q23 63 48 75T83 70Q111 46 110 80Q99 101 75 97T13 106Z" fill="#469cac" /><path d="M22 89Q35 76 53 85T88 80" fill="none" stroke="#d5eee1"/><path d="M28 77 89 65 95 75 31 88Z" fill="#b99873" /></g></svg>
|
||||
|
After Width: | Height: | Size: 1.4 KiB |
85
artwork/achievements/baseline.json
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
{
|
||||
"revision": 1,
|
||||
"achievements": [
|
||||
{
|
||||
"id": "island-victory",
|
||||
"name": "Island Victory",
|
||||
"description": "Win a game outright."
|
||||
},
|
||||
{
|
||||
"id": "duel-victory",
|
||||
"name": "Duel Victory",
|
||||
"description": "Win a two-player game outright."
|
||||
},
|
||||
{
|
||||
"id": "trio-victory",
|
||||
"name": "Trio Victory",
|
||||
"description": "Win a three-player game outright."
|
||||
},
|
||||
{
|
||||
"id": "quartet-victory",
|
||||
"name": "Quartet Victory",
|
||||
"description": "Win a four-player game outright."
|
||||
},
|
||||
{
|
||||
"id": "full-table-victory",
|
||||
"name": "Full Table Victory",
|
||||
"description": "Win a five-player game outright."
|
||||
},
|
||||
{
|
||||
"id": "rising-waters-victory",
|
||||
"name": "Against the Tide",
|
||||
"description": "Win a Rising Waters game outright."
|
||||
},
|
||||
{
|
||||
"id": "no-characters-victory",
|
||||
"name": "On Your Own Merits",
|
||||
"description": "Win outright with Characters disabled."
|
||||
},
|
||||
{
|
||||
"id": "fifty-points",
|
||||
"name": "Island Prosperity",
|
||||
"description": "Finish with at least 50 points."
|
||||
},
|
||||
{
|
||||
"id": "seventy-five-points",
|
||||
"name": "Island Renown",
|
||||
"description": "Finish with at least 75 points."
|
||||
},
|
||||
{
|
||||
"id": "nine-vatus",
|
||||
"name": "Full Purse",
|
||||
"description": "Retain 9 vatus after final scoring."
|
||||
},
|
||||
{
|
||||
"id": "four-huts",
|
||||
"name": "Village Builder",
|
||||
"description": "Finish with at least four surviving huts."
|
||||
},
|
||||
{
|
||||
"id": "three-islands",
|
||||
"name": "Island Network",
|
||||
"description": "Finish with huts on at least three islands."
|
||||
},
|
||||
{
|
||||
"id": "tourism-twelve",
|
||||
"name": "Welcoming Shores",
|
||||
"description": "Earn at least 12 final-scoring points from hut tourism."
|
||||
},
|
||||
{
|
||||
"id": "treasure-six",
|
||||
"name": "Treasure Keeper",
|
||||
"description": "Retain treasure worth at least 6 final-scoring points."
|
||||
},
|
||||
{
|
||||
"id": "treasure-twelve",
|
||||
"name": "Sunken Riches",
|
||||
"description": "Retain treasure worth at least 12 final-scoring points."
|
||||
},
|
||||
{
|
||||
"id": "weather-the-waters",
|
||||
"name": "Weather the Waters",
|
||||
"description": "Complete all eight rounds of Rising Waters without the collective flood loss."
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
artwork/achievements/contact-dark.png
Normal file
|
After Width: | Height: | Size: 226 KiB |
BIN
artwork/achievements/contact-light.png
Normal file
|
After Width: | Height: | Size: 223 KiB |
169
artwork/achievements/manifest.json
Normal file
|
|
@ -0,0 +1,169 @@
|
|||
{
|
||||
"game": "vanuatu",
|
||||
"engineVersion": "0.2.2",
|
||||
"revision": 2,
|
||||
"sourceSha256": "c2f3c0583fa62bbb384f6ba87deeabcbd193df506f85a8b24ae22033296caca3",
|
||||
"provenance": "README.md",
|
||||
"assets": [
|
||||
{
|
||||
"id": "island-victory",
|
||||
"key": "achievement-island-victory",
|
||||
"svg": "achievement-island-victory.svg",
|
||||
"png": "achievement-island-victory.png",
|
||||
"svgSha256": "0a0cc14df792421eae495548266cd03bc5722b42a05d4e67c3f2d351b2c921eb",
|
||||
"pngSha256": "1a6e4fce8b3891c595ecd3898fefd2cab81a3b3263a35193b85cb4d9597db1a1",
|
||||
"width": 256,
|
||||
"height": 256
|
||||
},
|
||||
{
|
||||
"id": "duel-victory",
|
||||
"key": "achievement-duel-victory",
|
||||
"svg": "achievement-duel-victory.svg",
|
||||
"png": "achievement-duel-victory.png",
|
||||
"svgSha256": "5cf9b2998e1303cb5418d299832078f5ab955bb3a0af16a8a53221177c943884",
|
||||
"pngSha256": "04edb7b33e514ab1f02eaf4927d994fb7c697d65e8f5ce119e829cce1e5ea6c3",
|
||||
"width": 256,
|
||||
"height": 256
|
||||
},
|
||||
{
|
||||
"id": "trio-victory",
|
||||
"key": "achievement-trio-victory",
|
||||
"svg": "achievement-trio-victory.svg",
|
||||
"png": "achievement-trio-victory.png",
|
||||
"svgSha256": "ef71777ea75c4c7f015b1bbbfed965e183bbd4a7270bfd74bf8780ad8ad10a61",
|
||||
"pngSha256": "05aa8836ee91f5976bcd0f16c29e6fd03dfd334384ce1649a7848924c5d30d5c",
|
||||
"width": 256,
|
||||
"height": 256
|
||||
},
|
||||
{
|
||||
"id": "quartet-victory",
|
||||
"key": "achievement-quartet-victory",
|
||||
"svg": "achievement-quartet-victory.svg",
|
||||
"png": "achievement-quartet-victory.png",
|
||||
"svgSha256": "189e808bf5de943c1f1b36bc883db70146e3cfde463d523a62741e5fc70b9b6f",
|
||||
"pngSha256": "78e584f3ef0c118e596e129317dd1221ee559f80fd2277ea6508331bf20e235d",
|
||||
"width": 256,
|
||||
"height": 256
|
||||
},
|
||||
{
|
||||
"id": "full-table-victory",
|
||||
"key": "achievement-full-table-victory",
|
||||
"svg": "achievement-full-table-victory.svg",
|
||||
"png": "achievement-full-table-victory.png",
|
||||
"svgSha256": "ddd122c5e4d1a2b7ae4032ab7b746f615dec5992f8d011ae3b4685d4a85bcd3e",
|
||||
"pngSha256": "37f7879c4a7a26ec0680712d32373f77adee4416d00037bd84d34b017ac7f1f5",
|
||||
"width": 256,
|
||||
"height": 256
|
||||
},
|
||||
{
|
||||
"id": "rising-waters-victory",
|
||||
"key": "achievement-rising-waters-victory",
|
||||
"svg": "achievement-rising-waters-victory.svg",
|
||||
"png": "achievement-rising-waters-victory.png",
|
||||
"svgSha256": "ba6f1a5814c48f28f0867faf6ea5c8b5dbbd64a94ba05c41d0e1b84d0ae79a5d",
|
||||
"pngSha256": "c463d282a375e70194c8bd719fbf907377b702c90412e99c256bddf9f8def656",
|
||||
"width": 256,
|
||||
"height": 256
|
||||
},
|
||||
{
|
||||
"id": "no-characters-victory",
|
||||
"key": "achievement-no-characters-victory",
|
||||
"svg": "achievement-no-characters-victory.svg",
|
||||
"png": "achievement-no-characters-victory.png",
|
||||
"svgSha256": "dee275035af5f99180f2605da9282358b140832173e21f80e7cd3d9d3206e439",
|
||||
"pngSha256": "c0bdec89cf12645326afd6719262bfc81c6bafd4307b3221d3fc463186ee0035",
|
||||
"width": 256,
|
||||
"height": 256
|
||||
},
|
||||
{
|
||||
"id": "fifty-points",
|
||||
"key": "achievement-fifty-points",
|
||||
"svg": "achievement-fifty-points.svg",
|
||||
"png": "achievement-fifty-points.png",
|
||||
"svgSha256": "2a735faf1bce576db67351d4c699a474653ed7fb49fd070df43eb5840e7b49ea",
|
||||
"pngSha256": "74f9ef25404e02e3ef578c26050be1bf9857f3bb1f756089750092ea1ddef718",
|
||||
"width": 256,
|
||||
"height": 256
|
||||
},
|
||||
{
|
||||
"id": "seventy-five-points",
|
||||
"key": "achievement-seventy-five-points",
|
||||
"svg": "achievement-seventy-five-points.svg",
|
||||
"png": "achievement-seventy-five-points.png",
|
||||
"svgSha256": "02a873d2e6d646deb90eb6c96c35161ab9c302c8051f90365c3da745cb38d13e",
|
||||
"pngSha256": "d44359a53f15d720ae7b6c4827a446fe572d7d9fd2af6db807f0fc8abf92d2a5",
|
||||
"width": 256,
|
||||
"height": 256
|
||||
},
|
||||
{
|
||||
"id": "nine-vatus",
|
||||
"key": "achievement-nine-vatus",
|
||||
"svg": "achievement-nine-vatus.svg",
|
||||
"png": "achievement-nine-vatus.png",
|
||||
"svgSha256": "826a1f167b3595e5a3a565c045536289149931fda3b68e76533ca6e056cce0d7",
|
||||
"pngSha256": "5a426620dbbee00d4fe337fc9d64f267c8c35830a3f8d9e3205bc992f5c26944",
|
||||
"width": 256,
|
||||
"height": 256
|
||||
},
|
||||
{
|
||||
"id": "four-huts",
|
||||
"key": "achievement-four-huts",
|
||||
"svg": "achievement-four-huts.svg",
|
||||
"png": "achievement-four-huts.png",
|
||||
"svgSha256": "f3ccad1e87763e88319e9ec83caa9b245a3e1522bcc54fd93127d4587a71bbf3",
|
||||
"pngSha256": "9c8215302a61049694cbb1a380890f8b32de53fb3609dbf4c539e168f0e3f60b",
|
||||
"width": 256,
|
||||
"height": 256
|
||||
},
|
||||
{
|
||||
"id": "three-islands",
|
||||
"key": "achievement-three-islands",
|
||||
"svg": "achievement-three-islands.svg",
|
||||
"png": "achievement-three-islands.png",
|
||||
"svgSha256": "937106b26094272efac3fe09618492c81af6a08c3604dd7cc39f800393ead043",
|
||||
"pngSha256": "7030b357f4a128bbf5e9af3c2c7c00b2c4f1d462d73d92c06d40cb84b8f3a571",
|
||||
"width": 256,
|
||||
"height": 256
|
||||
},
|
||||
{
|
||||
"id": "tourism-twelve",
|
||||
"key": "achievement-tourism-twelve",
|
||||
"svg": "achievement-tourism-twelve.svg",
|
||||
"png": "achievement-tourism-twelve.png",
|
||||
"svgSha256": "ef781e670446253ff26906229660f5b04348fd7b7fb6404cd9eb6a59d85b992d",
|
||||
"pngSha256": "3fbe653a82d193e6e79dfb72d4284e196058980f840885a6ef4612a1111b786a",
|
||||
"width": 256,
|
||||
"height": 256
|
||||
},
|
||||
{
|
||||
"id": "treasure-six",
|
||||
"key": "achievement-treasure-six",
|
||||
"svg": "achievement-treasure-six.svg",
|
||||
"png": "achievement-treasure-six.png",
|
||||
"svgSha256": "6e6fe574b8f763e93f39ecf067bcf36146faf52a1526308095409bf6c249e31a",
|
||||
"pngSha256": "d0e8f4274693eff9183e4f93c1700cdafaa9722aac166cac63d64d3b768f3098",
|
||||
"width": 256,
|
||||
"height": 256
|
||||
},
|
||||
{
|
||||
"id": "treasure-twelve",
|
||||
"key": "achievement-treasure-twelve",
|
||||
"svg": "achievement-treasure-twelve.svg",
|
||||
"png": "achievement-treasure-twelve.png",
|
||||
"svgSha256": "19b1af7564010341965e59e8d072ffa828a57125c1a1744e5b4941be874e4aeb",
|
||||
"pngSha256": "64d2e85e91027726025fd1815cf59694831be61c3a35a90356c0be20d87c03f0",
|
||||
"width": 256,
|
||||
"height": 256
|
||||
},
|
||||
{
|
||||
"id": "weather-the-waters",
|
||||
"key": "achievement-weather-the-waters",
|
||||
"svg": "achievement-weather-the-waters.svg",
|
||||
"png": "achievement-weather-the-waters.png",
|
||||
"svgSha256": "abf43b8310add890e0f64b7ac5eefcdcb5f7dfdaea9fc3f47b31b153dda594c5",
|
||||
"pngSha256": "57e087f316d52aeff1a22a39c68db95710eca57cba751af9ecc2a6e24b628914",
|
||||
"width": 256,
|
||||
"height": 256
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
/** @type {import('@boardgamers/protocol/engine').AchievementManifest} */
|
||||
const manifest = {
|
||||
revision: 1,
|
||||
revision: 2,
|
||||
achievements: [
|
||||
["island-victory", "Island Victory", "Win a game outright."],
|
||||
["duel-victory", "Duel Victory", "Win a two-player game outright."],
|
||||
|
|
@ -56,7 +56,12 @@ const manifest = {
|
|||
"Weather the Waters",
|
||||
"Complete all eight rounds of Rising Waters without the collective flood loss.",
|
||||
],
|
||||
].map(([id, name, description]) => ({ id, name, description })),
|
||||
].map(([id, name, description]) => ({
|
||||
id,
|
||||
name,
|
||||
description,
|
||||
icon: { type: "asset", key: `achievement-${id}` },
|
||||
})),
|
||||
};
|
||||
|
||||
export function achievementDefinitions() {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@boardgamers/vanuatu",
|
||||
"version": "0.2.1",
|
||||
"version": "0.2.2",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"main": "dist/engine.js",
|
||||
|
|
@ -15,7 +15,8 @@
|
|||
"test:browser": "node test/browser.mjs && node test/undo-browser.mjs && node test/journal-browser.mjs && node test/map-zoom-browser.mjs && node test/map-drag-browser.mjs && node test/redraw-browser.mjs && node test/mobile-layout-browser.mjs && node test/prose-browser.mjs && node test/effects-browser.mjs && node test/three-viewer-browser.mjs",
|
||||
"check": "pnpm test:achievements:types && pnpm test:locales && pnpm build && pnpm test && pnpm test:browser && pnpm test:tutorial:browser",
|
||||
"test:locales": "node scripts/check-locales.mjs viewer/localization && node --test scripts/localization.test.mjs",
|
||||
"test:tutorial:browser": "node test/tutorial-browser.mjs && node test/tutorial-walkthrough-browser.mjs && node test/tutorial-errors-browser.mjs"
|
||||
"test:tutorial:browser": "node test/tutorial-browser.mjs && node test/tutorial-walkthrough-browser.mjs && node test/tutorial-errors-browser.mjs",
|
||||
"art:achievements": "node scripts/achievement-art.mjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@boardgamers/protocol": "0.11.0",
|
||||
|
|
|
|||
256
scripts/achievement-art.mjs
Normal file
|
|
@ -0,0 +1,256 @@
|
|||
// Original achievement geometry. See artwork/achievements/README.md for provenance.
|
||||
import { chromium } from "playwright";
|
||||
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
||||
import { createHash } from "node:crypto";
|
||||
import { achievementDefinitions } from "../engine/achievements.js";
|
||||
const out = "artwork/achievements";
|
||||
const hash = (b) => createHash("sha256").update(b).digest("hex");
|
||||
const p = (d, fill = "#f6d793", extra = "") =>
|
||||
`<path d="${d}" fill="${fill}" ${extra}/>`;
|
||||
const circle = (x, y, r, fill) =>
|
||||
`<circle cx="${x}" cy="${y}" r="${r}" fill="${fill}"/>`;
|
||||
const group = (x, y, s, body) =>
|
||||
`<g transform="translate(${x} ${y}) scale(${s})">${body}</g>`;
|
||||
const island = (x, y, s = 1) =>
|
||||
group(
|
||||
x,
|
||||
y,
|
||||
s,
|
||||
p("M-30 6Q-36-3-19-10L3-15 25-6Q40 8 20 14L-13 17Z", "#efd49a") +
|
||||
p("M-22 3-11-7 7-8 22 1 12 7-10 9Z", "#6ca57b"),
|
||||
);
|
||||
const hut = (x, y, s = 1) =>
|
||||
group(
|
||||
x,
|
||||
y,
|
||||
s,
|
||||
p("M-14-3H14V18H-14Z", "#eab168") +
|
||||
p("M-21-2 0-22 21-2Z", "#c76a40") +
|
||||
p("M-4 18V5H5V18", "#3a5550"),
|
||||
);
|
||||
const flag = (x, y, s = 1) =>
|
||||
group(
|
||||
x,
|
||||
y,
|
||||
s,
|
||||
p("M0 23V-17", "none") + p("M0-17H24L17-8 24 0H0Z", "#f3ae42"),
|
||||
);
|
||||
const boat = (x, y, s = 1, rot = 0, lead = false) =>
|
||||
`<g data-boat="true" transform="translate(${x} ${y}) rotate(${rot}) scale(${s})">${p("M-21 9H23L13 19H-11Z", lead ? "#f3ae42" : "#e9a982")}${p("M0 8V-23L18 5H0Z", "#fff1c9")}${p("M-19 24H20M-10 14V24M11 14V24", "none")}</g>`;
|
||||
const shell = (x, y, s = 1) =>
|
||||
group(
|
||||
x,
|
||||
y,
|
||||
s,
|
||||
p("M-21-10Q0-29 21-10L7 17H-7Z", "#fff0c2") +
|
||||
p("M-13-9-4 11M0-15V11M13-9 4 11", "none"),
|
||||
);
|
||||
const label = (n) =>
|
||||
`<g stroke="none"><rect x="43" y="91" width="42" height="25" rx="12" fill="#fff1ce"/><text x="64" y="110" text-anchor="middle" font-family="sans-serif" font-size="21" font-weight="bold" fill="#294e50">${n}</text></g>`;
|
||||
const waves = p(
|
||||
"M14 88Q24 80 35 88T57 88T79 88T111 88M25 99Q36 92 47 99T69 99T98 99",
|
||||
"none",
|
||||
'stroke="#a9ded5"',
|
||||
);
|
||||
const flood =
|
||||
p("M13 92Q23 63 48 75T83 70Q111 46 110 80Q99 101 75 97T13 106Z", "#469cac") +
|
||||
p("M22 89Q35 76 53 85T88 80", "none", 'stroke="#d5eee1"');
|
||||
const chest = (x, y, s = 1, open = false) =>
|
||||
group(
|
||||
x,
|
||||
y,
|
||||
s,
|
||||
(open
|
||||
? p("M-24-6-17-28H24L28-6Z", "#d69b48") +
|
||||
shell(-10, -6, 0.45) +
|
||||
shell(9, -10, 0.55)
|
||||
: p("M-24 0V-13Q0-29 24-13V0Z", "#d69b48")) +
|
||||
p("M-25 0H25V25H-25Z", "#a96237") +
|
||||
p("M-14 0V25M14 0V25", "none", 'stroke="#f2c872" stroke-width="5"') +
|
||||
p("M-4 0H4V10H-4Z", "#fff0c2"),
|
||||
);
|
||||
const art = {};
|
||||
art["island-victory"] =
|
||||
island(64, 84, 1.4) + hut(57, 65, 1.25) + flag(77, 40, 0.9);
|
||||
art["duel-victory"] =
|
||||
island(64, 43, 0.65) +
|
||||
flag(65, 28, 0.55) +
|
||||
boat(33, 70, 0.85, 15, true) +
|
||||
boat(91, 77, 0.85, -15);
|
||||
art["trio-victory"] =
|
||||
island(64, 67, 0.65) +
|
||||
boat(64, 32, 0.68, 0, true) +
|
||||
boat(33, 87, 0.68, -20) +
|
||||
boat(95, 87, 0.68, 20) +
|
||||
flag(66, 60, 0.5);
|
||||
art["quartet-victory"] =
|
||||
island(64, 64, 0.64) +
|
||||
flag(64, 54, 0.5) +
|
||||
[
|
||||
[64, 28, 0],
|
||||
[101, 64, 90],
|
||||
[64, 100, 180],
|
||||
[27, 64, -90],
|
||||
]
|
||||
.map(([x, y, r], i) => boat(x, y, 0.57, r, i === 0))
|
||||
.join("");
|
||||
art["full-table-victory"] =
|
||||
island(64, 65, 0.6) +
|
||||
flag(65, 54, 0.5) +
|
||||
Array.from({ length: 5 }, (_, i) => {
|
||||
const a = (i * Math.PI * 2) / 5 - Math.PI / 2;
|
||||
return boat(
|
||||
64 + 39 * Math.cos(a),
|
||||
64 + 39 * Math.sin(a),
|
||||
0.53,
|
||||
i * 72,
|
||||
i === 0,
|
||||
);
|
||||
}).join("");
|
||||
art["rising-waters-victory"] =
|
||||
island(59, 77, 1.2) + hut(53, 59, 1) + flag(73, 36, 0.8) + flood;
|
||||
art["no-characters-victory"] =
|
||||
'<rect x="65" y="35" width="31" height="48" rx="5" fill="#fff0cd" stroke-dasharray="5 4"/>' +
|
||||
p("M71 76 89 42", "none", 'stroke="#b15e42"') +
|
||||
flag(36, 39, 0.9) +
|
||||
[77, 68, 59]
|
||||
.map((y) => `<ellipse cx="43" cy="${y}" rx="20" ry="8" fill="#d57b4e"/>`)
|
||||
.join("");
|
||||
art["fifty-points"] =
|
||||
island(64, 82, 1.25) +
|
||||
hut(45, 70, 0.7) +
|
||||
hut(82, 71, 0.7) +
|
||||
shell(64, 41, 0.85) +
|
||||
label(50);
|
||||
art["seventy-five-points"] =
|
||||
island(64, 86, 1.35) +
|
||||
p("M25 81H103V89H25ZM35 65H93V75H35Z", "#bf975a") +
|
||||
hut(43, 67, 0.56) +
|
||||
hut(85, 67, 0.56) +
|
||||
hut(64, 55, 0.6) +
|
||||
shell(64, 29, 0.8) +
|
||||
p("M35 28 29 22M93 28 99 22M64 8V3", "none", 'stroke="#f3b850"') +
|
||||
label(75);
|
||||
art["nine-vatus"] =
|
||||
p("M42 43Q29 63 32 86Q64 111 96 86Q99 63 86 43Z", "#c9864b") +
|
||||
'<ellipse cx="64" cy="44" rx="24" ry="10" fill="#354d49"/>' +
|
||||
[
|
||||
[48, 42],
|
||||
[64, 36],
|
||||
[79, 44],
|
||||
]
|
||||
.map(
|
||||
([x, y]) =>
|
||||
circle(x, y, 10, "#f6d385") + p(`M${x - 4} ${y - 4}l4 8 4-8`, "none"),
|
||||
)
|
||||
.join("") +
|
||||
label(9);
|
||||
art["four-huts"] =
|
||||
island(64, 74, 1.45) +
|
||||
[
|
||||
[44, 49],
|
||||
[84, 49],
|
||||
[43, 78],
|
||||
[85, 78],
|
||||
]
|
||||
.map(([x, y]) => hut(x, y, 0.75))
|
||||
.join("");
|
||||
art["three-islands"] =
|
||||
p("M64 39 31 83 96 83Z", "none", 'stroke-dasharray="4 5" stroke="#e9d7a6"') +
|
||||
[
|
||||
[64, 36],
|
||||
[33, 83],
|
||||
[95, 83],
|
||||
]
|
||||
.map(([x, y]) => island(x, y, 0.65) + hut(x, y - 10, 0.6))
|
||||
.join("");
|
||||
art["tourism-twelve"] =
|
||||
island(64, 78, 1.4) +
|
||||
hut(42, 53, 0.8) +
|
||||
hut(86, 53, 0.8) +
|
||||
[47, 65, 83]
|
||||
.map(
|
||||
(x) =>
|
||||
circle(x, 71, 5, "#fff2ce") + p(`M${x - 4} 77h8l3 14h-14Z`, "#fff2ce"),
|
||||
)
|
||||
.join("") +
|
||||
shell(64, 26, 0.45) +
|
||||
label(12);
|
||||
art["treasure-six"] =
|
||||
island(64, 86, 1.2) + chest(64, 65, 1) + shell(36, 91, 0.4) + label(6);
|
||||
art["treasure-twelve"] =
|
||||
chest(64, 62, 1.3, true) +
|
||||
shell(29, 84, 0.5) +
|
||||
shell(99, 84, 0.5) +
|
||||
label(12);
|
||||
art["weather-the-waters"] =
|
||||
Array.from({ length: 8 }, (_, i) => {
|
||||
const a = (i * Math.PI) / 4;
|
||||
return circle(64 + 48 * Math.cos(a), 64 + 48 * Math.sin(a), 4, "#f6d793");
|
||||
}).join("") +
|
||||
island(64, 68, 0.95) +
|
||||
hut(63, 51, 0.9) +
|
||||
flood +
|
||||
p("M28 77 89 65 95 75 31 88Z", "#b99873");
|
||||
await mkdir(out, { recursive: true });
|
||||
const browser = await chromium.launch({ headless: true });
|
||||
const page = await browser.newPage({
|
||||
viewport: { width: 256, height: 256 },
|
||||
deviceScaleFactor: 1,
|
||||
});
|
||||
const manifest = {
|
||||
game: "vanuatu",
|
||||
engineVersion: "0.2.2",
|
||||
revision: 2,
|
||||
sourceSha256: hash(await readFile("scripts/achievement-art.mjs")),
|
||||
provenance: "README.md",
|
||||
assets: [],
|
||||
};
|
||||
for (const a of achievementDefinitions().achievements) {
|
||||
if (!art[a.id]) throw Error(a.id);
|
||||
const key = `achievement-${a.id}`;
|
||||
const svg = `<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 128 128"><circle cx="64" cy="64" r="62" fill="#285c60" stroke="#efd49a" stroke-width="3"/><g stroke="#344e47" stroke-width="2.5" stroke-linejoin="round" stroke-linecap="round">${waves}${art[a.id]}</g></svg>`;
|
||||
await writeFile(`${out}/${key}.svg`, svg);
|
||||
await page.setContent(
|
||||
`<style>body{margin:0;background:transparent}svg{display:block}</style>${svg}`,
|
||||
);
|
||||
const png = await page.screenshot({ omitBackground: true });
|
||||
await writeFile(`${out}/${key}.png`, png);
|
||||
manifest.assets.push({
|
||||
id: a.id,
|
||||
key,
|
||||
svg: `${key}.svg`,
|
||||
png: `${key}.png`,
|
||||
svgSha256: hash(svg),
|
||||
pngSha256: hash(png),
|
||||
width: 256,
|
||||
height: 256,
|
||||
});
|
||||
}
|
||||
await writeFile(
|
||||
`${out}/manifest.json`,
|
||||
JSON.stringify(manifest, null, 2) + "\n",
|
||||
);
|
||||
for (const dark of [false, true]) {
|
||||
await page.setViewportSize({ width: 1000, height: 1000 });
|
||||
await page.setContent(
|
||||
`<style>body{margin:0;padding:20px;background:${dark ? "#17252c" : "#fff8ea"};color:${dark ? "#fff1cf" : "#294e50"};font:14px sans-serif}main{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}article{height:215px;text-align:center}img{vertical-align:middle;border-radius:50%;margin:5px}</style><h2>Vanuatu · 32 / 48 / 64 / 96 px · ${dark ? "dark" : "light"}</h2><main>${await Promise.all(manifest.assets.map(async (a) => `<article><p>${a.id}</p>${[32, 48, 64, 96].map((n) => `<img width="${n}" height="${n}" src="data:image/png;base64,${""}" data-key="${a.key}">`).join("")}</article>`)).then((xs) => xs.join(""))}</main>`,
|
||||
);
|
||||
for (const a of manifest.assets) {
|
||||
const data = (await readFile(`${out}/${a.png}`)).toString("base64");
|
||||
await page
|
||||
.locator(`[data-key="${a.key}"]`)
|
||||
.evaluateAll(
|
||||
(els, data) =>
|
||||
els.forEach((el) => (el.src = `data:image/png;base64,${data}`)),
|
||||
data,
|
||||
);
|
||||
}
|
||||
await page.evaluate(() =>
|
||||
Promise.all([...document.images].map((i) => i.decode())),
|
||||
);
|
||||
await page.screenshot({
|
||||
path: `${out}/contact-${dark ? "dark" : "light"}.png`,
|
||||
});
|
||||
}
|
||||
await browser.close();
|
||||
73
test/achievement-art.test.js
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
import test from "node:test";
|
||||
import assert from "node:assert/strict";
|
||||
import { readFile } from "node:fs/promises";
|
||||
import { createHash } from "node:crypto";
|
||||
import { chromium } from "playwright";
|
||||
import { achievementManifestSchema } from "@boardgamers/protocol/achievements";
|
||||
import { achievementDefinitions } from "../engine/achievements.js";
|
||||
const root = new URL("../artwork/achievements/", import.meta.url);
|
||||
const hash = (b) => createHash("sha256").update(b).digest("hex");
|
||||
test("art-only contract, baseline predicates and complete decoded unique exports", async () => {
|
||||
const baseline = JSON.parse(await readFile(new URL("baseline.json", root)));
|
||||
const current = achievementDefinitions();
|
||||
achievementManifestSchema.parse(current);
|
||||
assert.equal(current.revision, 2);
|
||||
assert.deepEqual(
|
||||
current.achievements.map(({ icon, ...a }) => a),
|
||||
baseline.achievements,
|
||||
);
|
||||
const source = await readFile(
|
||||
new URL("../engine/achievements.js", import.meta.url),
|
||||
"utf8",
|
||||
);
|
||||
assert.equal(
|
||||
hash(source.split("export function evaluateAchievements")[1]),
|
||||
"3ca2c00f7aff7021f7e33095a2639f5cae9e2a5ed3e7417a3e72b50ca4cf42dc",
|
||||
);
|
||||
const exports = JSON.parse(await readFile(new URL("manifest.json", root)));
|
||||
assert.equal(
|
||||
exports.sourceSha256,
|
||||
hash(
|
||||
await readFile(
|
||||
new URL("../scripts/achievement-art.mjs", import.meta.url),
|
||||
),
|
||||
),
|
||||
);
|
||||
assert.deepEqual(
|
||||
exports.assets.map((a) => a.id),
|
||||
current.achievements.map((a) => a.id),
|
||||
);
|
||||
assert.equal(new Set(exports.assets.map((a) => a.pngSha256)).size, 16);
|
||||
const browser = await chromium.launch({ headless: true });
|
||||
try {
|
||||
const page = await browser.newPage();
|
||||
for (const [i, a] of exports.assets.entries()) {
|
||||
assert.deepEqual(current.achievements[i].icon, {
|
||||
type: "asset",
|
||||
key: a.key,
|
||||
});
|
||||
assert.equal(a.key, `achievement-${a.id}`);
|
||||
const svg = await readFile(new URL(a.svg, root));
|
||||
const png = await readFile(new URL(a.png, root));
|
||||
assert.equal(hash(svg), a.svgSha256);
|
||||
assert.equal(hash(png), a.pngSha256);
|
||||
const dimensions = await page.evaluate(async (data) => {
|
||||
const image = new Image();
|
||||
image.src = `data:image/png;base64,${data}`;
|
||||
await image.decode();
|
||||
return [image.naturalWidth, image.naturalHeight];
|
||||
}, png.toString("base64"));
|
||||
assert.deepEqual(dimensions, [256, 256]);
|
||||
const boats = (svg.toString().match(/data-boat=/g) || []).length;
|
||||
const expected = {
|
||||
"duel-victory": 2,
|
||||
"trio-victory": 3,
|
||||
"quartet-victory": 4,
|
||||
"full-table-victory": 5,
|
||||
};
|
||||
assert.equal(boats, expected[a.id] || 0);
|
||||
}
|
||||
} finally {
|
||||
await browser.close();
|
||||
}
|
||||
});
|
||||
|
|
@ -81,7 +81,7 @@ function islands(s) {
|
|||
test("manifest passes the official runtime schema and is independently owned", () => {
|
||||
const manifest = E.achievementDefinitions();
|
||||
achievementManifestSchema.parse(manifest);
|
||||
assert.equal(manifest.revision, 1);
|
||||
assert.equal(manifest.revision, 2);
|
||||
assert.deepEqual(
|
||||
manifest.achievements.map((a) => a.id),
|
||||
ids,
|
||||
|
|
|
|||