Skip to content

Commit

Permalink
add bytedance pc mini games
Browse files Browse the repository at this point in the history
  • Loading branch information
bofeng-song committed Nov 12, 2024
1 parent 3ec59b9 commit 3f2625c
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
28 changes: 28 additions & 0 deletions versions/3.8/en/editor/publish/publish-pc-bytedance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Integrating Douyin PC Mini Games

Douyin PC Mini Games allow you to play Douyin mini-games directly through the Streaming Companion. PC mini-games retain most features available on mobile but currently do not support the following: `keyDown`/`keyUp` keyboard events, screen recording, recording, ads, sharing, favorites, group chat, sidebar, payments, or capabilities that depend heavily on mobile device hardware, such as compass, accelerometer, camera, and microphone.

Cocos Creator supports publishing games to Douyin PC Mini Games. Let’s look at how to publish your game to the Douyin PC mini-game platform through Cocos Creator.

## Using Cocos Creator to Integrate Douyin PC Mini Games

### Preparation

Download and install the latest version of the [Douyin Streaming Companion for PC](https://streamingtool.douyin.com/).

### Publishing Process

1. Follow the process in [Publishing to Douyin Mini Games](./publish-bytedance-mini-game.md) to publish the project to Douyin Mini Games.
2. Douyin PC Mini Games require code to run in strict mode to ensure proper functionality. Compile the code in strict mode and resolve any issues arising from strict mode to avoid runtime errors.
3. Ensure the game runs smoothly in the IDE before debugging on the Streaming Companion.

## FAQs

**Q**: Does Douyin PC Mini Games support Mac systems?
**A**: Not yet.

## Related Links

- [Douyin PC Mini Games Integration Guide](https://developer.open-douyin.com/docs/resource/zh-CN/mini-game/develop/guide/open-ability/pc-game/tutorial)
- [Douyin PC Download](https://streamingtool.douyin.com/)
- [Douyin Developer Tools - IDE Download](https://developer.open-douyin.com/docs/resource/zh-CN/mini-game/develop/developer-instrument/developer-instrument-update-and-download)
28 changes: 28 additions & 0 deletions versions/3.8/zh/editor/publish/publish-pc-bytedance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 接入抖音 PC 小游戏

抖音 PC 小游戏即支持在​ 直播伴侣 打开抖音小游戏。PC 小游戏将具备移动端的大部分能力,暂时不支持以下功能:keyDown/keyUp 键盘事件、录屏/录音​、​广告​、转发分享、收藏、群聊、侧边栏、支付、以及强依赖移动端设备的能力,如罗盘、加速度计、相机、麦克风等​。

Cocos Creator 支持将游戏发布到抖音 PC 小游戏,下面我们来看看,如何通过 Cocos Creator 将游戏发布到抖音 PC 小游戏平台。

## 使用 Cocos Creator 接入抖音 PC 小游戏

### 准备工作

下载并安装最新版本的 [抖音直播伴侣 PC 版](https://streamingtool.douyin.com/)

### 发布流程

1. 参考 [发布到抖音小游戏](./publish-bytedance-mini-game.md) 的流程,将项目工程发布到抖音小游戏。
2. PC 端小游戏需要代码运行在严格模式才能保障正常运行,因此请将代码使用严格模式进行编译,并且修改因严格模式造成的问题,否则可能造成运行时报错。​
3. 在直播伴侣调试前先保证在 IDE 上能够正常运行

## 常见问题

Q:抖音 PC 小游戏支持 Mac 系统吗?<br>
A:暂时不可以。

## 相关链接

- [抖音 PC 小游戏接入指南](https://developer.open-douyin.com/docs/resource/zh-CN/mini-game/develop/guide/open-ability/pc-game/tutorial)
- [抖音 PC 版下载](https://streamingtool.douyin.com/)
- [抖音 开发者工具--IDE 下载](https://developer.open-douyin.com/docs/resource/zh-CN/mini-game/develop/developer-instrument/developer-instrument-update-and-download)

0 comments on commit 3f2625c

Please sign in to comment.