You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.6 KiB
38 lines
1.6 KiB
|
3 weeks ago
|
# bilibili小游戏构建插件
|
||
|
|
|
||
|
|
通过Cocos Creator 编辑器,导入扩展插件以后,即可使用。
|
||
|
|
|
||
|
|
## 插件开发流程
|
||
|
|
|
||
|
|
参考官方文档:
|
||
|
|
https://docs.cocos.com/creator/manual/zh/editor/extension/extension-manager.html
|
||
|
|
|
||
|
|
## 插件使用流程
|
||
|
|
|
||
|
|
1. 安装依赖
|
||
|
|
|
||
|
|
```bash
|
||
|
|
npm install
|
||
|
|
```
|
||
|
|
|
||
|
|
2. 编译构建
|
||
|
|
|
||
|
|
```bash
|
||
|
|
npm run build
|
||
|
|
```
|
||
|
|
3. 构建后,将整个目录压缩成一个zip
|
||
|
|
<img src="https://i0.hdslb.com/bfs/activity-plat/static/20240201/7b925ef85373a2241dca64f5ae8d938b/2keNAFYWXp.png">
|
||
|
|
|
||
|
|
4. 通过Cocos Creator编辑器,扩展插件能力,导入刚打包的zip文件
|
||
|
|
<img src="https://i0.hdslb.com/bfs/activity-plat/static/20240201/7b925ef85373a2241dca64f5ae8d938b/jDfGJD6GuJ.png">
|
||
|
|
<img src="https://i0.hdslb.com/bfs/activity-plat/static/20240201/7b925ef85373a2241dca64f5ae8d938b/v38gl15aNa.png">
|
||
|
|
<img src="https://i0.hdslb.com/bfs/activity-plat/static/20240201/7b925ef85373a2241dca64f5ae8d938b/RESKJddgbo.png">
|
||
|
|
|
||
|
|
5. 导入插件以后,在构建面板中,选择微信小游戏构建,面板的最下方有bilibili小游戏的构建选项
|
||
|
|
<img src="https://i0.hdslb.com/bfs/activity-plat/static/20240201/7b925ef85373a2241dca64f5ae8d938b/vocO9AldvC.png">
|
||
|
|
|
||
|
|
6. 点击构建以后,构建目录中,会生成biligame目录,通过bilibili小游戏开发工具打开即可
|
||
|
|
<img src="https://i0.hdslb.com/bfs/activity-plat/static/20240201/7b925ef85373a2241dca64f5ae8d938b/LAEIpoVV8x.png">
|
||
|
|
<img src="https://i0.hdslb.com/bfs/activity-plat/static/20240201/7b925ef85373a2241dca64f5ae8d938b/uwVPj9TaHy.png">
|
||
|
|
<img src="https://i0.hdslb.com/bfs/activity-plat/static/20240201/7b925ef85373a2241dca64f5ae8d938b/bCg7rKfbIZ.png">
|