> 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/my-dear-pet.md).

# 마이 디어 펫

이동을 위한 가속과 제동이 있는 펫 수집, 그리고 에디터에서 배치한 알의 단계 오프셋 애니메이션.

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

반려동물을 수집하는 게임입니다.

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

## 프로젝트 정보

**유지 관리:** Decentraland DAO

[소스 보기](https://github.com/dcl-regenesislabs/marsh-colony)

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

## 코드 살펴보기

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

### 이동 중인 반려동물에 가속과 제동 적용하기

`petMotionStep` 는 엔티티별 속도를 유지하고, 남은 정지 거리를 기준으로 목표 속도를 제한한 뒤 프레임 단위의 이동량을 반환합니다. 호출하는 쪽에서 경로를 전달하고 트랜스폼을 업데이트해야 합니다.

**프로젝트 맥락:** 이동 감각을 살펴볼 때 도착 거리, 가속 및 제동 값을 이 도우미와 함께 `shared/config` 에서 확인하세요.

**소스 참고:**

* [`petMotionStep`](https://github.com/dcl-regenesislabs/marsh-colony/blob/55dea4d3e13b3d821aa20bd277fbc4e0bc920b6f/src/client/petMotion.ts#L9-L35)

### 편집기에서 배치한 소품을 서로 다른 위상으로 애니메이션하기

`setupEggShake` 는 이름이 지정된 알 엔티티를 찾아 원래 회전을 기억하고, 알마다 위상을 다르게 적용해 작은 사인파 회전을 구현합니다. 이를 통해 소품에 설정된 방향을 유지하면서 변화를 더합니다.

**프로젝트 맥락:** Creator Hub 씬에서 생성된 알 이름에 의존합니다.

**소스 참고:**

* [`setupEggShake`](https://github.com/dcl-regenesislabs/marsh-colony/blob/55dea4d3e13b3d821aa20bd277fbc4e0bc920b6f/src/client/eggShake.ts#L29-L53)


---

# 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/my-dear-pet.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.
