feat: refine wooden fish runtime generation
This commit is contained in:
@@ -66,6 +66,7 @@ export type MiniGameDraftGenerationPhase =
|
||||
| 'jump-hop-write-draft'
|
||||
| 'wooden-fish-draft'
|
||||
| 'wooden-fish-hit-object'
|
||||
| 'wooden-fish-background'
|
||||
| 'wooden-fish-hit-sound'
|
||||
| 'wooden-fish-write-draft'
|
||||
| 'puzzle-images'
|
||||
@@ -327,25 +328,31 @@ const WOODEN_FISH_STEPS = [
|
||||
id: 'wooden-fish-draft',
|
||||
label: '整理玩法草稿',
|
||||
detail: '保存作品信息、敲击物、音效和飘字配置。',
|
||||
weight: 10,
|
||||
weight: 8,
|
||||
},
|
||||
{
|
||||
id: 'wooden-fish-hit-object',
|
||||
label: '生成敲击物图案',
|
||||
detail: '使用 image2 生成最终运行态敲击物图案。',
|
||||
weight: 48,
|
||||
weight: 34,
|
||||
},
|
||||
{
|
||||
id: 'wooden-fish-background',
|
||||
label: '生成背景环境图',
|
||||
detail: '使用 image2 生成敲击背景环境图。',
|
||||
weight: 34,
|
||||
},
|
||||
{
|
||||
id: 'wooden-fish-hit-sound',
|
||||
label: '准备敲击音效',
|
||||
detail: '生成或写回短促敲击音效资产。',
|
||||
weight: 30,
|
||||
weight: 16,
|
||||
},
|
||||
{
|
||||
id: 'wooden-fish-write-draft',
|
||||
label: '写入正式草稿',
|
||||
detail: '保存图案、音效、飘字和封面摘要。',
|
||||
weight: 12,
|
||||
detail: '保存图案、背景、音效、飘字和封面摘要。',
|
||||
weight: 8,
|
||||
},
|
||||
] as const satisfies ReadonlyArray<MiniGameStepDefinition>;
|
||||
|
||||
@@ -530,9 +537,12 @@ function resolveWoodenFishPhaseByElapsedMs(
|
||||
if (elapsedMs >= 270_000) {
|
||||
return 'wooden-fish-write-draft';
|
||||
}
|
||||
if (elapsedMs >= 185_000) {
|
||||
if (elapsedMs >= 240_000) {
|
||||
return 'wooden-fish-hit-sound';
|
||||
}
|
||||
if (elapsedMs >= 120_000) {
|
||||
return 'wooden-fish-background';
|
||||
}
|
||||
if (elapsedMs >= 12_000) {
|
||||
return 'wooden-fish-hit-object';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user