> 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/shroom-zoom.md).

# 蘑菇冲刺

平台跳跃玩法，带有由触发器激活的弹跳射线检测、玩家冲量，以及会跟随或环绕其拥有者的可收集精灵图。

![蘑菇冲刺预览](https://2460066822-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-df150ee3c17dd5d82f9985e8215af6cb57b11e79%2FshroomZoom-preview.webp?alt=media)

一款平台跳跃与计时挑战游戏，包含二段跳、滑翔、收集品和探索元素。

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

## 项目信息

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

[查看上游源代码](https://github.com/CanessaDCL/dcl-shroomzoom)

**许可证：** 此目录中未标明许可证。重用前，请查阅上游代码库并咨询维护者，确认适用条款。

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

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

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

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

## 主要功能

* 多人游戏服务器
* 为弹跳蘑菇施加物理冲量

## 探索代码

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

### 将附近的触发器与精确的接触检测结合起来

BounceTrigger 回调会在玩家进入触发器时启用射线检测，并在玩家离开时移除该系统。射线检测和弹跳逻辑会检查向下命中是否对应已配置的蘑菇实体，并在玩家靠近蘑菇表面时对其施加冲量。

**项目背景：** 请结合 BounceZoom 或 BounceRegular 阅读，了解场景的触发器尺寸和冲量设置。

**源代码参考：**

* [BounceTrigger 回调](https://github.com/CanessaDCL/dcl-shroomzoom/blob/042968e3c13b5d1093d2922d5713570ad4cb0284/src/bounce/class.bounce.ts#L75-L101)
* [射线检测和弹跳逻辑](https://github.com/CanessaDCL/dcl-shroomzoom/blob/042968e3c13b5d1093d2922d5713570ad4cb0284/src/bounce/class.bounce.ts#L103-L164)

### 将收集到的物品变成一支会动的随行队伍

跟随者目标辅助函数会计算玩家周围的偏移量和环绕轨道上的位置。followSpritesSystem 会将每个精灵插值移动到其目标位置；收集全部物品后，精灵会转为环绕玩家，并朝向其所属玩家。

**项目背景：** 场景中的收集品集合、跟随者实体，以及每位玩家各自的环绕起始时间戳，共同为这一视觉效果提供状态数据。

**源代码参考：**

* [跟随者目标辅助函数](https://github.com/CanessaDCL/dcl-shroomzoom/blob/042968e3c13b5d1093d2922d5713570ad4cb0284/src/spriteFollowers.ts#L400-L437)
* [followSpritesSystem](https://github.com/CanessaDCL/dcl-shroomzoom/blob/042968e3c13b5d1093d2922d5713570ad4cb0284/src/spriteFollowers.ts#L678-L706)


---

# 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/shroom-zoom.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.
