> 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/slide-penguin.md).

# 슬라이드 펭귄

목표물과의 거리 기반으로 감속과 점수를 변경하는 시간 제한 쓸기 동작이 있는 펭귄 미끄러지기.

펭귄을 목표 지점 쪽으로 밀고, 시간에 맞춘 스와이프로 감속 속도를 조절합니다.

배포 참고: 현재 배포되지 않았습니다.

* [Decentraland에서 플레이하기](https://decentraland.org/jump?position=-140%2C101)

## 프로젝트 정보

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

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

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

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

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

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

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

## 코드 살펴보기

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

### 스와이프를 일시적인 이동 수정자로 전환

`handleSwipe` 는 감속 감소 효과에 쿨다운을 적용하고, 해당 효과가 만료되는 시점을 기록합니다. `penguinMovementSystem` 는 해당 시간 구간이 지나면 기본 감속도를 복원하고, 속도를 업데이트한 다음 프레임 시간에 따라 변환을 진행합니다.

**프로젝트 맥락:** 프로젝트의 `PenguinMovement` 및 `SwipeBox` 컴포넌트와 조정 상수를 살펴 입력과 움직임의 관계를 이해하세요.

**소스 참고:**

* [`handleSwipe`](https://github.com/ToxSam/SlidePenguin/blob/19978bf4ca9e793ce87cd5637efc1abf3a3b686c/src/systems.ts#L519-L598)
* [`penguinMovementSystem`](https://github.com/ToxSam/SlidePenguin/blob/19978bf4ca9e793ce87cd5637efc1abf3a3b686c/src/systems.ts#L864-L913)

### 물체가 목표 지점에 얼마나 가깝게 착지했는지 점수화

`calculateDistance2D` 및 `calculateScore` 는 높이를 무시하고, 최대 거리를 기준으로 수평 거리를 정규화한 뒤 반올림한 점수로 변환하며, 점수는 `MAX_SCORE`.

**프로젝트 맥락:** 이 작은 모듈은 근접도 점수 산정 방식을 이해하기에 좋은 출발점입니다. 입력값은 펭귄의 최종 위치와 목표 위치입니다.

**소스 참고:**

* [`calculateDistance2D` 및 `calculateScore`](https://github.com/ToxSam/SlidePenguin/blob/19978bf4ca9e793ce87cd5637efc1abf3a3b686c/src/scoring.ts#L5-L39)


---

# 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/slide-penguin.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.
