No description
  • GDScript 98.7%
  • Python 1.3%
Find a file
2026-07-04 20:14:31 +08:00
godot feat: 右键菜单新增AI对话功能,接入通义千问大模型,支持流式回复 2026-06-23 21:18:36 +08:00
images Initial commit 2026-06-22 11:43:39 +08:00
new-images Initial commit 2026-06-22 11:43:39 +08:00
.gitattributes Initial commit 2026-06-22 11:43:39 +08:00
.gitignore Initial commit 2026-06-22 11:43:39 +08:00
check_orphaned.py Initial commit 2026-06-22 11:43:39 +08:00
Desktop-Pet-v1.0.5.exe docs: 精简README并添加Windows可执行文件 2026-07-01 10:06:50 +08:00
export_presets.cfg docs: 精简README并添加Windows可执行文件 2026-07-01 10:06:50 +08:00
LICENSE Initial commit 2026-06-22 11:43:39 +08:00
main.gd Initial commit 2026-06-22 11:43:39 +08:00
main.gd.uid Initial commit 2026-06-22 11:43:39 +08:00
Main.tscn feat: 右键菜单新增AI对话功能,接入通义千问大模型,支持流式回复 2026-06-23 21:18:36 +08:00
player.gd feat: UI 2026-06-28 18:59:04 +08:00
player.gd.uid Initial commit 2026-06-22 11:43:39 +08:00
project.godot Initial commit 2026-06-22 11:43:39 +08:00
PROJECT_ANALYSIS.md feat: UI 2026-06-28 18:59:04 +08:00
PROMPTS.md Initial commit 2026-06-22 11:43:39 +08:00
README.md 更新 README.md 2026-07-04 20:14:31 +08:00
SPEC.md docs: 添加 SPEC.md 需求文档 2026-06-30 19:53:41 +08:00

AI桌宠

一个用 Godot Engine 4.6GDScript 制作的桌面宠物。桌宠会在桌面上行走、吸附屏幕边缘,支持拖拽抛掷,还能通过右键菜单开启 AI 对话、喝水提醒和下班提醒。

下载

功能

  • 桌面置顶,自动在任务栏上方行走
  • 碰到屏幕边缘随机吸附到左侧、右侧或顶部
  • 左键拖拽,松开后按速度抛掷
  • 右键打开功能菜单,可进行以下操作:
功能 说明
暂停/恢复跑动 开关宠物随机移动
AI 对话 与大模型对话,支持流式回复
喝水提醒 定时弹出气泡提醒,记录喝水量
关闭菜单 关闭功能菜单
退出 退出程序

操作方式

操作 效果
左键拖拽 抓住宠物移动
拖拽后松开 按速度抛掷宠物
右键点击宠物 打开功能菜单
任务栏关闭窗口 退出程序

开发运行

  1. 安装 Godot Engine 4.6
  2. 导入项目 project.godot
  3. F5 运行

项目结构

├── Main.tscn          # 主场景动画、计时器、UI
├── player.gd          # 核心逻辑移动、吸附、菜单、AI对话
├── main.gd            # 摄像机跟随
├── images/            # 精灵资源
├── export_presets.cfg # 导出预设
└── README.md

导出

Godot 中 Project -> Export,选择 Windows Desktop 导出即可。