---
name: fruit_tile.aiimage
description: 水果牌面贴图组封包 - 卡通水果精灵图集，适合三消/对对碰/连线消除的牌面素材
triggers: 水果,fruit,牌面,tile,贴图,三消,match3,消除,苹果,草莓,葡萄
---

# fruit_tile.aiimage

水果主题牌面贴图组封包。提供一套卡通风格水果精灵图，用于三消、对对碰、连线消除等棋盘类玩法的牌面。

## Recipe

- **基础 prompt**：`cute cartoon fruit icons sprite sheet, apple strawberry grape orange lemon watermelon cherry, flat design, vibrant colors, white background, game assets`
- **宽高比**：1:1（正方形精灵图）
- **风格**：cartoon / flat design
- **需包含的水果种类**：苹果、草莓、葡萄、橙子、柠檬、西瓜、樱桃（共 7 种）
- **可 fork 变体**：
  - 蔬菜替换：用蔬菜图标替换水果
  - 暗黑风格：深色背景，光泽质感
  - 3D 风格：立体渲染水果图标

**生成步骤：**
1. 确认棋盘牌面所需图标种类和尺寸（每格 ≥ 64×64px）
2. 生成精灵图集（512×512 或 1024×512）
3. 写入 `tiles.png`，更新 manifest

## Result

- **产物文件**：`tiles.png`
- **格式**：PNG（透明背景），最小 512×512
- **图标排列**：水平排列 7 种，每种 1 帧（可扩展动画帧）

## Binding

- **Binding Role**：`tileTextureSet`
- **挂载目标**：`scene://entities/Board/tileRenderer/tileAtlas`
- **引用类型**：`sprite-atlas-reference`
- **约束**：format=png，minWidth=512

## 生成方式

Platform Skill: `playcraft-image-generation`

```bash
# 1. 生成图片（参考 ref/ 中的参考图）
playcraft tools generate-image \
     --prompt "cute cartoon fruit icons sprite sheet, apple strawberry grape orange lemon watermelon cherry, flat design, vibrant colors, white background, game assets" \
     --aspect-ratio 1:1 \
     --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/tiles.webp --quality 85

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

tools:
  - bash
  - write
  - read
prompt_extension: |
  You are generating a fruit tile sprite sheet for a match-3 casual game.
  Follow the Recipe to generate the sprite sheet with the specified fruit icons.
  Ensure the output is a proper sprite atlas that can be used as a tile set in the board renderer.
  After generation, apply the Binding to wire the atlas into the scene's tileRenderer.
