> 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-ko/tutorials-and-examples/published-games/flag-tag.md).

# 플래그 태그

시간 제한 라운드, 지속적인 리더보드, 풀링된 발사체, 근접도 기반 조명 예산이 있는 멀티플레이어 피하기 게임.

![Flag Tag 미리보기](https://3980763956-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-e0d0211c1ee0ee040d3dbb5db9a91f73e2934482%2FflagTag-preview.webp?alt=media)

24시간 내내 운영되는 멀티플레이어 서버에서 즐기는 깃발 뺏기 게임입니다. 플레이어는 5분 라운드 동안 부메랑과 바나나 함정을 활용해 깃발을 차지하기 위해 경쟁하며, 매일·매월·전체 기간 리더보드에 결과가 누적됩니다.

* [Decentraland에서 플레이하기](https://decentraland.org/jump?realm=flagtag.dcl.eth)

## 프로젝트 정보

**관리자:** 커뮤니티 · iillee

[원본 소스 보기](https://github.com/iillee/flagtag)

**라이선스:** 이 카탈로그에서는 확인되지 않았습니다. 재사용하기 전에 적용되는 조건을 업스트림 저장소와 관리자에게 확인하세요.

{% hint style="warning" %}
**커뮤니티 관리 코드 — 사용 전 검토하세요**

이 커뮤니티 프로젝트는 Decentraland Foundation 및 DAO GitHub 조직 외부에서 관리됩니다. 소스 코드와 라이브 배포 버전은 별도로 변경될 수 있습니다.

이 카탈로그에 포함되었다고 해서 보안 감사를 거쳤거나 안전성이 보장되는 것은 아닙니다. 실행하거나 재사용하기 전에 코드, 종속 항목, 설치 스크립트를 검토하세요.

[카탈로그 관련 우려 사항 신고](https://github.com/decentraland/docs/issues/new). 취약점이 의심되면 원본 프로젝트의 보안 정책을 따르세요. 공개 이슈에 익스플로잇 세부 정보나 자격 증명을 포함하지 마세요.
{% endhint %}

## 주요 기능

* 멀티플레이어 서버
* 플레이어 진행 상황 및 잠금 해제 항목 저장소
* 커스텀 애니메이션용 아바타 마스킹

## 코드 살펴보기

이 링크는 특정 소스 스냅샷을 가리키므로, 상위 프로젝트의 개발이 계속되어도 설명을 유용하게 참고할 수 있습니다. 학습을 위한 참고 자료이며 보안 평가 자료는 아닙니다.

### 모델 변형별 발사체 비주얼 재사용

발사체 풀은 부메랑 색상별로 숨겨진 엔티티 10개를 미리 생성합니다. 획득 및 반환 도우미는 사용 가능한 엔티티를 찾아내고, 사운드를 중지한 뒤 숨겨진 위치로 돌려보냅니다.

**프로젝트 맥락:** 비행 코드는 획득한 엔티티의 위치를 지정하고 사용이 끝나면 반환해야 합니다. 풀은 프로젝트의 부메랑 에셋과 사운드 도우미에 의존합니다.

**소스 참고:**

* [발사체 풀](https://github.com/iillee/flagtag/blob/d5d9c8fbf0f69eadb4d79c3ae4054e8947f256b6/src/systems/projectile/pool.ts#L11-L37)
* [획득 및 반환 도우미](https://github.com/iillee/flagtag/blob/d5d9c8fbf0f69eadb4d79c3ae4054e8947f256b6/src/systems/projectile/pool.ts#L48-L66)

### 플레이어 주변의 활성 조명 수 제한

proximityLightSystem은 주기적으로 확인을 수행하고, 제곱 거리 비교와 재사용 배열을 사용해 가장 가까운 조명을 선택하며, 활성 상태가 달라진 조명만 변경합니다. 씬에서는 활성 조명을 최대 8개로 제한하고 주야간 도우미를 통해 제어합니다.

**프로젝트 맥락:** 같은 파일의 설정 및 상수를 살펴보면 월드 위치 변환과 기기별 강도 설정을 이해할 수 있습니다.

**소스 참고:**

* [proximityLightSystem](https://github.com/iillee/flagtag/blob/d5d9c8fbf0f69eadb4d79c3ae4054e8947f256b6/src/systems/proximityLights.ts#L109-L168)


---

# 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-ko/tutorials-and-examples/published-games/flag-tag.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.
