---
name: desert.aiimage
description: 沙漠背景图封包 - 金色沙丘/干旱场景，适合停车逃脱、箭头逃脱类游戏的暖色背景
triggers: 沙漠,desert,沙丘,sand,背景,background,黄色,yellow,暖色,warm,干旱
---

# desert.aiimage

沙漠主题背景图封包。适合逃脱益智类游戏，营造紧张干旱的视觉氛围。

## Recipe

- **基础 prompt**：`vast desert landscape, golden sand dunes, clear blue sky, casual mobile game style, flat design, warm colors`
- **宽高比**：9:16
- **风格**：cartoon / flat design
- **可 fork 变体**：
  - 夜间沙漠：`desert at night, starry sky, moonlit sand dunes, cool blue tones`
  - 绿洲：`desert oasis, palm trees, turquoise water, lush contrast`
  - 沙暴：`sandstorm, orange sky, dramatic visibility, tension`

**生成步骤：**
1. 确认尺寸约束（1080×1920 PNG）
2. 调用图像生成 API
3. 验证并写入 `background.png`，更新 manifest

## Result

- **产物文件**：`background.png`
- **格式**：PNG，最小 1080×1920

## Binding

- **Binding Role**：`backgroundTexture`
- **挂载目标**：`scene://entities/Background/element/textureAsset`
- **引用类型**：`texture-asset-reference`

## 生成方式

Platform Skill: `playcraft-image-generation`

```bash
# 1. 生成图片（参考 ref/ 中的参考图）
playcraft tools generate-image \
     --prompt "vast desert landscape, golden sand dunes, clear blue sky, casual mobile game style, flat design, warm colors" \
     --aspect-ratio 9:16 \
     --image-model google/imagen-3.0-generate-002 \
     --output ta-workspace/raw.png

# 2. 后处理（去白底 + 格式转换）
playcraft image remove-background --input ta-workspace/raw.png --output ta-workspace/trimmed.png
playcraft image convert --input ta-workspace/trimmed.png --output ta-workspace/background.webp --quality 85

# 3. 将产物写入 sandbox 对应路径（见 binding.target）
```
## Skill Definition

tools:
  - bash
  - write
  - read
prompt_extension: |
  You are generating a desert background image for a mobile game.
  Follow the Recipe to generate the image. Verify output constraints, then apply Binding.
