Files
2025-10-20 09:22:47 +08:00

40 lines
1.1 KiB
Markdown
Raw Permalink 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.

# 项目概述
这是一个基于 Cocos Creator 3.8.7 的 2D 平面游戏项目,主要玩法是通过 TiledMap 进行寻路打怪。
## 核心玩法
- 玩家在 2D 瓦片地图上移动
- 使用 A* 寻路算法进行路径规划
- 与怪物进行战斗,通过比较生命值决定胜负
- 收集道具升级角色
- 相机跟随玩家移动
## 技术特点
- 使用 Cocos Creator 3.8.7 引擎
- TypeScript 开发
- TiledMap 地图系统
- A* 寻路算法
- 2D 物理碰撞系统
- 动画系统(支持角色升级后的动画切换)
- 音效系统
- UI 弹窗系统
## 项目结构
- `assets/scripts/` - 核心游戏逻辑
- `assets/scenes/` - 场景文件main.scene, start.scene
- `assets/bundle1/` - 资源分包(动画、图片、音乐)
- `assets/resources/` - 游戏资源
- `settings/` - 引擎和项目配置
## 主要组件
- PlayerController - 玩家控制器
- TiledMapPathfinder - 瓦片地图寻路
- AStarPathfinding - A*寻路算法
- CameraFollow - 相机跟随
- Shadow2D - 2D阴影效果
- Manager - 游戏管理器
- Start - 启动场景管理