1582 lines
66 KiB
TypeScript
1582 lines
66 KiB
TypeScript
import {
|
||
ChapterDef,
|
||
LevelDef,
|
||
MotifId,
|
||
Point2D,
|
||
SectionDef,
|
||
TargetColor,
|
||
YarnColor,
|
||
} from './Types';
|
||
|
||
export const HOOP_WIDTH = 600;
|
||
export const HOOP_HEIGHT = 616;
|
||
export const HOOP_CENTER: Point2D = { x: 300, y: 305 };
|
||
export const HOOP_RADIUS = 256;
|
||
export const RIM_LIMIT = HOOP_RADIUS + 2;
|
||
export const NEST: Point2D = { x: 292, y: 525 };
|
||
|
||
export const YARN_COLORS: TargetColor[] = [
|
||
'gold',
|
||
'green',
|
||
'rose',
|
||
'sky',
|
||
'coral',
|
||
'lavender',
|
||
'cream',
|
||
'cocoa',
|
||
];
|
||
|
||
export const FLOWER_SECTIONS: SectionDef[] = [
|
||
{ id: 'left', x: 219, y: 199, rx: 51, ry: 59, color: 'gold', petals: [8, 9, 10] },
|
||
{ id: 'right', x: 381, y: 199, rx: 51, ry: 59, color: 'gold', petals: [2, 3, 4] },
|
||
{ id: 'top', x: 300, y: 122, rx: 52, ry: 44, color: 'gold', petals: [11, 0, 1] },
|
||
{ id: 'leaf', x: 357, y: 315, rx: 45, ry: 32, color: 'green', side: 1 },
|
||
{ id: 'left-leaf', x: 257, y: 339, rx: 38, ry: 29, color: 'green', side: -1 },
|
||
];
|
||
|
||
export const LOTUS_SECTIONS: SectionDef[] = [
|
||
{ id: 'lotus-flower', x: 221, y: 218, rx: 47, ry: 43, color: 'rose', lotus: 'bloom' },
|
||
{ id: 'lotus-bud', x: 369, y: 195, rx: 35, ry: 48, color: 'rose', lotus: 'bud' },
|
||
{ id: 'lotus-pad-left', x: 206, y: 319, rx: 48, ry: 32, color: 'green', lotus: 'pad-left' },
|
||
{ id: 'lotus-pad-right', x: 377, y: 304, rx: 52, ry: 34, color: 'green', lotus: 'pad-right' },
|
||
];
|
||
|
||
export const SAKURA_SECTIONS: SectionDef[] = [
|
||
{ id: 'sakura-left', x: 188, y: 245, rx: 42, ry: 42, color: 'rose', sakura: 'left' },
|
||
{ id: 'sakura-top', x: 306, y: 158, rx: 44, ry: 44, color: 'rose', sakura: 'top' },
|
||
{ id: 'sakura-right', x: 424, y: 215, rx: 42, ry: 42, color: 'rose', sakura: 'right' },
|
||
{ id: 'sakura-bird', x: 298, y: 268, rx: 44, ry: 34, color: 'gold', sakura: 'bird' },
|
||
{ id: 'sakura-leaf', x: 382, y: 292, rx: 38, ry: 32, color: 'green', sakura: 'leaf' },
|
||
];
|
||
|
||
export const GARDEN_SECTIONS: SectionDef[] = [
|
||
{ id: 'g-gold-tl', x: 176, y: 174, rx: 36, ry: 36, color: 'gold', garden: 'gold-floret' },
|
||
{ id: 'g-gold-tr', x: 424, y: 174, rx: 36, ry: 36, color: 'gold', garden: 'gold-floret' },
|
||
{ id: 'g-gold-ml', x: 224, y: 246, rx: 34, ry: 34, color: 'gold', garden: 'gold-floret' },
|
||
{ id: 'g-gold-mr', x: 376, y: 246, rx: 34, ry: 34, color: 'gold', garden: 'gold-floret' },
|
||
{ id: 'g-rose-top', x: 300, y: 124, rx: 38, ry: 38, color: 'rose', garden: 'rose-peony' },
|
||
{ id: 'g-rose-mid', x: 300, y: 214, rx: 36, ry: 36, color: 'rose', garden: 'rose-peony' },
|
||
{ id: 'g-leaf-l', x: 164, y: 298, rx: 38, ry: 30, color: 'green', garden: 'leaf-l' },
|
||
{ id: 'g-leaf-r', x: 436, y: 298, rx: 38, ry: 30, color: 'green', garden: 'leaf-r' },
|
||
];
|
||
|
||
export const MOTIFS: Record<MotifId, SectionDef[]> = {
|
||
sunflower: FLOWER_SECTIONS,
|
||
lotus: LOTUS_SECTIONS,
|
||
sakura: SAKURA_SECTIONS,
|
||
garden: GARDEN_SECTIONS,
|
||
custom: [],
|
||
};
|
||
|
||
export const CHAPTERS: ChapterDef[] = [
|
||
{
|
||
id: 'ch1-flowers',
|
||
index: 0,
|
||
name: '第一章 · 繁花集',
|
||
subtitle: '花卉手绣 · 串球 · 不交叉 · 机关锁 · 浮桥 · 堵球',
|
||
motif: 'sunflower',
|
||
startIndex: 0,
|
||
count: 10,
|
||
},
|
||
{
|
||
id: 'ch2-birds',
|
||
index: 1,
|
||
name: '第二章 · 灵禽志',
|
||
subtitle: '飞鸟手绣 · 水洼迷宫 · 线轴 · 单向针门 · 双蚁巢',
|
||
motif: 'lotus',
|
||
startIndex: 10,
|
||
count: 10,
|
||
},
|
||
{
|
||
id: 'ch3-pets',
|
||
index: 2,
|
||
name: '第三章 · 萌宠记',
|
||
subtitle: '治愈萌宠 · 染缸变色 · 孤缸同染 · 覆染 · 多巢拓扑',
|
||
motif: 'sakura',
|
||
startIndex: 20,
|
||
count: 10,
|
||
},
|
||
{
|
||
id: 'ch4-landscape',
|
||
index: 3,
|
||
name: '第四章 · 诗意山水',
|
||
subtitle: '山水风光 · 4→8 球递增 · 双桥续线 · 全机制耦合',
|
||
motif: 'garden',
|
||
startIndex: 30,
|
||
count: 10,
|
||
},
|
||
{
|
||
id: 'ch5-architecture',
|
||
index: 4,
|
||
name: '第五章 · 雅致筑影',
|
||
subtitle: '浪漫建筑 · 双巢迷城 · 连锁机关 · 高阶拓扑解谜',
|
||
motif: 'garden',
|
||
startIndex: 40,
|
||
count: 10,
|
||
},
|
||
{
|
||
id: 'ch6-sweets',
|
||
index: 5,
|
||
name: '第六章 · 拾光甜物',
|
||
subtitle: '甜品器物 · 终极 8 球满载 · 宗师级收官挑战',
|
||
motif: 'garden',
|
||
startIndex: 50,
|
||
count: 10,
|
||
},
|
||
];
|
||
|
||
export const CHAPTER_UNLOCK_STARS = [0, 12, 26, 44, 64, 86];
|
||
|
||
interface RawLayout {
|
||
id: string;
|
||
recordId?: string;
|
||
chapter: number;
|
||
name: string;
|
||
difficulty: string;
|
||
lesson: string;
|
||
goal: string;
|
||
ruleTag: string;
|
||
motif?: MotifId;
|
||
artworkImage?: string;
|
||
budget?: number;
|
||
maxDispatches?: number;
|
||
noCross?: boolean;
|
||
solidBalls?: boolean;
|
||
locks?: Record<string, string>;
|
||
nests?: [number, number][];
|
||
sections?: string[];
|
||
customTargets?: [string, number, number, number, number, TargetColor][];
|
||
balls: [number, number, YarnColor][];
|
||
ponds?: [number, number, number, number, string?][];
|
||
spools?: [number, number, number][];
|
||
buttons?: [number, number][];
|
||
dyes?: [number, number, TargetColor, number?, boolean?][];
|
||
gates?: [number, number, number][];
|
||
roughZones?: [number, number, number, number, number?][];
|
||
stars: [number, number];
|
||
demo: ([number, number][] | { nest: number; pts: [number, number][] })[];
|
||
}
|
||
|
||
const PI = Math.PI;
|
||
|
||
const RAW_LAYOUTS: RawLayout[] = [
|
||
// =========================================================
|
||
// 第一章 · 繁花集(1–10 关):#1 为高精手绣向日葵样板
|
||
// =========================================================
|
||
{
|
||
id: 'first-stitch', chapter: 0, name: '金色向日葵', difficulty: '入门',
|
||
motif: 'custom', artworkImage: 'art_ch1_sunflower',
|
||
lesson: '从蚁巢拖过金黄毛线球,送进向日葵花心针位即可显影成画!用线越短星越多。',
|
||
goal: '用线越短星越多:拖过黄球送进向日葵针位。',
|
||
ruleTag: '手绣样板',
|
||
customTargets: [['sf-bloom', 300, 198, 66, 66, 'gold']],
|
||
balls: [[292, 392, 'gold']],
|
||
stars: [900, 1100],
|
||
demo: [[[292, 392], [300, 198]]],
|
||
},
|
||
{
|
||
id: 'double-yarn', chapter: 0, name: '双瓣向阳', difficulty: '基础',
|
||
lesson: '一笔串起两颗同色球最省线!用线越短星越多,试试一笔拿三星。',
|
||
goal: '把两颗黄球送进左右花瓣(1 笔串双球更省线)。',
|
||
ruleTag: '串双球',
|
||
recordId: 'double-yarn-stops-v2',
|
||
maxDispatches: 2,
|
||
budget: 900,
|
||
sections: ['left', 'right'],
|
||
balls: [[164, 412, 'gold'], [208, 326, 'gold']],
|
||
stars: [620, 690],
|
||
demo: [[[164, 412], [208, 326], [219, 199], [381, 199]]],
|
||
},
|
||
{
|
||
id: 'cross-dual-intro', chapter: 0, name: '金蕊交错', difficulty: '基础',
|
||
lesson: '【新机制】本关毛线不可交叉!黄球在右、绿球在左,绕开彼此轨迹。',
|
||
goal: '不交叉铺线,送达左花瓣与右绿叶。',
|
||
ruleTag: '不交叉初见',
|
||
noCross: true,
|
||
budget: 1490,
|
||
sections: ['left', 'leaf'],
|
||
balls: [[418, 434, 'gold'], [172, 434, 'green']],
|
||
stars: [1110, 1200],
|
||
demo: [
|
||
[[418, 434], [446, 260], [326, 134], [219, 199]],
|
||
[[172, 434], [250, 350], [357, 315]],
|
||
],
|
||
},
|
||
{
|
||
id: 'narrow-canal-budget', chapter: 0, name: '溪畔金葵', difficulty: '普通',
|
||
lesson: '双水洼夹出窄道,一笔串起两颗黄球穿渠而过可冲三星。',
|
||
goal: '绕开双水洼,补齐左右花瓣与右绿叶。',
|
||
ruleTag: '绕水省线',
|
||
maxDispatches: 3,
|
||
budget: 1360,
|
||
sections: ['left', 'right', 'leaf'],
|
||
balls: [[154, 404, 'gold'], [286, 366, 'gold'], [392, 476, 'green']],
|
||
ponds: [[224, 444, 46, 28], [362, 408, 44, 26]],
|
||
stars: [1100, 1190],
|
||
demo: [
|
||
[[294, 456], [286, 366], [154, 404], [219, 199], [381, 199]],
|
||
[[392, 476], [446, 392], [357, 315]],
|
||
],
|
||
},
|
||
{
|
||
id: 'lock-intro', chapter: 0, name: '葵叶花锁', difficulty: '普通',
|
||
lesson: '【新机制】带铜锁的针位需先绣完虚线相连的前置针位才会解锁!',
|
||
goal: '先绣右叶解锁顶花,再解锁左花瓣。',
|
||
ruleTag: '机关锁单练',
|
||
budget: 1700,
|
||
locks: { top: 'leaf', left: 'top' },
|
||
sections: ['left', 'top', 'leaf'],
|
||
balls: [[164, 412, 'gold'], [438, 412, 'gold'], [342, 452, 'green']],
|
||
ponds: [[274, 408, 52, 26]],
|
||
stars: [1310, 1420],
|
||
demo: [
|
||
[[342, 452], [357, 315]],
|
||
[[404, 478], [438, 412], [448, 224], [300, 122]],
|
||
[[164, 412], [164, 286], [219, 199]],
|
||
],
|
||
},
|
||
{
|
||
id: 'bridge-intro', chapter: 0, name: '晨露叶桥', difficulty: '进阶',
|
||
lesson: '【新机制】水洼封住中路!先绣左叶搭起绣桥,黄球就能直穿捷径。',
|
||
goal: '先绣左叶搭桥,再把双黄球送进左右花瓣。',
|
||
ruleTag: '浮桥单练',
|
||
budget: 1490,
|
||
maxDispatches: 3,
|
||
sections: ['left', 'right', 'left-leaf'],
|
||
balls: [[148, 424, 'gold'], [438, 384, 'gold'], [216, 468, 'green']],
|
||
ponds: [[296, 386, 80, 30, 'left-leaf']],
|
||
stars: [1180, 1280],
|
||
demo: [
|
||
[[216, 468], [180, 386], [257, 339]],
|
||
[[148, 424], [296, 386], [438, 384], [381, 199], [219, 199]],
|
||
],
|
||
},
|
||
{
|
||
id: 'rough-cloth-tight', chapter: 0, name: '暖阳麻布', difficulty: '休闲',
|
||
lesson: '【新机制 · 喘息关】粗麻布耗线 ×2.0,贴边绕开即可轻松省线!',
|
||
goal: '绕开中央粗布区,补齐双花瓣与双绿叶。',
|
||
ruleTag: '粗布 ×2.0',
|
||
budget: 1500,
|
||
sections: ['left', 'top', 'leaf', 'left-leaf'],
|
||
balls: [[156, 434, 'gold'], [152, 318, 'gold'], [438, 434, 'green'], [446, 344, 'green']],
|
||
roughZones: [[296, 392, 92, 58, 2.0]],
|
||
stars: [1090, 1180],
|
||
demo: [
|
||
[[156, 434], [152, 318], [219, 199], [300, 122]],
|
||
[[438, 434], [446, 344], [357, 315], [257, 339]],
|
||
],
|
||
},
|
||
{
|
||
id: 'solid-balls-intro', chapter: 0, name: '牡丹清径', difficulty: '进阶',
|
||
lesson: '【新机制】虚线环毛线球会物理挡路!先搬走挡在通道口的绿球清道。',
|
||
goal: '先清绿球通道,再送达两颗黄球。',
|
||
ruleTag: '实体堵球',
|
||
solidBalls: true,
|
||
maxDispatches: 3,
|
||
budget: 1170,
|
||
sections: ['left', 'right', 'leaf', 'left-leaf'],
|
||
balls: [[154, 412, 'gold'], [154, 326, 'gold'], [238, 474, 'green'], [216, 404, 'green']],
|
||
ponds: [[346, 424, 62, 28]],
|
||
stars: [970, 1050],
|
||
demo: [
|
||
[[238, 474], [216, 404], [257, 339], [357, 315]],
|
||
[[192, 488], [154, 412], [154, 326], [219, 199], [381, 199]],
|
||
],
|
||
},
|
||
{
|
||
id: 'twin-buttons-tight', chapter: 0, name: '绣球双扣', difficulty: '挑战',
|
||
lesson: '【新机制】路线必须穿过左右两颗纽扣,且不交叉、合理控制用线!',
|
||
goal: '不交叉穿过双扣,补齐双花瓣与双绿叶。',
|
||
ruleTag: '纽扣 + 不交',
|
||
maxDispatches: 3,
|
||
noCross: true,
|
||
budget: 1370,
|
||
sections: ['left', 'right', 'leaf', 'left-leaf'],
|
||
balls: [[154, 434, 'gold'], [152, 346, 'gold'], [436, 434, 'green'], [442, 356, 'green']],
|
||
ponds: [[292, 424, 62, 28], [298, 272, 42, 22]],
|
||
buttons: [[152, 246], [442, 276]],
|
||
stars: [1220, 1320],
|
||
demo: [
|
||
[[154, 434], [152, 346], [152, 246], [219, 199], [300, 154], [381, 199]],
|
||
[[436, 434], [442, 356], [442, 276], [357, 315], [257, 339]],
|
||
],
|
||
},
|
||
{
|
||
id: 'sunflower-boss', chapter: 0, name: '铃兰繁花', difficulty: 'Boss',
|
||
lesson: '第一章终考:先绣左叶搭桥、右叶解锁顶花,3 笔不交叉极限满绣五区!',
|
||
goal: '限 3 笔不交叉 + 紧预算,绣满繁花全部五处针位。',
|
||
ruleTag: '章末 Boss',
|
||
noCross: true,
|
||
maxDispatches: 3,
|
||
budget: 1520,
|
||
locks: { top: 'leaf' },
|
||
sections: ['left', 'top', 'right', 'leaf', 'left-leaf'],
|
||
balls: [
|
||
[152, 412, 'gold'], [446, 412, 'gold'], [456, 332, 'gold'],
|
||
[288, 466, 'green'], [292, 404, 'green'],
|
||
],
|
||
ponds: [[212, 398, 42, 22], [386, 392, 48, 24, 'left-leaf']],
|
||
buttons: [[456, 260]],
|
||
stars: [1420, 1520],
|
||
demo: [
|
||
[[288, 466], [292, 404], [257, 339], [357, 315]],
|
||
[[178, 488], [152, 412], [152, 286], [219, 199]],
|
||
[[386, 464], [446, 412], [386, 392], [456, 332], [456, 260], [381, 199], [300, 122]],
|
||
],
|
||
},
|
||
|
||
// =========================================================
|
||
// 第二章 · 灵禽志(11–20 关):#11 为高精手绣蓝翠鸟样板(青瓷蓝+樱粉)
|
||
// =========================================================
|
||
{
|
||
id: 'bird-kingfisher', chapter: 1, name: '枝头蓝翠鸟', difficulty: '基础',
|
||
motif: 'custom', artworkImage: 'art_ch2_kingfisher',
|
||
lesson: '第二章开启!全新青瓷蓝绣线登场,绕水绣出蓝翠鸟与枝头樱花。',
|
||
goal: '用青瓷蓝与樱粉毛线,绣出枝头蓝翠鸟与双樱。',
|
||
ruleTag: '手绣样板',
|
||
budget: 1570,
|
||
customTargets: [
|
||
['kf-wing', 316, 206, 56, 52, 'sky'],
|
||
['kf-blossom-l', 216, 280, 44, 42, 'rose'],
|
||
['kf-blossom-r', 398, 196, 40, 38, 'rose'],
|
||
],
|
||
balls: [[172, 416, 'rose'], [434, 416, 'rose'], [342, 462, 'sky']],
|
||
ponds: [[274, 404, 58, 26]],
|
||
stars: [1170, 1270],
|
||
demo: [
|
||
[[342, 462], [364, 360], [316, 206]],
|
||
[[172, 416], [216, 280]],
|
||
[[434, 416], [444, 280], [398, 196]],
|
||
],
|
||
},
|
||
{
|
||
id: 'lotus-bridge-order', chapter: 1, name: '春燕浮桥', difficulty: '普通', motif: 'lotus',
|
||
lesson: '中央巨塘挡道!先绣左叶搭成浮桥,粉球便能直穿捷径。',
|
||
goal: '先搭浮桥再绣双花,补齐四处针位。',
|
||
ruleTag: '浮桥复现',
|
||
maxDispatches: 3,
|
||
budget: 1490,
|
||
sections: ['lotus-flower', 'lotus-bud', 'lotus-pad-left', 'lotus-pad-right'],
|
||
balls: [[298, 460, 'rose'], [374, 456, 'rose'], [154, 412, 'green'], [148, 344, 'green']],
|
||
ponds: [[298, 386, 86, 30, 'lotus-pad-left']],
|
||
stars: [1180, 1280],
|
||
demo: [
|
||
[[178, 472], [154, 412], [148, 344], [206, 319], [377, 304]],
|
||
[[298, 460], [374, 456], [298, 386], [221, 218], [369, 195]],
|
||
],
|
||
},
|
||
{
|
||
id: 'lotus-tight-spool', chapter: 1, name: '火烈鸟轴', difficulty: '普通', motif: 'lotus',
|
||
lesson: '【新机制】初始毛线不足,顺路吃掉左右线轴补充线量即可满绣!',
|
||
goal: '捡取线轴续线,绣满四处针位。',
|
||
ruleTag: '线轴单练',
|
||
budget: 980,
|
||
maxDispatches: 3,
|
||
sections: ['lotus-flower', 'lotus-bud', 'lotus-pad-left', 'lotus-pad-right'],
|
||
balls: [[154, 430, 'rose'], [148, 356, 'rose'], [438, 430, 'green'], [446, 356, 'green']],
|
||
ponds: [[294, 418, 60, 28]],
|
||
spools: [[150, 272, 280], [446, 278, 280]],
|
||
stars: [1250, 1350],
|
||
demo: [
|
||
[[154, 430], [148, 356], [150, 272], [221, 218], [369, 195]],
|
||
[[438, 430], [446, 356], [446, 278], [377, 304], [206, 319]],
|
||
],
|
||
},
|
||
{
|
||
id: 'lotus-gate-nocross', chapter: 1, name: '白鸽穿门', difficulty: '进阶', motif: 'lotus',
|
||
lesson: '【新机制】必须顺着穿针眼箭头方向穿过,逆行会被挡回!',
|
||
goal: '顺箭头穿过穿针眼,补齐四处针位。',
|
||
ruleTag: '针门单练',
|
||
maxDispatches: 3,
|
||
budget: 1340,
|
||
sections: ['lotus-flower', 'lotus-bud', 'lotus-pad-left', 'lotus-pad-right'],
|
||
balls: [[158, 426, 'rose'], [218, 470, 'rose'], [436, 426, 'green'], [378, 470, 'green']],
|
||
ponds: [[294, 414, 58, 28]],
|
||
gates: [[294, 206, 0]],
|
||
stars: [1090, 1180],
|
||
demo: [
|
||
[[218, 470], [158, 426], [221, 218], [294, 206], [369, 195]],
|
||
[[378, 470], [436, 426], [377, 304], [206, 319]],
|
||
],
|
||
},
|
||
{
|
||
id: 'lotus-chain-lock', chapter: 1, name: '锦羽连锁', difficulty: '进阶', motif: 'lotus',
|
||
lesson: '右叶→左花→右苞连环解锁,同时保持路线不交叉!',
|
||
goal: '按解锁顺序不交叉补齐四区。',
|
||
ruleTag: '连环锁 + 不交',
|
||
noCross: true,
|
||
maxDispatches: 3,
|
||
budget: 1280,
|
||
locks: { 'lotus-flower': 'lotus-pad-right', 'lotus-bud': 'lotus-flower' },
|
||
sections: ['lotus-flower', 'lotus-bud', 'lotus-pad-left', 'lotus-pad-right'],
|
||
balls: [[156, 426, 'rose'], [214, 472, 'rose'], [438, 426, 'green'], [378, 472, 'green']],
|
||
ponds: [[294, 416, 58, 28]],
|
||
stars: [1090, 1180],
|
||
demo: [
|
||
[[378, 472], [438, 426], [377, 304], [206, 319]],
|
||
[[214, 472], [156, 426], [221, 218], [369, 195]],
|
||
],
|
||
},
|
||
{
|
||
id: 'lotus-burlap-maze', chapter: 1, name: '知更浅滩', difficulty: '挑战', motif: 'lotus',
|
||
lesson: '大片粗布耗线 ×2.0 挡在中路!贴边吃双线轴绕开粗布才够线。',
|
||
goal: '避开粗布并吃双线轴,完成四区。',
|
||
ruleTag: '粗布 + 双轴',
|
||
maxDispatches: 3,
|
||
budget: 680,
|
||
sections: ['lotus-flower', 'lotus-bud', 'lotus-pad-left', 'lotus-pad-right'],
|
||
balls: [[148, 414, 'rose'], [148, 336, 'rose'], [446, 414, 'green'], [446, 336, 'green']],
|
||
roughZones: [[296, 396, 94, 52, 2.0]],
|
||
spools: [[164, 478, 320], [428, 478, 320]],
|
||
stars: [1180, 1280],
|
||
demo: [
|
||
[[164, 478], [148, 414], [148, 336], [221, 218], [369, 195]],
|
||
[[428, 478], [446, 414], [446, 336], [377, 304], [206, 319]],
|
||
],
|
||
},
|
||
{
|
||
id: 'lotus-twin-nest-breather', chapter: 1, name: '双巢金雀', difficulty: '休闲', motif: 'lotus',
|
||
lesson: '【新机制 · 喘息关】绣布上有两个蚁巢!就近选择左右蚁巢出线即可。',
|
||
goal: '巧用双蚁巢绕过双水洼,轻松绣满四区。',
|
||
ruleTag: '双蚁巢单练',
|
||
budget: 1250,
|
||
nests: [[176, 492], [418, 492]],
|
||
sections: ['lotus-flower', 'lotus-bud', 'lotus-pad-left', 'lotus-pad-right'],
|
||
balls: [[442, 404, 'rose'], [452, 332, 'rose'], [152, 404, 'green'], [146, 332, 'green']],
|
||
ponds: [[296, 414, 56, 26], [296, 272, 42, 20]],
|
||
stars: [990, 1070],
|
||
demo: [
|
||
{ nest: 1, pts: [[442, 404], [452, 332], [448, 250], [369, 195], [221, 218]] },
|
||
{ nest: 0, pts: [[152, 404], [146, 332], [206, 319], [296, 342], [377, 304]] },
|
||
],
|
||
},
|
||
{
|
||
id: 'twin-gates-hard', chapter: 1, name: '夜枭双门', difficulty: '挑战', motif: 'lotus',
|
||
lesson: '反向双针门!粉球在右需从顶外绕背向左穿门,绿球在左向右穿门,互不交叉!',
|
||
goal: '限 2 笔不交叉顺箭绕背穿双门,完成四区。',
|
||
ruleTag: '反向绕背门',
|
||
noCross: true,
|
||
maxDispatches: 2,
|
||
budget: 1370,
|
||
sections: ['lotus-flower', 'lotus-bud', 'lotus-pad-left', 'lotus-pad-right'],
|
||
balls: [[442, 444, 'rose'], [456, 364, 'rose'], [154, 444, 'green'], [142, 364, 'green']],
|
||
ponds: [[294, 412, 58, 26]],
|
||
gates: [[294, 152, PI], [294, 344, 0]],
|
||
stars: [1260, 1370],
|
||
demo: [
|
||
[[442, 444], [456, 364], [462, 224], [369, 195], [294, 152], [221, 218]],
|
||
[[154, 444], [142, 364], [206, 319], [294, 344], [377, 304]],
|
||
],
|
||
},
|
||
{
|
||
id: 'lotus-solid-lock-bridge', chapter: 1, name: '彩蝶锁桥', difficulty: '烧脑', motif: 'lotus',
|
||
lesson: '实体堵球 + 浮桥 + 花苞锁,先搬绿球清道搭桥再解锁!',
|
||
goal: '先清堵球搭桥解锁,不交叉完成四区。',
|
||
ruleTag: '堵球 + 锁桥',
|
||
solidBalls: true,
|
||
noCross: true,
|
||
maxDispatches: 3,
|
||
budget: 1140,
|
||
locks: { 'lotus-bud': 'lotus-pad-right' },
|
||
sections: ['lotus-flower', 'lotus-bud', 'lotus-pad-left', 'lotus-pad-right'],
|
||
balls: [[160, 404, 'rose'], [152, 326, 'rose'], [292, 456, 'green'], [292, 392, 'green']],
|
||
ponds: [[220, 444, 36, 24], [372, 416, 44, 24, 'lotus-pad-left']],
|
||
stars: [1060, 1140],
|
||
demo: [
|
||
[[292, 456], [292, 392], [206, 319], [377, 304]],
|
||
[[292, 464], [292, 418], [160, 404], [152, 326], [221, 218], [369, 195]],
|
||
],
|
||
},
|
||
{
|
||
id: 'lotus-boss', chapter: 1, name: '百鸟朝凤', difficulty: 'Boss', motif: 'lotus',
|
||
lesson: '第二章终考:双巢不交、先绣右叶搭桥解锁花苞、顺穿双门吃轴满绣!',
|
||
goal: '限 2 笔 + 双巢不交叉,搭桥解锁穿门满绣。',
|
||
ruleTag: '章末 Boss',
|
||
noCross: true,
|
||
budget: 520,
|
||
maxDispatches: 2,
|
||
locks: { 'lotus-bud': 'lotus-pad-right' },
|
||
nests: [[168, 490], [432, 490]],
|
||
sections: ['lotus-flower', 'lotus-bud', 'lotus-pad-left', 'lotus-pad-right'],
|
||
balls: [[138, 412, 'rose'], [134, 324, 'rose'], [458, 406, 'green'], [460, 328, 'green']],
|
||
ponds: [[296, 412, 54, 26], [198, 272, 38, 20, 'lotus-pad-left']],
|
||
spools: [[148, 224, 280], [294, 338, 260]],
|
||
buttons: [[294, 338]],
|
||
gates: [[294, 202, 0]],
|
||
stars: [1020, 1060],
|
||
demo: [
|
||
{ nest: 1, pts: [[458, 406], [460, 328], [377, 304], [294, 338], [206, 319]] },
|
||
{ nest: 0, pts: [[138, 412], [134, 324], [198, 272], [148, 224], [221, 218], [294, 202], [369, 195]] },
|
||
],
|
||
},
|
||
|
||
// =========================================================
|
||
// 第三章 · 萌宠记(21–30 关):#21 为高精手绣团子橘猫样板(珊瑚橘+松绿)
|
||
// =========================================================
|
||
{
|
||
id: 'pet-orange-cat', chapter: 2, name: '团子橘猫', difficulty: '基础',
|
||
motif: 'custom', artworkImage: 'art_ch3_orange_cat',
|
||
lesson: '第三章开启!全新珊瑚橘绣线登场,双巢不交叉绣出微笑的团子橘猫!',
|
||
goal: '双巢不交叉,用珊瑚橘与松绿毛线绣出团子橘猫与雏菊草丛。',
|
||
ruleTag: '手绣样板',
|
||
noCross: true,
|
||
budget: 930,
|
||
nests: [[176, 492], [418, 492]],
|
||
customTargets: [
|
||
['cat-head', 252, 196, 52, 48, 'coral'],
|
||
['cat-body', 344, 232, 56, 52, 'coral'],
|
||
['cat-grass', 194, 272, 44, 36, 'green'],
|
||
],
|
||
balls: [[386, 408, 'coral'], [438, 332, 'coral'], [158, 392, 'green']],
|
||
ponds: [[278, 396, 52, 24]],
|
||
stars: [710, 780],
|
||
demo: [
|
||
{ nest: 0, pts: [[158, 392], [194, 272]] },
|
||
{ nest: 1, pts: [[386, 408], [438, 332], [344, 232], [252, 196]] },
|
||
],
|
||
},
|
||
{
|
||
id: 'sakura-dye-intro', chapter: 2, name: '垂耳小兔', difficulty: '普通', motif: 'sakura',
|
||
lesson: '【新机制】白色毛线球需先经过染缸染色,才能送进同色针位!',
|
||
goal: '把两颗白球分别染粉、染金,补齐三处针位。',
|
||
ruleTag: '染缸单练',
|
||
budget: 1320,
|
||
sections: ['sakura-left', 'sakura-bird', 'sakura-leaf'],
|
||
balls: [[176, 446, 'white'], [312, 452, 'white'], [430, 434, 'green']],
|
||
dyes: [[154, 344, 'rose'], [358, 352, 'gold']],
|
||
ponds: [[254, 398, 48, 26]],
|
||
stars: [1070, 1160],
|
||
demo: [
|
||
[[176, 446], [154, 344], [188, 245]],
|
||
[[312, 452], [358, 352], [298, 268]],
|
||
[[430, 434], [438, 336], [382, 292]],
|
||
],
|
||
},
|
||
{
|
||
id: 'sakura-single-use-dye', chapter: 2, name: '笑脸柴犬', difficulty: '进阶', motif: 'sakura',
|
||
lesson: '粉染缸只剩 1 次染料(染×1)!必须一笔串起两颗白球一起入缸同染!',
|
||
goal: '双白球同入孤缸染粉,并补齐绿叶。',
|
||
ruleTag: '染×1 孤缸',
|
||
noCross: true,
|
||
maxDispatches: 2,
|
||
budget: 1110,
|
||
sections: ['sakura-left', 'sakura-top', 'sakura-leaf'],
|
||
balls: [[172, 444, 'white'], [232, 396, 'white'], [424, 424, 'green']],
|
||
dyes: [[154, 322, 'rose', 1]],
|
||
ponds: [[322, 412, 54, 26]],
|
||
stars: [930, 1010],
|
||
demo: [
|
||
[[172, 444], [232, 396], [154, 322], [188, 245], [306, 158]],
|
||
[[424, 424], [382, 292]],
|
||
],
|
||
},
|
||
{
|
||
id: 'sakura-override-dye', chapter: 2, name: '红耳小狐', difficulty: '烧脑', motif: 'sakura',
|
||
lesson: '【高阶顿悟 · 半途换色】3 种颜色却限 2 只蚂蚁!串两白球染粉送 1 针,剩 1 球钻金「覆染」缸变金!',
|
||
goal: '限 2 笔不交叉:一蚁半途覆染绣粉樱+金雀,另一蚁补绿叶!',
|
||
ruleTag: '一蚁双色',
|
||
noCross: true,
|
||
maxDispatches: 2,
|
||
budget: 1080,
|
||
sections: ['sakura-left', 'sakura-bird', 'sakura-leaf'],
|
||
balls: [[162, 436, 'white'], [214, 396, 'white'], [424, 426, 'green']],
|
||
dyes: [[148, 326, 'rose', 1], [244, 192, 'gold', 1, true]],
|
||
ponds: [[322, 404, 52, 24]],
|
||
stars: [930, 1010],
|
||
demo: [
|
||
[[162, 436], [214, 396], [148, 326], [188, 245], [244, 192], [298, 268]],
|
||
[[424, 426], [382, 292]],
|
||
],
|
||
},
|
||
{
|
||
id: 'sakura-chain-locks', chapter: 2, name: '抱竹熊猫', difficulty: '挑战', motif: 'sakura',
|
||
lesson: '春叶解锁中区、中区解锁顶花、左花解锁右花,三把锁 + 不交叉!',
|
||
goal: '按解锁顺序,不交叉绣满全部五处针位。',
|
||
ruleTag: '三重连锁',
|
||
noCross: true,
|
||
maxDispatches: 5,
|
||
budget: 1760,
|
||
locks: {
|
||
'sakura-bird': 'sakura-leaf',
|
||
'sakura-top': 'sakura-bird',
|
||
'sakura-right': 'sakura-left',
|
||
},
|
||
sections: ['sakura-left', 'sakura-top', 'sakura-right', 'sakura-bird', 'sakura-leaf'],
|
||
balls: [
|
||
[152, 412, 'rose'], [152, 336, 'rose'], [462, 388, 'rose'],
|
||
[300, 444, 'gold'], [386, 454, 'green'],
|
||
],
|
||
ponds: [[224, 414, 42, 24], [360, 396, 40, 22]],
|
||
stars: [1570, 1700],
|
||
demo: [
|
||
[[386, 454], [412, 356], [382, 292]],
|
||
[[300, 444], [298, 268]],
|
||
[[152, 412], [152, 336], [188, 245], [306, 158]],
|
||
[[428, 476], [462, 388], [468, 286], [424, 215]],
|
||
],
|
||
},
|
||
{
|
||
id: 'twin-nest-burlap-maze', chapter: 2, name: '梅花小鹿', difficulty: '挑战', motif: 'sakura',
|
||
lesson: '双蚁巢 + 粗布 ×2.0 + 水渠 + 不交叉,贴边分道省出极限线量!',
|
||
goal: '双巢不交叉绕开粗布,完成四处针位。',
|
||
ruleTag: '双巢 + 粗布',
|
||
noCross: true,
|
||
maxDispatches: 4,
|
||
budget: 1480,
|
||
nests: [[176, 492], [418, 492]],
|
||
sections: ['sakura-left', 'sakura-top', 'sakura-bird', 'sakura-leaf'],
|
||
balls: [[448, 404, 'rose'], [456, 326, 'rose'], [154, 412, 'gold'], [216, 434, 'green']],
|
||
ponds: [[296, 422, 54, 26]],
|
||
roughZones: [[304, 336, 56, 26, 2.0]],
|
||
stars: [1350, 1460],
|
||
demo: [
|
||
{ nest: 1, pts: [[448, 404], [456, 326], [444, 186], [306, 158], [188, 245]] },
|
||
{ nest: 0, pts: [[154, 412], [144, 326], [220, 294], [298, 268]] },
|
||
{ nest: 0, pts: [[216, 434], [286, 378], [382, 366], [382, 292]] },
|
||
],
|
||
},
|
||
{
|
||
id: 'sakura-solid-breather', chapter: 2, name: '毛绒柯基', difficulty: '休闲', motif: 'sakura',
|
||
lesson: '【喘息关】先搬走堵在正中的金球清道,再双白同染,预算充裕!',
|
||
goal: '按顺序清道并双白同染,补齐四处针位。',
|
||
ruleTag: '堵球 + 孤缸',
|
||
solidBalls: true,
|
||
budget: 1490,
|
||
sections: ['sakura-left', 'sakura-top', 'sakura-bird', 'sakura-leaf'],
|
||
balls: [[160, 412, 'white'], [216, 376, 'white'], [292, 462, 'gold'], [388, 454, 'green']],
|
||
dyes: [[152, 310, 'rose', 1]],
|
||
ponds: [[218, 448, 32, 20], [358, 376, 40, 20]],
|
||
stars: [1240, 1340],
|
||
demo: [
|
||
[[292, 462], [298, 268]],
|
||
[[388, 454], [426, 378], [382, 292]],
|
||
[[272, 480], [266, 414], [216, 376], [160, 412], [152, 310], [188, 245], [306, 158]],
|
||
],
|
||
},
|
||
{
|
||
id: 'tri-nest-spring-hard', chapter: 2, name: '蓝眼布偶', difficulty: '烧脑', motif: 'sakura',
|
||
lesson: '三蚁巢环绕 + 不交叉 + 纽扣 + 机关锁,精准分工每一只蚂蚁!',
|
||
goal: '不交叉穿扣解锁,绣满五处针位。',
|
||
ruleTag: '三巢锁扣',
|
||
noCross: true,
|
||
budget: 1420,
|
||
locks: { 'sakura-right': 'sakura-bird' },
|
||
nests: [[172, 490], [422, 490], [156, 146]],
|
||
sections: ['sakura-left', 'sakura-top', 'sakura-right', 'sakura-bird', 'sakura-leaf'],
|
||
balls: [
|
||
[226, 128, 'rose'], [454, 344, 'rose'], [152, 376, 'rose'],
|
||
[334, 430, 'gold'], [394, 392, 'green'],
|
||
],
|
||
ponds: [[262, 380, 48, 28]],
|
||
buttons: [[376, 134]],
|
||
stars: [1300, 1410],
|
||
demo: [
|
||
{ nest: 2, pts: [[226, 128], [306, 158], [376, 134]] },
|
||
{ nest: 0, pts: [[152, 376], [188, 245]] },
|
||
{ nest: 1, pts: [[334, 430], [326, 336], [298, 268]] },
|
||
{ nest: 1, pts: [[394, 392], [382, 292]] },
|
||
{ nest: 1, pts: [[454, 344], [424, 215]] },
|
||
],
|
||
},
|
||
{
|
||
id: 'gate-dye-budget-hard', chapter: 2, name: '果园刺猬', difficulty: '烧脑', motif: 'sakura',
|
||
lesson: '双巢不交 + 双孤缸 + 单向针门 + 线轴续命,环环相扣!',
|
||
goal: '限线内不交叉、顺穿针门、染色绣满五处针位。',
|
||
ruleTag: '五重烧脑',
|
||
noCross: true,
|
||
budget: 1020,
|
||
maxDispatches: 5,
|
||
nests: [[178, 494], [416, 494]],
|
||
sections: ['sakura-left', 'sakura-top', 'sakura-right', 'sakura-bird', 'sakura-leaf'],
|
||
balls: [
|
||
[152, 412, 'white'], [152, 344, 'white'], [458, 396, 'white'],
|
||
[318, 438, 'gold'], [392, 390, 'green'],
|
||
],
|
||
dyes: [[154, 288, 'rose', 1], [458, 314, 'rose', 1]],
|
||
gates: [[234, 180, -0.35]],
|
||
spools: [[446, 456, 320]],
|
||
stars: [1260, 1340],
|
||
demo: [
|
||
{ nest: 0, pts: [[152, 412], [152, 344], [154, 288], [188, 245], [234, 180], [306, 158]] },
|
||
{ nest: 1, pts: [[318, 438], [298, 268]] },
|
||
{ nest: 1, pts: [[392, 390], [382, 292]] },
|
||
{ nest: 1, pts: [[446, 456], [458, 396], [458, 314], [424, 215]] },
|
||
],
|
||
},
|
||
{
|
||
id: 'sakura-grand-boss', chapter: 2, name: '萌宠花园', difficulty: 'Boss', motif: 'sakura',
|
||
lesson: '第三章终考:双巢不交、孤缸同染、锁扣针门兼备,4 笔极限满绣五区!',
|
||
goal: '限 4 笔不交叉 + 极限预算,绣满全部五处针位。',
|
||
ruleTag: '章末 Boss',
|
||
noCross: true,
|
||
maxDispatches: 4,
|
||
budget: 1380,
|
||
locks: { 'sakura-right': 'sakura-leaf' },
|
||
nests: [[176, 492], [418, 492]],
|
||
sections: ['sakura-left', 'sakura-top', 'sakura-right', 'sakura-bird', 'sakura-leaf'],
|
||
balls: [
|
||
[148, 412, 'white'], [148, 342, 'white'],
|
||
[474, 384, 'rose'], [348, 434, 'gold'], [422, 366, 'green'],
|
||
],
|
||
dyes: [[152, 288, 'rose', 1]],
|
||
ponds: [[268, 414, 50, 28]],
|
||
buttons: [[364, 150]],
|
||
gates: [[234, 178, -0.3]],
|
||
stars: [1320, 1380],
|
||
demo: [
|
||
{ nest: 0, pts: [[148, 412], [148, 342], [152, 288], [188, 245], [234, 178], [306, 158], [364, 150]] },
|
||
{ nest: 1, pts: [[348, 434], [336, 348], [298, 268]] },
|
||
{ nest: 1, pts: [[422, 366], [382, 292]] },
|
||
{ nest: 1, pts: [[474, 384], [472, 284], [424, 215]] },
|
||
],
|
||
},
|
||
|
||
// =========================================================
|
||
// 第四章 · 诗意山水(31–40 关):#31 为高精手绣江南小桥样板(焦糖棕+青瓷蓝+松绿)
|
||
// =========================================================
|
||
{
|
||
id: 'landscape-jiangnan', chapter: 3, name: '江南小桥', difficulty: '进阶',
|
||
motif: 'custom', artworkImage: 'art_ch4_jiangnan_bridge',
|
||
lesson: '第四章开启!全新焦糖棕绣线登场,双巢不交叉绣出江南拱桥、垂柳与碧波。',
|
||
goal: '双巢不交叉完成垂柳、远山、拱桥与溪水四处国风针位。',
|
||
ruleTag: '手绣样板',
|
||
noCross: true,
|
||
budget: 1500,
|
||
nests: [[176, 492], [418, 492]],
|
||
customTargets: [
|
||
['jn-willow', 206, 206, 52, 62, 'green'],
|
||
['jn-hills', 388, 224, 52, 46, 'green'],
|
||
['jn-bridge', 298, 248, 56, 36, 'cocoa'],
|
||
['jn-water', 300, 316, 68, 32, 'sky'],
|
||
],
|
||
balls: [
|
||
[152, 416, 'green'], [148, 344, 'green'],
|
||
[444, 416, 'cocoa'], [346, 444, 'sky'],
|
||
],
|
||
ponds: [[252, 414, 46, 22]],
|
||
stars: [1180, 1280],
|
||
demo: [
|
||
{ nest: 0, pts: [[152, 416], [148, 344], [206, 206], [298, 160], [388, 224]] },
|
||
{ nest: 1, pts: [[346, 444], [334, 366], [300, 316]] },
|
||
{ nest: 1, pts: [[444, 416], [446, 286], [298, 248]] },
|
||
],
|
||
},
|
||
{
|
||
id: 'garden-5-burlap-btn', chapter: 3, name: '远山晓月', difficulty: '进阶', motif: 'garden',
|
||
lesson: '5 球绕开中央 ×2.0 粗布并穿过左右纽扣,合理省线冲三星!',
|
||
goal: '绕开粗布并穿过双扣,完成 5 处山水针位。',
|
||
ruleTag: '粗布 + 双扣',
|
||
maxDispatches: 4,
|
||
budget: 1880,
|
||
sections: ['g-gold-tl', 'g-gold-ml', 'g-rose-top', 'g-rose-mid', 'g-leaf-r'],
|
||
balls: [
|
||
[148, 412, 'gold'], [152, 344, 'gold'],
|
||
[446, 412, 'rose'], [446, 344, 'rose'],
|
||
[356, 466, 'green'],
|
||
],
|
||
roughZones: [[298, 390, 86, 50, 2.0]],
|
||
buttons: [[124, 240], [472, 240]],
|
||
stars: [1560, 1690],
|
||
demo: [
|
||
[[178, 478], [148, 412], [152, 344], [124, 240], [176, 174], [224, 246]],
|
||
[[412, 478], [446, 412], [446, 344], [472, 240], [300, 214], [300, 124]],
|
||
[[356, 466], [420, 392], [436, 298]],
|
||
],
|
||
},
|
||
{
|
||
id: 'garden-6-cross-locks', chapter: 3, name: '夕阳孤帆', difficulty: '挑战', motif: 'garden',
|
||
lesson: '6 球 6 区!双叶解锁顶花与右花,逼迫你走外环包抄且穿顶扣!',
|
||
goal: '按解锁顺序穿顶扣,不交叉完成 6 处针位。',
|
||
ruleTag: '6球拓扑锁',
|
||
noCross: true,
|
||
maxDispatches: 4,
|
||
budget: 2460,
|
||
locks: {
|
||
'g-gold-tl': 'g-leaf-l',
|
||
'g-gold-tr': 'g-leaf-r',
|
||
'g-rose-top': 'g-gold-tr',
|
||
},
|
||
sections: ['g-gold-tl', 'g-gold-tr', 'g-rose-top', 'g-rose-mid', 'g-leaf-l', 'g-leaf-r'],
|
||
balls: [
|
||
[152, 416, 'gold'], [208, 464, 'gold'],
|
||
[294, 454, 'green'], [294, 386, 'green'],
|
||
[388, 464, 'rose'], [446, 416, 'rose'],
|
||
],
|
||
ponds: [[224, 404, 40, 22], [374, 404, 40, 22]],
|
||
buttons: [[300, 84]],
|
||
stars: [2200, 2380],
|
||
demo: [
|
||
[[294, 454], [294, 386], [294, 318], [164, 298], [300, 326], [436, 298]],
|
||
[[208, 464], [152, 416], [108, 304], [124, 196], [176, 174], [244, 88], [300, 84], [360, 88], [424, 174]],
|
||
[[388, 464], [446, 416], [492, 304], [472, 232], [300, 214], [300, 124]],
|
||
],
|
||
},
|
||
{
|
||
id: 'garden-6-twin-bridges', chapter: 3, name: '翠竹听风', difficulty: '挑战', motif: 'garden',
|
||
lesson: '左右双水洼彻底封死两翼!先绣双叶搭双桥,顺路吃线轴续线过关!',
|
||
goal: '先搭双桥并吃线轴,不交叉完成 6 处针位。',
|
||
ruleTag: '双桥 + 线轴',
|
||
noCross: true,
|
||
maxDispatches: 4,
|
||
budget: 1600,
|
||
sections: ['g-gold-tl', 'g-gold-ml', 'g-rose-top', 'g-rose-mid', 'g-leaf-l', 'g-leaf-r'],
|
||
balls: [
|
||
[154, 426, 'gold'], [216, 472, 'gold'],
|
||
[444, 426, 'rose'], [382, 472, 'rose'],
|
||
[294, 444, 'green'], [294, 376, 'green'],
|
||
],
|
||
ponds: [
|
||
[148, 368, 46, 24, 'g-leaf-l'],
|
||
[452, 368, 46, 24, 'g-leaf-r'],
|
||
],
|
||
spools: [[110, 274, 260], [490, 274, 260]],
|
||
stars: [1940, 2100],
|
||
demo: [
|
||
[[294, 444], [294, 376], [294, 316], [164, 298], [300, 328], [436, 298]],
|
||
[[216, 472], [154, 426], [148, 368], [110, 274], [126, 206], [176, 174], [224, 246]],
|
||
[[382, 472], [444, 426], [452, 368], [490, 274], [468, 224], [300, 214], [300, 124]],
|
||
],
|
||
},
|
||
{
|
||
id: 'garden-6-solid', chapter: 3, name: '雪顶樱山', difficulty: '烧脑', motif: 'garden',
|
||
lesson: '6 颗实体堵球 + 双叶锁花 + 不可交叉,剥洋葱般逐层清道解锁!',
|
||
goal: '按顺序清道解锁,不交叉绣满 6 处针位。',
|
||
ruleTag: '堵球 + 花锁',
|
||
solidBalls: true,
|
||
noCross: true,
|
||
maxDispatches: 4,
|
||
budget: 2140,
|
||
locks: { 'g-gold-ml': 'g-leaf-l', 'g-rose-mid': 'g-leaf-r' },
|
||
sections: ['g-gold-tl', 'g-gold-ml', 'g-rose-top', 'g-rose-mid', 'g-leaf-l', 'g-leaf-r'],
|
||
balls: [
|
||
[150, 412, 'gold'], [142, 344, 'gold'],
|
||
[448, 412, 'rose'], [456, 344, 'rose'],
|
||
[292, 460, 'green'], [292, 396, 'green'],
|
||
],
|
||
ponds: [[224, 424, 36, 22], [368, 424, 36, 22]],
|
||
stars: [1870, 2020],
|
||
demo: [
|
||
[[292, 460], [292, 396], [292, 326], [164, 298], [300, 314], [436, 298]],
|
||
[[220, 488], [150, 412], [142, 344], [106, 280], [176, 174], [224, 246]],
|
||
[[368, 488], [448, 412], [456, 344], [492, 280], [466, 226], [300, 214], [300, 124]],
|
||
],
|
||
},
|
||
{
|
||
id: 'garden-6-dual-dye', chapter: 3, name: '星夜灯海', difficulty: '烧脑', motif: 'garden',
|
||
lesson: '四白球 + 双孤缸(染×1) + 顶部单向针门,3 笔满载一击必成!',
|
||
goal: '限 3 笔不交叉,双孤缸同染并顺穿针门。',
|
||
ruleTag: '双孤缸 + 针门',
|
||
noCross: true,
|
||
maxDispatches: 3,
|
||
budget: 2080,
|
||
sections: ['g-gold-tl', 'g-gold-ml', 'g-rose-top', 'g-rose-mid', 'g-leaf-l', 'g-leaf-r'],
|
||
balls: [
|
||
[164, 444, 'white'], [144, 376, 'white'],
|
||
[432, 444, 'white'], [454, 376, 'white'],
|
||
[292, 456, 'green'], [292, 386, 'green'],
|
||
],
|
||
dyes: [[108, 294, 'gold', 1], [490, 294, 'rose', 1]],
|
||
gates: [[300, 168, -PI / 2]],
|
||
ponds: [[228, 412, 36, 20], [364, 412, 36, 20]],
|
||
stars: [1910, 2070],
|
||
demo: [
|
||
[[292, 456], [292, 386], [292, 316], [164, 298], [300, 330], [436, 298]],
|
||
[[164, 444], [144, 376], [108, 294], [122, 210], [176, 174], [224, 246]],
|
||
[[432, 444], [454, 376], [490, 294], [472, 220], [300, 214], [300, 168], [300, 124]],
|
||
],
|
||
},
|
||
{
|
||
id: 'garden-5-nest-breather', chapter: 3, name: '云海热球', difficulty: '休闲', motif: 'garden',
|
||
lesson: '【喘息关】决战前的小憩:双蚁巢绕粗布穿中扣,节奏舒缓好拿星。',
|
||
goal: '双巢绕粗布并穿过中扣,补齐 5 处针位。',
|
||
ruleTag: '双巢喘息',
|
||
budget: 1990,
|
||
nests: [[176, 492], [418, 492]],
|
||
sections: ['g-gold-tl', 'g-gold-tr', 'g-rose-mid', 'g-leaf-l', 'g-leaf-r'],
|
||
balls: [
|
||
[136, 404, 'gold'], [462, 404, 'gold'],
|
||
[300, 442, 'rose'],
|
||
[212, 392, 'green'], [388, 392, 'green'],
|
||
],
|
||
roughZones: [[300, 344, 62, 26, 2.0]],
|
||
buttons: [[300, 270]],
|
||
stars: [1700, 1840],
|
||
demo: [
|
||
{ nest: 0, pts: [[136, 404], [116, 264], [176, 174]] },
|
||
{ nest: 1, pts: [[462, 404], [482, 264], [424, 174]] },
|
||
{ nest: 0, pts: [[212, 392], [164, 298]] },
|
||
{ nest: 1, pts: [[388, 392], [436, 298]] },
|
||
{ nest: 1, pts: [[300, 442], [228, 356], [300, 270], [300, 214]] },
|
||
],
|
||
},
|
||
{
|
||
id: 'garden-7-gates-locks', chapter: 3, name: '秋枫溪谷', difficulty: '大师', motif: 'garden',
|
||
lesson: '7 球 7 区 + 双向针门 + 双花锁 + 双巢不交,先开锁再顺箭穿门!',
|
||
goal: '限 4 笔不交叉顺穿双门并解锁,完成 7 处针位。',
|
||
ruleTag: '7球双门双锁',
|
||
noCross: true,
|
||
maxDispatches: 4,
|
||
budget: 2330,
|
||
locks: { 'g-rose-top': 'g-gold-tl', 'g-gold-tr': 'g-leaf-r' },
|
||
nests: [[176, 492], [418, 492]],
|
||
sections: ['g-gold-tl', 'g-gold-tr', 'g-gold-mr', 'g-rose-top', 'g-rose-mid', 'g-leaf-l', 'g-leaf-r'],
|
||
balls: [
|
||
[134, 408, 'gold'], [454, 404, 'gold'], [468, 342, 'gold'],
|
||
[482, 434, 'rose'], [504, 348, 'rose'],
|
||
[256, 446, 'green'], [322, 414, 'green'],
|
||
],
|
||
ponds: [[212, 376, 34, 18], [386, 376, 34, 18]],
|
||
gates: [[376, 104, PI], [300, 314, 0]],
|
||
stars: [2180, 2330],
|
||
demo: [
|
||
{ nest: 0, pts: [[256, 446], [322, 414], [254, 342], [164, 298], [300, 314], [436, 298]] },
|
||
{ nest: 0, pts: [[134, 408], [102, 260], [176, 174]] },
|
||
{ nest: 1, pts: [[454, 404], [468, 342], [472, 250], [376, 246], [424, 174]] },
|
||
{ nest: 1, pts: [[482, 434], [504, 348], [512, 252], [476, 146], [376, 104], [300, 124], [300, 214]] },
|
||
],
|
||
},
|
||
{
|
||
id: 'garden-8-tapestry', chapter: 3, name: '极光雪松', difficulty: '大师', motif: 'garden',
|
||
lesson: '全盘 8 球 8 区满绣!双蚁巢限 4 笔不交叉并穿顶扣,每蚁满载两球!',
|
||
goal: '限 4 笔不交叉穿顶扣,满载绣完全部 8 处针位。',
|
||
ruleTag: '8球满载',
|
||
noCross: true,
|
||
maxDispatches: 4,
|
||
budget: 2400,
|
||
nests: [[176, 492], [418, 492]],
|
||
sections: ['g-gold-tl', 'g-gold-tr', 'g-gold-ml', 'g-gold-mr', 'g-rose-top', 'g-rose-mid', 'g-leaf-l', 'g-leaf-r'],
|
||
balls: [
|
||
[134, 414, 'gold'], [120, 346, 'gold'],
|
||
[454, 408, 'gold'], [468, 346, 'gold'],
|
||
[482, 434, 'rose'], [504, 352, 'rose'],
|
||
[256, 446, 'green'], [322, 414, 'green'],
|
||
],
|
||
ponds: [[212, 376, 34, 18], [386, 376, 34, 18]],
|
||
buttons: [[386, 102]],
|
||
stars: [2300, 2400],
|
||
demo: [
|
||
{ nest: 0, pts: [[256, 446], [322, 414], [298, 336], [164, 298], [300, 314], [436, 298]] },
|
||
{ nest: 0, pts: [[134, 414], [120, 346], [100, 248], [176, 174], [224, 246]] },
|
||
{ nest: 1, pts: [[454, 408], [468, 346], [472, 250], [376, 246], [424, 174]] },
|
||
{ nest: 1, pts: [[482, 434], [504, 352], [512, 252], [476, 146], [386, 102], [300, 124], [300, 214]] },
|
||
],
|
||
},
|
||
{
|
||
id: 'garden-grand-master', chapter: 3, name: '千里江山', difficulty: 'Boss', motif: 'garden',
|
||
lesson: '第四章终考:三角三蚁巢 + 半途换色 + 浮桥双锁 + 不交叉,4 笔绣全 8 区!',
|
||
goal: '限 4 笔不交叉,三巢协同绣成千里江山 8 处针位!',
|
||
ruleTag: '三巢 Boss',
|
||
noCross: true,
|
||
maxDispatches: 4,
|
||
budget: 2040,
|
||
locks: { 'g-rose-mid': 'g-gold-tl', 'g-gold-mr': 'g-leaf-r' },
|
||
nests: [[160, 490], [440, 490], [300, 72]],
|
||
sections: ['g-gold-tl', 'g-gold-tr', 'g-gold-ml', 'g-gold-mr', 'g-rose-top', 'g-rose-mid', 'g-leaf-l', 'g-leaf-r'],
|
||
balls: [
|
||
[112, 356, 'white'], [104, 264, 'white'],
|
||
[484, 366, 'gold'], [492, 264, 'gold'],
|
||
[238, 92, 'rose'], [362, 92, 'rose'],
|
||
[234, 442, 'green'], [364, 442, 'green'],
|
||
],
|
||
dyes: [[116, 198, 'gold', 1]],
|
||
ponds: [[300, 412, 48, 22], [444, 210, 32, 18, 'g-leaf-l']],
|
||
stars: [1980, 2040],
|
||
demo: [
|
||
{ nest: 0, pts: [[234, 442], [300, 468], [364, 442], [436, 298], [300, 316], [164, 298]] },
|
||
{ nest: 0, pts: [[112, 356], [104, 264], [116, 198], [176, 174], [224, 246]] },
|
||
{ nest: 1, pts: [[484, 366], [492, 264], [444, 210], [424, 174], [376, 246]] },
|
||
{ nest: 2, pts: [[238, 92], [362, 92], [300, 124], [300, 214]] },
|
||
],
|
||
},
|
||
|
||
// =========================================================
|
||
// 第五章 · 雅致筑影(41–50 关):#41 为高精手绣红顶童话屋样板
|
||
// =========================================================
|
||
{
|
||
id: 'arch-red-cottage', chapter: 4, name: '红顶童话屋', difficulty: '进阶',
|
||
motif: 'custom', artworkImage: 'art_ch5_red_cottage',
|
||
lesson: '第五章开启!先用珊瑚红、暖金与松绿绣出温馨的红顶童话小屋。',
|
||
goal: '绕水绣出红瓦屋顶、暖光木窗与左右花园灌木。',
|
||
ruleTag: '手绣样板',
|
||
noCross: true,
|
||
budget: 2000,
|
||
customTargets: [
|
||
['cot-roof', 284, 196, 66, 48, 'coral'],
|
||
['cot-window', 322, 272, 52, 42, 'gold'],
|
||
['cot-bush-l', 202, 296, 46, 38, 'green'],
|
||
['cot-bush-r', 392, 294, 46, 36, 'green'],
|
||
],
|
||
balls: [
|
||
[146, 412, 'coral'], [446, 412, 'gold'],
|
||
[250, 444, 'green'], [342, 444, 'green'],
|
||
],
|
||
ponds: [[296, 384, 46, 22]],
|
||
stars: [1620, 1750],
|
||
demo: [
|
||
[[250, 444], [342, 444], [392, 376], [392, 294], [296, 336], [202, 296]],
|
||
[[146, 412], [116, 286], [176, 206], [284, 196]],
|
||
[[446, 412], [462, 316], [322, 272]],
|
||
],
|
||
},
|
||
{
|
||
id: 'arch-windmill', chapter: 4, name: '风车磨坊', difficulty: '进阶', motif: 'garden',
|
||
lesson: '5 球绕双水洼并顺箭穿过风车针门,合理省线冲三星!',
|
||
goal: '顺箭穿针门并绕水,完成 5 处建筑针位。',
|
||
ruleTag: '针门 + 绕水',
|
||
maxDispatches: 4,
|
||
budget: 2500,
|
||
sections: ['g-gold-tl', 'g-gold-tr', 'g-rose-top', 'g-leaf-l', 'g-leaf-r'],
|
||
balls: [
|
||
[152, 416, 'gold'], [446, 416, 'gold'],
|
||
[300, 444, 'rose'],
|
||
[252, 466, 'green'], [342, 466, 'green'],
|
||
],
|
||
ponds: [[228, 388, 40, 20], [372, 388, 40, 20]],
|
||
gates: [[300, 174, -PI / 2]],
|
||
stars: [2130, 2310],
|
||
demo: [
|
||
[[300, 444], [300, 250], [300, 174], [300, 124]],
|
||
[[182, 488], [152, 416], [126, 286], [176, 174]],
|
||
[[416, 488], [446, 416], [472, 286], [424, 174]],
|
||
[[252, 466], [342, 466], [300, 388], [164, 298], [300, 316], [436, 298]],
|
||
],
|
||
},
|
||
{
|
||
id: 'arch-water-pavilion', chapter: 4, name: '江南水亭', difficulty: '挑战', motif: 'garden',
|
||
lesson: '左右侧巢横穿运河!先由右巢绣双叶搭双桥,再穿过顶部与底部双扣!',
|
||
goal: '侧巢不交叉搭双桥穿双扣,完成 6 处针位。',
|
||
ruleTag: '侧巢双桥',
|
||
noCross: true,
|
||
maxDispatches: 4,
|
||
budget: 2320,
|
||
nests: [[96, 354], [504, 354]],
|
||
sections: ['g-gold-tl', 'g-gold-tr', 'g-rose-top', 'g-rose-mid', 'g-leaf-l', 'g-leaf-r'],
|
||
balls: [
|
||
[120, 224, 'gold'], [190, 108, 'gold'],
|
||
[442, 424, 'green'], [358, 434, 'green'],
|
||
[254, 444, 'rose'], [166, 436, 'rose'],
|
||
],
|
||
ponds: [[164, 366, 34, 18, 'g-leaf-l'], [300, 396, 42, 18, 'g-leaf-r']],
|
||
buttons: [[300, 82], [296, 474]],
|
||
stars: [2080, 2250],
|
||
demo: [
|
||
{ nest: 1, pts: [[442, 424], [358, 434], [296, 474], [436, 356], [436, 298], [300, 316], [164, 298]] },
|
||
{ nest: 0, pts: [[120, 224], [190, 108], [176, 174], [300, 82], [424, 174]] },
|
||
{ nest: 0, pts: [[166, 436], [254, 444], [300, 396], [300, 214], [300, 124]] },
|
||
],
|
||
},
|
||
{
|
||
id: 'arch-torii-gate', chapter: 4, name: '樱花鸟居', difficulty: '挑战', motif: 'garden',
|
||
lesson: '双巢不交 + 覆色染缸 + 鸟居锁,把金球改染粉红穿过单向门!',
|
||
goal: '利用覆染缸并解锁鸟居,不交叉完成 6 处针位。',
|
||
ruleTag: '覆染 + 鸟居锁',
|
||
noCross: true,
|
||
maxDispatches: 4,
|
||
budget: 2350,
|
||
locks: { 'g-rose-top': 'g-gold-tl', 'g-gold-mr': 'g-leaf-r' },
|
||
nests: [[176, 492], [418, 492]],
|
||
sections: ['g-gold-tl', 'g-gold-mr', 'g-rose-top', 'g-rose-mid', 'g-leaf-l', 'g-leaf-r'],
|
||
balls: [
|
||
[134, 412, 'gold'], [458, 404, 'gold'],
|
||
[482, 434, 'gold'], [502, 348, 'gold'],
|
||
[256, 444, 'green'], [322, 414, 'green'],
|
||
],
|
||
dyes: [[512, 240, 'rose', 1, true]],
|
||
ponds: [[212, 376, 34, 18], [386, 376, 34, 18]],
|
||
stars: [2150, 2330],
|
||
demo: [
|
||
{ nest: 0, pts: [[256, 444], [322, 414], [298, 336], [164, 298], [300, 314], [436, 298]] },
|
||
{ nest: 0, pts: [[134, 412], [104, 260], [176, 174]] },
|
||
{ nest: 1, pts: [[458, 404], [468, 326], [468, 250], [376, 246]] },
|
||
{ nest: 1, pts: [[482, 434], [502, 348], [512, 240], [468, 150], [386, 102], [300, 124], [300, 214]] },
|
||
],
|
||
},
|
||
{
|
||
id: 'arch-ferris-wheel', chapter: 4, name: '浪漫摩天轮', difficulty: '烧脑', motif: 'garden',
|
||
lesson: '6 球实体堵路 + 三重顺序锁 + 不可交叉,按顺时针解开摩天轮!',
|
||
goal: '按解锁顺序清道,不交叉完成 6 处针位。',
|
||
ruleTag: '堵球 + 三重锁',
|
||
solidBalls: true,
|
||
noCross: true,
|
||
maxDispatches: 4,
|
||
budget: 2090,
|
||
locks: {
|
||
'g-gold-ml': 'g-leaf-l',
|
||
'g-rose-mid': 'g-gold-ml',
|
||
'g-rose-top': 'g-rose-mid',
|
||
},
|
||
sections: ['g-gold-tl', 'g-gold-ml', 'g-rose-top', 'g-rose-mid', 'g-leaf-l', 'g-leaf-r'],
|
||
balls: [
|
||
[148, 414, 'gold'], [140, 342, 'gold'],
|
||
[448, 414, 'rose'], [456, 342, 'rose'],
|
||
[292, 458, 'green'], [292, 392, 'green'],
|
||
],
|
||
ponds: [[224, 424, 34, 20], [368, 424, 34, 20]],
|
||
stars: [1870, 2020],
|
||
demo: [
|
||
[[292, 458], [292, 392], [292, 326], [164, 298], [300, 314], [436, 298]],
|
||
[[220, 488], [148, 414], [140, 342], [108, 268], [176, 174], [224, 246]],
|
||
[[368, 488], [448, 414], [456, 342], [488, 272], [456, 224], [300, 214], [300, 124]],
|
||
],
|
||
},
|
||
{
|
||
id: 'arch-white-lighthouse', chapter: 4, name: '海边白灯塔', difficulty: '烧脑', motif: 'garden',
|
||
lesson: '双巢不交 + 粗布险礁 + 双线轴续命,避礁吃轴点亮 7 处灯塔星光!',
|
||
goal: '双巢不交叉避礁吃轴,完成 7 处针位。',
|
||
ruleTag: '7球粗布双轴',
|
||
noCross: true,
|
||
maxDispatches: 4,
|
||
budget: 1870,
|
||
nests: [[176, 492], [418, 492]],
|
||
sections: ['g-gold-tl', 'g-gold-tr', 'g-gold-ml', 'g-rose-top', 'g-rose-mid', 'g-leaf-l', 'g-leaf-r'],
|
||
balls: [
|
||
[134, 412, 'gold'], [122, 344, 'gold'], [462, 352, 'gold'],
|
||
[482, 408, 'rose'], [498, 334, 'rose'],
|
||
[256, 442, 'green'], [316, 412, 'green'],
|
||
],
|
||
roughZones: [[212, 372, 40, 22, 2.0], [386, 372, 40, 22, 2.0]],
|
||
spools: [[102, 248, 260], [508, 256, 260]],
|
||
stars: [2190, 2370],
|
||
demo: [
|
||
{ nest: 0, pts: [[256, 442], [316, 412], [298, 326], [164, 298], [300, 314], [436, 298]] },
|
||
{ nest: 0, pts: [[134, 412], [122, 344], [102, 248], [176, 174], [224, 246]] },
|
||
{ nest: 1, pts: [[442, 424], [462, 352], [472, 252], [424, 174]] },
|
||
{ nest: 1, pts: [[482, 408], [498, 334], [508, 256], [476, 152], [392, 102], [300, 124], [300, 214]] },
|
||
],
|
||
},
|
||
{
|
||
id: 'arch-treehouse-breather', chapter: 4, name: '森林树屋', difficulty: '休闲', motif: 'garden',
|
||
lesson: '【喘息关】三蚁巢轻快穿梭林间,顺路穿过双纽扣即可舒心过关。',
|
||
goal: '利用三蚁巢穿过双扣,补齐 5 处树屋针位。',
|
||
ruleTag: '三巢喘息',
|
||
budget: 1630,
|
||
nests: [[176, 492], [418, 492], [300, 74]],
|
||
sections: ['g-gold-tl', 'g-gold-tr', 'g-rose-mid', 'g-leaf-l', 'g-leaf-r'],
|
||
balls: [
|
||
[142, 396, 'gold'], [458, 396, 'gold'],
|
||
[300, 134, 'rose'],
|
||
[220, 412, 'green'], [380, 412, 'green'],
|
||
],
|
||
ponds: [[300, 374, 52, 22]],
|
||
buttons: [[116, 256], [484, 256]],
|
||
stars: [1390, 1510],
|
||
demo: [
|
||
{ nest: 2, pts: [[300, 134], [300, 214]] },
|
||
{ nest: 0, pts: [[142, 396], [116, 256], [176, 174]] },
|
||
{ nest: 1, pts: [[458, 396], [484, 256], [424, 174]] },
|
||
{ nest: 0, pts: [[220, 412], [164, 298]] },
|
||
{ nest: 1, pts: [[380, 412], [436, 298]] },
|
||
],
|
||
},
|
||
{
|
||
id: 'arch-flower-window', chapter: 4, name: '复古花窗', difficulty: '大师', motif: 'garden',
|
||
lesson: '【四重因果死结】堵球×浮桥×双锁互咬!必须反推唯一顺序:右金搭桥→粉花开绿锁→绿叶清堵球开左金锁!',
|
||
goal: '限 4 笔不交叉解开四重因果锁,完成 7 处针位。',
|
||
ruleTag: '四重因果锁',
|
||
solidBalls: true,
|
||
noCross: true,
|
||
maxDispatches: 4,
|
||
budget: 1910,
|
||
locks: { 'g-leaf-l': 'g-rose-mid', 'g-gold-tl': 'g-leaf-r' },
|
||
nests: [[176, 492], [424, 492], [300, 72]],
|
||
sections: ['g-gold-tl', 'g-gold-tr', 'g-gold-mr', 'g-rose-top', 'g-rose-mid', 'g-leaf-l', 'g-leaf-r'],
|
||
balls: [
|
||
[112, 336, 'gold'], [476, 364, 'gold'], [488, 276, 'gold'],
|
||
[234, 96, 'rose'], [366, 96, 'rose'],
|
||
[194, 412, 'green'], [264, 376, 'green'],
|
||
],
|
||
ponds: [[300, 170, 36, 16, 'g-gold-tr'], [354, 416, 42, 20]],
|
||
stars: [1790, 1910],
|
||
demo: [
|
||
{ nest: 1, pts: [[476, 364], [488, 276], [424, 174], [376, 246]] },
|
||
{ nest: 2, pts: [[234, 96], [366, 96], [300, 124], [300, 170], [300, 214]] },
|
||
{ nest: 0, pts: [[194, 412], [264, 376], [164, 298], [300, 314], [436, 298]] },
|
||
{ nest: 0, pts: [[134, 418], [112, 336], [108, 240], [176, 174]] },
|
||
],
|
||
},
|
||
{
|
||
id: 'arch-glass-conservatory', chapter: 4, name: '玻璃花房', difficulty: '大师', motif: 'garden',
|
||
lesson: '三巢星形放射布局!顶部蚁巢反穿双扣,左右蚁巢对角包抄完成 8 区!',
|
||
goal: '限 4 笔不交叉三巢放射,完成 8 处花房针位。',
|
||
ruleTag: '三巢星阵',
|
||
noCross: true,
|
||
maxDispatches: 4,
|
||
budget: 2050,
|
||
locks: { 'g-gold-ml': 'g-leaf-l', 'g-rose-mid': 'g-gold-tr' },
|
||
nests: [[118, 434], [482, 434], [300, 72]],
|
||
sections: ['g-gold-tl', 'g-gold-tr', 'g-gold-ml', 'g-gold-mr', 'g-rose-top', 'g-rose-mid', 'g-leaf-l', 'g-leaf-r'],
|
||
balls: [
|
||
[100, 304, 'gold'], [114, 212, 'gold'],
|
||
[498, 304, 'gold'], [486, 212, 'gold'],
|
||
[226, 98, 'rose'], [374, 98, 'rose'],
|
||
[234, 472, 'green'], [366, 472, 'green'],
|
||
],
|
||
ponds: [[236, 386, 36, 18], [364, 386, 36, 18]],
|
||
buttons: [[300, 488], [300, 168]],
|
||
stars: [1970, 2050],
|
||
demo: [
|
||
{ nest: 0, pts: [[234, 472], [300, 488], [366, 472], [436, 366], [436, 298], [300, 314], [164, 298]] },
|
||
{ nest: 0, pts: [[100, 304], [114, 212], [176, 174], [224, 246]] },
|
||
{ nest: 1, pts: [[498, 304], [486, 212], [424, 174], [376, 246]] },
|
||
{ nest: 2, pts: [[226, 98], [374, 98], [300, 124], [300, 168], [300, 214]] },
|
||
],
|
||
},
|
||
{
|
||
id: 'arch-snow-clocktower', chapter: 4, name: '雪夜钟楼', difficulty: 'Boss', motif: 'garden',
|
||
lesson: '第五章终考:8 球 4 蚁含「半途覆染」+ 反向针门 + 浮桥双锁!',
|
||
goal: '限 4 笔不交叉覆染过门,点亮雪夜钟楼 8 处针位!',
|
||
ruleTag: '半途换色Boss',
|
||
noCross: true,
|
||
maxDispatches: 4,
|
||
budget: 2160,
|
||
locks: { 'g-rose-top': 'g-gold-tl', 'g-gold-mr': 'g-leaf-r' },
|
||
nests: [[148, 478], [452, 478], [300, 72]],
|
||
sections: ['g-gold-tl', 'g-gold-tr', 'g-gold-ml', 'g-gold-mr', 'g-rose-top', 'g-rose-mid', 'g-leaf-l', 'g-leaf-r'],
|
||
balls: [
|
||
[104, 344, 'white'], [104, 250, 'white'],
|
||
[488, 356, 'gold'], [492, 256, 'gold'],
|
||
[232, 96, 'gold'], [368, 96, 'gold'],
|
||
[252, 434, 'green'], [348, 434, 'green'],
|
||
],
|
||
dyes: [[118, 186, 'gold', 1], [358, 124, 'rose', 1, true]],
|
||
ponds: [[296, 384, 44, 18], [440, 212, 32, 16, 'g-leaf-l']],
|
||
gates: [[300, 314, 0]],
|
||
stars: [2100, 2160],
|
||
demo: [
|
||
{ nest: 0, pts: [[268, 476], [348, 434], [252, 434], [172, 376], [164, 298], [300, 314], [436, 298]] },
|
||
{ nest: 0, pts: [[104, 344], [104, 250], [118, 186], [176, 174], [224, 246]] },
|
||
{ nest: 1, pts: [[488, 356], [492, 256], [440, 212], [424, 174], [376, 246]] },
|
||
{ nest: 2, pts: [[232, 96], [368, 96], [358, 124], [300, 124], [300, 214]] },
|
||
],
|
||
},
|
||
|
||
// =========================================================
|
||
// 第六章 · 拾光甜物(51–60 关):全章独立拓扑 + 双半途换色 + 怀表四巢 + 60关宗师
|
||
// =========================================================
|
||
{
|
||
id: 'sweet-strawberry-cake', chapter: 5, name: '草莓奶油蛋糕', difficulty: '进阶',
|
||
motif: 'custom', artworkImage: 'art_ch6_strawberry_cake',
|
||
lesson: '第六章开启!双蚁巢对角交错:珊瑚球在右、金球在左,不交叉绣出草莓蛋糕!',
|
||
goal: '双巢不交叉对角包抄,绣出草莓、蛋糕胚与左右蕾丝盘。',
|
||
ruleTag: '手绣样板',
|
||
noCross: true,
|
||
budget: 2080,
|
||
nests: [[176, 492], [418, 492]],
|
||
customTargets: [
|
||
['cake-berry', 298, 174, 52, 42, 'coral'],
|
||
['cake-sponge', 298, 254, 56, 40, 'gold'],
|
||
['cake-lace-l', 202, 260, 44, 42, 'sky'],
|
||
['cake-lace-r', 394, 260, 44, 42, 'sky'],
|
||
],
|
||
balls: [
|
||
[458, 376, 'coral'], [142, 376, 'gold'],
|
||
[252, 434, 'sky'], [344, 434, 'sky'],
|
||
],
|
||
ponds: [[298, 384, 44, 20]],
|
||
stars: [1730, 1870],
|
||
demo: [
|
||
{ nest: 0, pts: [[252, 434], [344, 434], [394, 344], [394, 260], [298, 326], [202, 260]] },
|
||
{ nest: 0, pts: [[142, 376], [116, 240], [186, 152], [244, 224], [298, 254]] },
|
||
{ nest: 1, pts: [[458, 376], [480, 246], [420, 152], [298, 174]] },
|
||
],
|
||
},
|
||
{
|
||
id: 'sweet-macaron', chapter: 5, name: '樱花马卡龙', difficulty: '挑战', motif: 'garden',
|
||
lesson: '双巢不交 + 孤缸染粉 + 双扣,用最匀称的线条串起 5 枚马卡龙!',
|
||
goal: '双巢不交叉同染并穿双扣,完成 5 处针位。',
|
||
ruleTag: '孤缸 + 双扣',
|
||
noCross: true,
|
||
maxDispatches: 4,
|
||
budget: 1710,
|
||
nests: [[176, 492], [418, 492]],
|
||
sections: ['g-gold-tl', 'g-gold-tr', 'g-rose-top', 'g-rose-mid', 'g-leaf-r'],
|
||
balls: [
|
||
[138, 404, 'gold'], [460, 404, 'gold'],
|
||
[258, 434, 'white'], [334, 434, 'white'],
|
||
[392, 366, 'green'],
|
||
],
|
||
dyes: [[298, 344, 'rose', 1]],
|
||
buttons: [[116, 256], [484, 256]],
|
||
stars: [1500, 1620],
|
||
demo: [
|
||
{ nest: 0, pts: [[138, 404], [116, 256], [176, 174]] },
|
||
{ nest: 1, pts: [[460, 404], [484, 256], [424, 174]] },
|
||
{ nest: 1, pts: [[392, 366], [436, 298]] },
|
||
{ nest: 0, pts: [[258, 434], [334, 434], [298, 344], [300, 214], [300, 124]] },
|
||
],
|
||
},
|
||
{
|
||
id: 'sweet-porcelain-teapot', chapter: 5, name: '青花茶壶', difficulty: '烧脑', motif: 'garden',
|
||
lesson: '【半途换色】左右侧巢限 3 笔绣 6 区!左蚁串双白染金绣金花,再半路过粉覆染缸绣顶牡丹!',
|
||
goal: '限 3 笔不交叉 + 半途换色,泡出 6 处青花针位。',
|
||
ruleTag: '侧巢半途换色',
|
||
noCross: true,
|
||
maxDispatches: 3,
|
||
budget: 1930,
|
||
nests: [[102, 384], [498, 384]],
|
||
sections: ['g-gold-tl', 'g-gold-tr', 'g-rose-top', 'g-rose-mid', 'g-leaf-l', 'g-leaf-r'],
|
||
balls: [
|
||
[104, 290, 'white'], [114, 212, 'white'],
|
||
[486, 260, 'gold'], [448, 118, 'gold'],
|
||
[234, 456, 'green'], [366, 456, 'green'],
|
||
],
|
||
dyes: [[146, 128, 'gold', 1], [238, 124, 'rose', 1, true], [362, 198, 'rose', 1, true]],
|
||
roughZones: [[300, 392, 68, 28, 2.0]],
|
||
stars: [1730, 1870],
|
||
demo: [
|
||
{ nest: 0, pts: [[234, 456], [366, 456], [436, 366], [436, 298], [300, 316], [164, 298]] },
|
||
{ nest: 0, pts: [[104, 290], [114, 212], [146, 128], [176, 174], [238, 124], [300, 124]] },
|
||
{ nest: 1, pts: [[486, 260], [448, 118], [424, 174], [362, 198], [300, 214]] },
|
||
],
|
||
},
|
||
{
|
||
id: 'sweet-caramel-pudding', chapter: 5, name: '焦糖布丁', difficulty: '烧脑', motif: 'garden',
|
||
lesson: '中央水岛 + 反向双针门!绿叶先搭桥开岛,金粉沿左右外环逆向绕背过门!',
|
||
goal: '限 3 笔不交叉绕背过双门,完成 6 处甜点针位。',
|
||
ruleTag: '环岛反向门',
|
||
noCross: true,
|
||
maxDispatches: 3,
|
||
budget: 1850,
|
||
nests: [[300, 522], [300, 74]],
|
||
sections: ['g-gold-tl', 'g-gold-ml', 'g-rose-top', 'g-rose-mid', 'g-leaf-l', 'g-leaf-r'],
|
||
balls: [
|
||
[194, 476, 'gold'], [118, 392, 'gold'],
|
||
[216, 102, 'rose'], [384, 102, 'rose'],
|
||
[404, 476, 'green'], [476, 386, 'green'],
|
||
],
|
||
ponds: [[300, 396, 62, 28, 'g-leaf-r'], [190, 338, 32, 16]],
|
||
gates: [[126, 210, -PI / 2], [300, 168, PI / 2]],
|
||
stars: [1660, 1800],
|
||
demo: [
|
||
{ nest: 0, pts: [[404, 476], [476, 386], [436, 298], [300, 316], [164, 298]] },
|
||
{ nest: 0, pts: [[194, 476], [118, 392], [110, 290], [126, 210], [176, 174], [224, 246]] },
|
||
{ nest: 1, pts: [[216, 102], [384, 102], [300, 124], [300, 168], [300, 214]] },
|
||
],
|
||
},
|
||
{
|
||
id: 'sweet-perfume-bottle', chapter: 5, name: '复古香水瓶', difficulty: '烧脑', motif: 'garden',
|
||
lesson: '【双蚁半途换色】4 颗白球限 3 笔绣三色 6 区!左右两只蚂蚁都要先落一针再半路覆染变色!',
|
||
goal: '限 3 笔不交叉,左右双蚁各自半途换色完成 6 区!',
|
||
ruleTag: '双蚁半途换色',
|
||
noCross: true,
|
||
maxDispatches: 3,
|
||
budget: 2040,
|
||
nests: [[176, 492], [424, 492]],
|
||
sections: ['g-gold-tl', 'g-gold-tr', 'g-rose-top', 'g-rose-mid', 'g-leaf-l', 'g-leaf-r'],
|
||
balls: [
|
||
[126, 404, 'white'], [114, 326, 'white'],
|
||
[474, 404, 'white'], [486, 326, 'white'],
|
||
[260, 444, 'green'], [340, 444, 'green'],
|
||
],
|
||
dyes: [
|
||
[112, 232, 'gold', 1],
|
||
[238, 134, 'rose', 1, true],
|
||
[488, 232, 'rose', 1],
|
||
[368, 198, 'gold', 1, true],
|
||
],
|
||
ponds: [[216, 376, 34, 18], [384, 376, 34, 18]],
|
||
stars: [1870, 2020],
|
||
demo: [
|
||
{ nest: 0, pts: [[260, 444], [340, 444], [300, 340], [164, 298], [300, 314], [436, 298]] },
|
||
{ nest: 0, pts: [[126, 404], [114, 326], [112, 232], [176, 174], [238, 134], [300, 124]] },
|
||
{ nest: 1, pts: [[474, 404], [486, 326], [488, 232], [382, 234], [300, 214], [368, 198], [424, 174]] },
|
||
],
|
||
},
|
||
{
|
||
id: 'sweet-peach-soda', chapter: 5, name: '蜜桃气泡饮', difficulty: '大师', motif: 'garden',
|
||
lesson: '上下对向双蚁巢 + 粗布狭口 + 反向针门,7 球垂直对穿互不交锋!',
|
||
goal: '限 4 笔不交叉避粗布过门,完成 7 处针位。',
|
||
ruleTag: '上下双巢7球',
|
||
noCross: true,
|
||
maxDispatches: 4,
|
||
budget: 1950,
|
||
nests: [[300, 524], [300, 72]],
|
||
sections: ['g-gold-tl', 'g-gold-tr', 'g-gold-ml', 'g-rose-top', 'g-rose-mid', 'g-leaf-l', 'g-leaf-r'],
|
||
balls: [
|
||
[182, 474, 'gold'], [114, 374, 'gold'], [418, 108, 'gold'],
|
||
[212, 102, 'rose'], [354, 112, 'rose'],
|
||
[414, 474, 'green'], [478, 376, 'green'],
|
||
],
|
||
roughZones: [[228, 396, 44, 22, 2.0], [372, 396, 44, 22, 2.0]],
|
||
gates: [[122, 220, -PI / 2], [300, 168, PI / 2]],
|
||
stars: [1830, 1950],
|
||
demo: [
|
||
{ nest: 0, pts: [[414, 474], [478, 376], [436, 298], [300, 316], [164, 298]] },
|
||
{ nest: 0, pts: [[182, 474], [114, 374], [122, 220], [176, 174], [224, 246]] },
|
||
{ nest: 1, pts: [[212, 102], [300, 124], [354, 112], [300, 168], [300, 214]] },
|
||
{ nest: 1, pts: [[418, 108], [462, 148], [424, 174]] },
|
||
],
|
||
},
|
||
{
|
||
id: 'sweet-matcha-breather', chapter: 5, name: '抹茶铜锣烧', difficulty: '休闲', motif: 'garden',
|
||
lesson: '【喘息关】终极三连战前的茶歇:左右侧巢配合单染缸轻松过关!',
|
||
goal: '利用左右侧巢与染缸,悠闲补齐 5 处甜点针位。',
|
||
ruleTag: '侧巢茶歇',
|
||
budget: 1750,
|
||
nests: [[96, 336], [504, 336]],
|
||
sections: ['g-gold-tl', 'g-gold-tr', 'g-rose-mid', 'g-leaf-l', 'g-leaf-r'],
|
||
balls: [
|
||
[118, 224, 'gold'], [482, 224, 'gold'],
|
||
[300, 448, 'white'],
|
||
[164, 424, 'green'], [436, 424, 'green'],
|
||
],
|
||
dyes: [[300, 344, 'rose']],
|
||
ponds: [[224, 376, 34, 18], [376, 376, 34, 18]],
|
||
stars: [1480, 1600],
|
||
demo: [
|
||
{ nest: 0, pts: [[118, 224], [176, 174]] },
|
||
{ nest: 1, pts: [[482, 224], [424, 174]] },
|
||
{ nest: 0, pts: [[164, 424], [164, 298]] },
|
||
{ nest: 1, pts: [[436, 424], [436, 298]] },
|
||
{ nest: 0, pts: [[220, 456], [300, 448], [300, 344], [300, 214]] },
|
||
],
|
||
},
|
||
{
|
||
id: 'sweet-sewing-basket', chapter: 5, name: '手工针线篮', difficulty: '大师', motif: 'garden',
|
||
lesson: '【因果逆序 × 单染缸】3 蚁巢限 4 笔绣 7 区:先绣右金搭桥→顶粉解锁→绿叶清堵球→左白染金压轴!',
|
||
goal: '限 4 笔不交叉解开因果链并过门,完成 7 处针位。',
|
||
ruleTag: '7球因果锁',
|
||
solidBalls: true,
|
||
noCross: true,
|
||
maxDispatches: 4,
|
||
budget: 1900,
|
||
locks: { 'g-leaf-l': 'g-rose-mid', 'g-gold-tl': 'g-leaf-r' },
|
||
nests: [[148, 474], [452, 474], [300, 72]],
|
||
sections: ['g-gold-tl', 'g-gold-tr', 'g-gold-mr', 'g-rose-top', 'g-rose-mid', 'g-leaf-l', 'g-leaf-r'],
|
||
balls: [
|
||
[104, 326, 'white'], [484, 344, 'gold'], [492, 248, 'gold'],
|
||
[232, 96, 'rose'], [368, 96, 'rose'],
|
||
[196, 412, 'green'], [286, 384, 'green'],
|
||
],
|
||
dyes: [[114, 218, 'gold', 1]],
|
||
ponds: [[300, 168, 34, 16, 'g-gold-tr'], [364, 412, 38, 18]],
|
||
gates: [[300, 314, 0]],
|
||
stars: [1800, 1900],
|
||
demo: [
|
||
{ nest: 1, pts: [[484, 344], [492, 248], [424, 174], [376, 246]] },
|
||
{ nest: 2, pts: [[232, 96], [368, 96], [300, 124], [300, 168], [300, 214]] },
|
||
{ nest: 0, pts: [[196, 412], [286, 384], [164, 298], [300, 314], [436, 298]] },
|
||
{ nest: 0, pts: [[118, 404], [104, 326], [114, 218], [176, 174]] },
|
||
],
|
||
},
|
||
{
|
||
id: 'sweet-star-pocketwatch', chapter: 5, name: '星月怀表', difficulty: '大师', motif: 'garden',
|
||
lesson: '【四隅怀表阵】四角 4 蚁巢交错出击!8 球满载 + 双锁 + 双纽扣,如怀表齿轮精密咬合!',
|
||
goal: '限 4 笔不交叉四巢穿扣解锁,完成 8 处星月针位。',
|
||
ruleTag: '四巢怀表阵',
|
||
noCross: true,
|
||
maxDispatches: 4,
|
||
budget: 1770,
|
||
locks: { 'g-gold-ml': 'g-leaf-l', 'g-rose-mid': 'g-gold-tr' },
|
||
nests: [[176, 492], [424, 492], [116, 178], [484, 178]],
|
||
sections: ['g-gold-tl', 'g-gold-tr', 'g-gold-ml', 'g-gold-mr', 'g-rose-top', 'g-rose-mid', 'g-leaf-l', 'g-leaf-r'],
|
||
balls: [
|
||
[110, 256, 'gold'], [148, 218, 'gold'],
|
||
[490, 256, 'gold'], [452, 218, 'gold'],
|
||
[252, 82, 'rose'], [348, 82, 'rose'],
|
||
[246, 444, 'green'], [354, 444, 'green'],
|
||
],
|
||
ponds: [[230, 382, 34, 18], [370, 382, 34, 18]],
|
||
buttons: [[300, 488], [300, 168]],
|
||
stars: [1720, 1770],
|
||
demo: [
|
||
{ nest: 0, pts: [[246, 444], [300, 488], [354, 444], [436, 356], [436, 298], [300, 314], [164, 298]] },
|
||
{ nest: 2, pts: [[110, 256], [148, 218], [176, 174], [224, 246]] },
|
||
{ nest: 3, pts: [[490, 256], [452, 218], [424, 174], [376, 246]] },
|
||
{ nest: 2, pts: [[152, 108], [252, 82], [348, 82], [300, 124], [300, 168], [300, 214]] },
|
||
],
|
||
},
|
||
{
|
||
id: 'sweet-grand-tea-tower', chapter: 5, name: '下午茶宗师', difficulty: '终极Boss', motif: 'garden',
|
||
lesson: '60 关终极宗师!三巢 8 球满载 + 双半途换色 + 浮桥双锁 + 反向针门!',
|
||
goal: '限 4 笔不交叉双半途换色,绣成蚂蚁织画 60 关终极宗师大作!',
|
||
ruleTag: '60关宗师',
|
||
noCross: true,
|
||
maxDispatches: 4,
|
||
budget: 2140,
|
||
locks: { 'g-rose-top': 'g-gold-ml', 'g-gold-mr': 'g-leaf-r' },
|
||
nests: [[124, 456], [476, 456], [300, 72]],
|
||
sections: ['g-gold-tl', 'g-gold-tr', 'g-gold-ml', 'g-gold-mr', 'g-rose-top', 'g-rose-mid', 'g-leaf-l', 'g-leaf-r'],
|
||
balls: [
|
||
[100, 356, 'white'], [102, 260, 'white'],
|
||
[498, 356, 'white'], [498, 260, 'white'],
|
||
[236, 92, 'rose'], [364, 92, 'rose'],
|
||
[226, 466, 'green'], [374, 466, 'green'],
|
||
],
|
||
dyes: [
|
||
[118, 192, 'gold', 1],
|
||
[482, 192, 'gold', 1],
|
||
[372, 134, 'gold', 1, true],
|
||
[338, 228, 'rose', 1, true],
|
||
],
|
||
ponds: [[436, 224, 30, 16, 'g-leaf-l'], [300, 404, 48, 20]],
|
||
gates: [[300, 314, PI]],
|
||
stars: [2090, 2140],
|
||
demo: [
|
||
{ nest: 0, pts: [[226, 466], [300, 488], [374, 466], [436, 366], [436, 298], [300, 314], [164, 298]] },
|
||
{ nest: 0, pts: [[100, 356], [102, 260], [118, 192], [176, 174], [224, 246]] },
|
||
{ nest: 2, pts: [[236, 92], [364, 92], [300, 124], [372, 134], [424, 174]] },
|
||
{ nest: 1, pts: [[498, 356], [498, 260], [482, 192], [436, 224], [376, 246], [338, 228], [300, 214]] },
|
||
],
|
||
},
|
||
];
|
||
|
||
export const LEVELS: LevelDef[] = RAW_LAYOUTS.map(raw => {
|
||
const motif: MotifId = raw.motif ?? 'sunflower';
|
||
const nests: Point2D[] = (raw.nests ?? [[NEST.x, NEST.y]]).map(([x, y]) => ({ x, y }));
|
||
const targets: SectionDef[] = raw.customTargets
|
||
? raw.customTargets.map(([id, x, y, rx, ry, color]) => ({ id, x, y, rx, ry, color }))
|
||
: (raw.sections ?? []).map(id => {
|
||
const found = MOTIFS[motif].find(s => s.id === id);
|
||
if (!found) throw new Error(`Unknown section "${id}" in motif "${motif}"`);
|
||
return found;
|
||
});
|
||
return {
|
||
id: raw.id,
|
||
recordId: raw.recordId,
|
||
chapter: raw.chapter,
|
||
name: raw.name,
|
||
difficulty: raw.difficulty,
|
||
lesson: raw.lesson,
|
||
goal: raw.goal,
|
||
ruleTag: raw.ruleTag,
|
||
motif,
|
||
artworkImage: raw.artworkImage,
|
||
budget: raw.budget,
|
||
maxDispatches: raw.maxDispatches,
|
||
noCross: raw.noCross,
|
||
solidBalls: raw.solidBalls,
|
||
locks: raw.locks,
|
||
nests,
|
||
targets,
|
||
balls: raw.balls.map(([x, y, color], index) => ({ id: index, x, y, color })),
|
||
ponds: (raw.ponds ?? []).map(([x, y, rx, ry, bridgeSectionId]) => ({ x, y, rx, ry, bridgeSectionId })),
|
||
spools: (raw.spools ?? []).map(([x, y, bonus], index) => ({ id: index, x, y, bonus })),
|
||
buttons: (raw.buttons ?? []).map(([x, y], index) => ({ id: index, x, y })),
|
||
dyes: (raw.dyes ?? []).map(([x, y, color, uses, override], index) => ({ id: index, x, y, color, uses, override })),
|
||
gates: (raw.gates ?? []).map(([x, y, angle], index) => ({ id: index, x, y, angle })),
|
||
roughZones: (raw.roughZones ?? []).map(([x, y, rx, ry, factor]) => ({ x, y, rx, ry, factor })),
|
||
threeStar: raw.stars[0],
|
||
twoStar: raw.stars[1],
|
||
demo: raw.demo.map(item => {
|
||
if (Array.isArray(item)) {
|
||
return [[nests[0].x, nests[0].y] as [number, number], ...item];
|
||
}
|
||
const n = nests[item.nest] ?? nests[0];
|
||
return [[n.x, n.y] as [number, number], ...item.pts];
|
||
}),
|
||
};
|
||
});
|
||
|
||
export function recordKey(level: LevelDef): string {
|
||
return level.recordId ?? level.id;
|
||
}
|
||
|
||
export function formatLength(value: number): string {
|
||
return (value / 100).toFixed(1) + ' cm';
|
||
}
|
||
|
||
export function formatShort(value: number): string {
|
||
return (value / 100).toFixed(1);
|
||
}
|