# h5-game **Repository Path**: yonh/h5-game ## Basic Information - **Project Name**: h5-game - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-04-20 - **Last Updated**: 2026-04-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 放置肉鸽 H5 一款基于 Phaser 3 + Vite + TypeScript 的放置类 Roguelike H5 游戏。 ## 环境要求 - Node.js >= 18 - npm >= 9 ## 快速开始 ```bash # 安装依赖 npm install # 启动开发服务器 npm run dev # 构建生产版本 npm run build # 预览生产构建 npm run preview # 类型检查 npm run typecheck ``` 开发服务器启动后,浏览器访问终端输出的地址(默认 http://localhost:5173)。 ## 项目结构 ``` src/ ├── main.ts # 入口,Phaser 游戏配置 ├── config.ts # 游戏全局配置 ├── scenes/ # 场景(主菜单、战斗、地图等) ├── entities/ # 实体(角色、敌人、道具等) ├── systems/ # 系统(战斗、随机、养成等) ├── data/ # 静态数据(技能、装备表等) └── utils/ # 工具函数 ``` ## 技术栈 - **Phaser 3** — 游戏引擎 - **Vite** — 构建工具 - **TypeScript** — 开发语言