> 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/tutorials-and-examples/published-games/dead-surge.md).

# Dead Surge

Zombie survival with weapon progression, pooled reward text, and local enemy steering around other zombies and obstacles.

![Dead Surge preview](https://45449780-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-5446b11a043e078db26d258897a3c9242b0dcde5%2FdeadSurge-preview.webp?alt=media)

Zombie survival game with combat and weapon progression.

* [Play on Decentraland](https://decentraland.org/jump?realm=deadsurge.dcl.eth)

## Project information

**Maintained by:** Decentraland DAO

[View source](https://github.com/dcl-regenesislabs/dead-surge)

**License:** Not identified in this catalog. Consult the upstream repository and maintainer for applicable terms before reuse.

## Explore the code

These links point to a specific source snapshot so the explanations remain useful as upstream development continues. They are learning references, not a security assessment.

### Reuse entities for floating reward text

`spawnZcRewardTextAtPosition` and its pool initializer cycle through a fixed set of text entities. The `rewardTextSystem` makes them rise, face the camera, and fade before hiding them for reuse.

**Project context:** Read the scene's `RewardTextComponent` and game-time updates with these functions to understand their lifetime tracking.

**Source references:**

* [`spawnZcRewardTextAtPosition` and its pool initializer](https://github.com/dcl-regenesislabs/dead-surge/blob/4e967ba0590e0cdf7d6550ebbf56ea3b246a36dd/src/zombie.ts#L592-L640)
* [`rewardTextSystem`](https://github.com/dcl-regenesislabs/dead-surge/blob/4e967ba0590e0cdf7d6550ebbf56ea3b246a36dd/src/zombie.ts#L815-L850)

### Steer enemies around each other and simple obstacles

`getZombieSeparationDirection` combines repulsion from nearby zombies. `resolveZombieMovePosition` tries the desired direction, a fallback, and individual movement axes against circular brick obstacles.

**Project context:** This illustrates local steering; the behavior depends on the scene's movement entries, obstacle positions, and radius constants.

**Source references:**

* [`getZombieSeparationDirection`](https://github.com/dcl-regenesislabs/dead-surge/blob/4e967ba0590e0cdf7d6550ebbf56ea3b246a36dd/src/zombie.ts#L868-L896)
* [`resolveZombieMovePosition`](https://github.com/dcl-regenesislabs/dead-surge/blob/4e967ba0590e0cdf7d6550ebbf56ea3b246a36dd/src/zombie.ts#L898-L939)


---

# 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/tutorials-and-examples/published-games/dead-surge.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.
