Files
wechat-minigame/CLAUDE.md
2026-03-28 23:02:45 +08:00

39 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 城市抓猫猫wechat-minigame
<!-- BRIEFING: auto-maintained, do not edit manually -->
## 项目速览
- **项目**:城市抓猫猫 — 城市主题堆叠三消微信小游戏
- **阶段**Phase 1 立项 + Phase 4 技术方案完成5 项决策待锁定
- **上次结论**5 份文档完成charter/game-design/content-pipeline/city-content-system/difficulty-generatorCodex review 修复完毕
- **下一步**:锁定 5 项待决策 → Codex 落代码骨架js/content/* + 关卡生成器)→ 进入开发
- **开发流程**10 阶段门禁制(~/pro/kb/workflows/standard-dev-process/SKILL.md
- **关键约束**Canvas 渲染 | 首包 4MB | 无 DOM/BOM | 60fps | 纯手写框架无引擎
- **KB 指针**~/pro/kb/projects/wechat-minigame/
<!-- END BRIEFING -->
## 开发环境
- 平台:微信小游戏(非小程序)
- 渲染Canvas 2D / WebGL
- 调试工具:微信开发者工具
- 无 npm/build/test CLI在 DevTools 中模拟器验证
## 项目结构
```
game.js # 入口
game.json # 全局配置
project.config.json # DevTools 项目配置
js/ # 游戏逻辑
images/ # 图片素材
audio/ # 音频素材
docs/ # 阶段文档00-10
```
## 平台约束
- `require()` 不支持 JSON数据用 JS module 包装
- 首包 ≤ 4MB分包总计 ≤ 20MB
- 不支持 DOM/BOM仅微信 API 子集
- Canvas 是全局单例,通过 `wx.createCanvas()` 获取