feat(desktop): add DIY desktop pet Diggy - #34
Open
akasoeiji wants to merge 2 commits into
Open
Conversation
Co-authored-by: monkeycode-ai <monkeycode-ai@chaitin.com>
Collaborator
|
图片资源记得 压一轮用 tinypng 嘿嘿 |
Contributor
|
xd,你这个图片形象做的高清一点啊,手里拿的是啥,图片形象都是糊了的 |
Co-authored-by: monkeycode-ai <monkeycode-ai@chaitin.com>
Author
已压缩 |
Author
大金矿已更新 |
Collaborator
Collaborator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Co-authored-by: monkeycode-ai monkeycode-ai@chaitin.com
🏷️ 变动类型
🖥️ 影响范围
🔗 关联 Issue
无对应 issue。来源:官方征集 DIY 桌面宠物的社区活动,本 PR 提交一只自制宠物形象「Diggy」。
💡 改动说明
背景:桌面宠物目前只有 3 个官方 IP(Hawking / Yoyo / Click),DIY 宠物活动征集新伙伴。
方案:新增矿工猴「Diggy」——戴黄色矿工帽(帽灯探照),主色掘金蓝
#1e80ff,跑动时抱着金矿块,呼应「掘金挖宝」。素材用 SVG 程序化绘制每帧后由 sharp 合成 atlas,完全对齐现有 v2 精灵图规范(8×11 网格、192×208/帧、WebP、按需加载):改动点:
apps/desktop/src/renderer/assets/pets/diggy/:spritesheet.webp + contact-sheet.png + pet.jsonapps/desktop/src/renderer/pets.ts:注册定义与辉光配色,SPRITESHEET_LOADERS增加动态 import(保持未选中宠物不加载的策略)apps/desktop/src/main/DesktopPet.ts:选择校验白名单加入diggyREADME.md:宠物表新增 Diggy 列(见新增的assets/diggy.png)设置面板的宠物选择器读取
DESKTOP_PETS自动展示新选项,无需额外 UI 改动。验证:
pnpm build全量通过,diggy 精灵图正确进入 renderer 产物并生成独立按需 chunk;tsc --noEmit仅剩src/main/index.ts存量app.dock报错(改动前已存在,与本次无关)。📝 Changelog
@juejin-opensource/jusage-desktop☑️ 自查清单
<type>/<end>/<short-desc>apps/desktop/src/renderer,packages/dashboard侧无此模块,无需同步)pnpm changesetpnpm build通过