election-game/web/public/favicon.svg

72 lines
4.6 KiB
XML
Raw Permalink Normal View History

選戰卡牌第五版:趕場、政見支票、資源瘦身、新主畫面圖示、修 Bug 資源與載入(docs/27 第 1 節):首頁下載 8.7 → 1.6 MB、載入畫面 4.4 → 1.5 秒,進一局 5.0 → 1.3 MB - 中文字型切成 unicode-range 小片,照畫面出現的頻率排(art/fonts/split-webfonts.py),拿掉 Google Fonts; canvas 上的字(3D 看板、名牌、分享圖)字型片載好再畫一次(ui/canvasFont.ts) - 3D 模型 meshopt 壓縮、只留用到的動作(art/optimize-3d.mjs、game/gltf.ts),5.5 → 1.0 MB - 卡圖 320 px 小圖+srcset(art/cards-small.sh);木紋貼圖縮小;背景音樂改 Opus 96 kbps(art/music-opus.sh) - 新增 GET /api/scenarios/list 只回大廳用到的欄位(1.52 → 0.44 MB);伺服器沒有這條路由時前端改抓舊的清單 玩法(docs/27 第 2–4 節,研究桌遊機制後挑兩個做): - 趕場(推運氣):每週可以翻牌庫頂的牌免費打,越翻越容易翻車(POST /api/rogue/runs/:id/overtime) - 政見支票(藏起來的長期目標):第 1 週開跑記者會三選一或不開,開票時兌現全市加票、跳票掉票 新主畫面圖示:重畫投票箱(art/icon/icon.svg、render-icons.sh),apple-touch 滿版不透明,加 Android maskable 修 Bug: - 舊版伺服器沒有新路由時,首頁、政治生涯的紅色「Not Found」改成照樣能用;版本對不上時寫中文說明 - 捏人物「存起來,去政治生涯」直接選好剛捏的角色、跳到選家鄉 - 政見支票:開票畫面的兌現與否和開票結果一致(照投票日的票數判定);跳過=不開;模擬玩家都不開 - 趕場翻到的免費牌只免費一次 - 劇本清單算錯一次後不會一直回錯誤 - 分享圖的標語、減少動態效果時的 3D 看板,字型晚到後重畫 - Safari 解不開 OGG 時改放 MP3 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 09:04:19 +00:00
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024">
<defs>
<radialGradient id="sky" cx="512" cy="420" r="760" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#fff2a1"/>
<stop offset="0.5" stop-color="#ffd84f"/>
<stop offset="1" stop-color="#ffaa2b"/>
</radialGradient>
<linearGradient id="body" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#fffdf7"/>
<stop offset="1" stop-color="#f6e7c9"/>
</linearGradient>
<linearGradient id="side" x1="0" y1="0" x2="1" y2="0">
<stop offset="0" stop-color="#e8cf9f" stop-opacity="0"/>
<stop offset="1" stop-color="#e8cf9f" stop-opacity="0.75"/>
</linearGradient>
<linearGradient id="paper" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#ffffff"/>
<stop offset="1" stop-color="#eceef3"/>
</linearGradient>
<filter id="soft" x="-20%" y="-60%" width="140%" height="220%"><feGaussianBlur stdDeviation="14"/></filter>
<clipPath id="tile"><rect id="tile-shape" width="1024" height="1024" rx="230"/></clipPath>
<clipPath id="above-slot"><rect width="1024" height="424"/></clipPath>
<clipPath id="box"><rect x="212" y="420" width="600" height="440" rx="132"/></clipPath>
<clipPath id="mouth"><path d="M454 676h116a58 58 0 0 1-116 0z"/></clipPath>
</defs>
<g clip-path="url(#tile)">
<rect width="1024" height="1024" fill="url(#sky)"/>
<!-- 放射光:競選看板的熱鬧感 -->
<path fill="#fff" opacity="0.2" d="M512 470L512 -630L778 -597ZM512 470L1062 -483L1276 -321ZM512 470L1465 -80L1569 167ZM512 470L1612 470L1579 736ZM512 470L1465 1020L1303 1234ZM512 470L1062 1423L815 1527ZM512 470L512 1570L246 1537ZM512 470L-38 1423L-252 1261ZM512 470L-441 1020L-545 773ZM512 470L-588 470L-555 204ZM512 470L-441 -80L-279 -294ZM512 470L-38 -483L209 -587Z"/>
<g id="art" transform="translate(512 519) scale(1.08) translate(-512 -519)">
<!-- 彩帶(首頁小鎮上空也在撒) -->
<rect x="166" y="290" width="48" height="22" rx="6" fill="#e8364a" transform="rotate(-32 190 301)"/>
<rect x="244" y="186" width="38" height="20" rx="6" fill="#3b82f6" transform="rotate(24 263 196)"/>
<circle cx="160" cy="420" r="14" fill="#22b07d"/>
<rect x="812" y="226" width="48" height="22" rx="6" fill="#22b07d" transform="rotate(36 836 237)"/>
<rect x="760" y="140" width="36" height="18" rx="6" fill="#e8364a" transform="rotate(-18 778 149)"/>
<rect x="862" y="372" width="38" height="20" rx="6" fill="#3b82f6" transform="rotate(-40 881 382)"/>
<!-- 地上的影子 -->
<ellipse cx="512" cy="884" rx="292" ry="30" fill="#b0650a" opacity="0.35" filter="url(#soft)"/>
<!-- 投票箱 -->
<rect x="212" y="420" width="600" height="440" rx="132" fill="url(#body)"/>
<g clip-path="url(#box)">
<rect x="660" y="420" width="152" height="440" fill="url(#side)"/>
<path d="M212 498H812" stroke="#2b2833" stroke-width="10" opacity="0.1"/>
</g>
<path d="M262 600V552A92 92 0 0 1 354 460" fill="none" stroke="#fff" stroke-width="26" stroke-linecap="round"/>
<rect x="212" y="420" width="600" height="440" rx="132" fill="none" stroke="#2b2833" stroke-width="28"/>
<rect x="360" y="402" width="304" height="44" rx="22" fill="#2b2833"/>
<!-- 選票:插進投票口,蓋了圈卜 -->
<g clip-path="url(#above-slot)">
<g transform="rotate(10 512 424)">
<rect x="402" y="180" width="220" height="290" rx="22" fill="url(#paper)" stroke="#2b2833" stroke-width="22"/>
<circle cx="512" cy="278" r="62" fill="none" stroke="#e23645" stroke-width="19"/>
<path d="M502 236v84M517 272l32 19" fill="none" stroke="#e23645" stroke-width="19" stroke-linecap="round"/>
<path d="M452 370h120M452 402h76" fill="none" stroke="#d3d7df" stroke-width="16" stroke-linecap="round"/>
</g>
</g>
<!-- 臉 -->
<ellipse cx="300" cy="696" rx="50" ry="29" fill="#ff8fa3" opacity="0.85"/>
<ellipse cx="724" cy="696" rx="50" ry="29" fill="#ff8fa3" opacity="0.85"/>
<circle cx="394" cy="618" r="52" fill="#2b2833"/>
<circle cx="630" cy="618" r="52" fill="#2b2833"/>
<circle cx="412" cy="599" r="19" fill="#fff"/>
<circle cx="648" cy="599" r="19" fill="#fff"/>
<circle cx="379" cy="638" r="8" fill="#fff"/>
<circle cx="615" cy="638" r="8" fill="#fff"/>
<path d="M454 676h116a58 58 0 0 1-116 0z" fill="#2b2833" stroke="#2b2833" stroke-width="10" stroke-linejoin="round"/>
<ellipse cx="512" cy="742" rx="38" ry="22" fill="#ff6b81" clip-path="url(#mouth)"/>
</g>
</g>
</svg>