Files
wechat-minigame/CLAUDE.md
manpengan a00eaadfef init: 微信小游戏项目初始化
基础工程骨架:game.js 入口、Canvas 渲染、DevTools 项目配置。
包含 CLAUDE.md / AGENTS.md 及 KB 知识库接入。

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 21:56:45 +08:00

37 lines
1.1 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 -->
## 项目速览
- **项目**wechat-minigame — 微信小游戏
- **阶段**:初始化
- **上次结论**:项目初始化
- **下一步**:与 Codex 讨论游戏类型、玩法设计和技术方案
- **关键约束**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/ # 音频素材
```
## 平台约束
- `require()` 不支持 JSON数据用 JS module 包装
- 首包 ≤ 4MB分包总计 ≤ 20MB
- 不支持 DOM/BOM仅微信 API 子集
- Canvas 是全局单例,通过 `wx.createCanvas()` 获取