> 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/alien-scrapyard.md).

# 外星废料场

通过数据定义的建造谜题和由阶段驱动的电影镜头进行协作建造回合。

![Alien Scrapyard 预览](https://2460066822-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-71a3b5e6e9c9e4d8c45ef0b7e75535fe4a4705e6%2FalienScrapyard-preview.webp?alt=media)

这是一款限时合作建造游戏，玩家需要协力组装外星科技，解锁新分数和造型。

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

## 项目信息

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

[查看上游源代码](https://github.com/procesista/Alienscrap)

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

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

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

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

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

## 探索代码

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

### 将建造谜题表示为数据

插槽定义会描述每个部件所需的零件、位置、缩放比例和标签。模板辅助函数会重新居中并缩放布局、提供一系列谜题，并查找单个插槽。这有助于了解如何通过数据添加新的构造。

**项目背景：** 请结合共享的场景中心和部件类型常量阅读。

**源代码参考：**

* [插槽定义](https://github.com/procesista/Alienscrap/blob/be0b1b93580452f9cc778dc36554fe9354ee0ea2/src/shared/templates.ts#L3-L39)
* [模板辅助函数](https://github.com/procesista/Alienscrap/blob/be0b1b93580452f9cc778dc36554fe9354ee0ea2/src/shared/templates.ts#L140-L184)

### 让电影镜头与回合状态联动

电影镜头系统会在倒计时和演出阶段启用镜头、处理中途加入回合的玩家，并在快照过期时释放摄像机。最后一次更新会先处理回合变更和经过时间导致的退出，再沿镜头轨迹移动摄像机。

**项目背景：** 此示例依赖客户端快照、共享的计时常量和 HUD 可见性辅助函数。

**源代码参考：**

* [电影镜头系统](https://github.com/procesista/Alienscrap/blob/be0b1b93580452f9cc778dc36554fe9354ee0ea2/src/client/cinematic.ts#L93-L129)
* [最后一次更新](https://github.com/procesista/Alienscrap/blob/be0b1b93580452f9cc778dc36554fe9354ee0ea2/src/client/cinematic.ts#L158-L176)


---

# 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/alien-scrapyard.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.
