> For the complete documentation index, see [llms.txt](https://docs.decentraland.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.decentraland.org/creator/content-creator-zh/jiao-cheng-yu-shi-li/published-games/sky-chaser.md).

# 追云者

具有持久化排行榜、复用投射物以及从回合状态种子生成拾取物位置的多人接包回合。

![Sky Chaser 预览](https://2460066822-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-4a25b9a6b7b82b8eab689d0280ef01bbb5d8683e%2FskyChaser-preview.webp?alt=media)

一款多人游戏，玩家在每一回合中竞相捕捉逃逸的包裹。场景包含每周排行榜和总排行榜。

* [在 Decentraland 上游玩](https://decentraland.org/jump?realm=skychaser.dcl.eth)

## 项目信息

**维护者：** 社区 · stom66

[查看上游源代码](https://github.com/stom66/dcl-sky-chaser)

**许可证：** [CC BY-NC-ND 4.0](https://github.com/stom66/dcl-sky-chaser/blob/main/LICENSE.md)。重复使用前请先查看上游条款；代码和素材可能适用不同条款。

{% hint style="warning" %}
**社区维护的代码——使用前请先审查**

此社区项目由 Decentraland Foundation 和 DAO 的 GitHub 组织之外的人员维护。其源代码和线上部署可能独立发生变化。

此项目被收录于本目录，并不代表它已通过安全审计或保证其安全性。运行或复用前，请审查代码、依赖项和安装脚本。

[报告目录相关问题](https://github.com/decentraland/docs/issues/new)。如怀疑存在漏洞，请遵循上游项目的安全政策。请勿在公开议题中包含漏洞利用细节或凭据。
{% endhint %}

## 主要功能

* 多人游戏服务器
* 通过同步的 Mulberry32 随机数生成器实现同步游戏玩法
* 用于排行榜的存储 API
* 调整玩家移动方式，并为加速器／蹦床／爆炸添加物理力
* 粒子系统（加速轨迹、爆炸、拾取物）

## 探索代码

这些链接指向特定的源代码快照，因此随着上游持续开发，这些说明仍然有用。它们是学习参考资料，并非安全评估。

### 在游戏过程中重复使用投射物实体

`fireProjectile` 和 `getIdleProjectile` 会重复使用未激活的投射物；对象池耗尽时创建新的投射物，并且只更新处于激活状态的投射物。

**项目背景：** 遵循项目中的 `Projectile` 类和事件处理程序，处理移动、碰撞响应以及回合结束时的清理。

**源代码参考：**

* [`fireProjectile` 和 `getIdleProjectile`](https://github.com/stom66/dcl-sky-chaser/blob/e546854d2a2634ca5e28635c8b9be124a173f6dc/dcl/src/client/projectileManager.ts#L76-L124)

### 根据回合状态设定拾取物的位置

`onGameStart` 和 `getRandomPosition` 使用回合开始时间初始化项目的随机数生成器，然后采样拾取物的距离和高度。

**项目背景：** 同时查看拾取物配置和组件存储：移动端限制以及后续拾取物的活动会影响随机调用序列，因此仅使用共享种子并不能保证每个客户端生成完全相同的布局。

**源代码参考：**

* [`onGameStart` 和 `getRandomPosition`](https://github.com/stom66/dcl-sky-chaser/blob/e546854d2a2634ca5e28635c8b9be124a173f6dc/dcl/src/client/spawners/pickupSpawner.ts#L115-L164)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.decentraland.org/creator/content-creator-zh/jiao-cheng-yu-shi-li/published-games/sky-chaser.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
