# 스파인 적용법

\*스파인 버전 3.8.20 이상부터 적용이 가능합니다.\
\*펑크랜드 무료 스파인 리소스, 예시 게임 파일을 하단 링크에 첨부하였으니 참고하시길 바랍니다.

예제 리소스 : <https://nekoland.net/market/detail/3119>

***

* 펑크랜드에서의 spine 애니메이션 적용과 장비 교체 기능을 사용하기 위해선 spine 파일의 애니메이션 이름과 슬롯의 이름 설정을 펑크랜드에 맞게 설정해야합니다.\
  \
  키워드는 다음과 같습니다.

1. 애니메이션

|    |                |
| -- | -------------- |
| 대기 | idle\_left     |
|    | idle\_right    |
|    | idle\_up       |
|    | idle\_down     |
| 걷기 | left           |
|    | right          |
|    | up             |
|    | down           |
| 공격 | attack\_left   |
|    | attack\_right  |
|    | attack\_up     |
|    | attack\_down   |
| 점프 | jump\_left     |
|    | jump\_right    |
|    | jump\_up       |
|    | jump\_down     |
| 피격 | damaged\_left  |
|    | damaged\_right |
|    | damaged\_up    |
|    | damaged\_down  |
| 사망 | dead\_left     |
|    | dead\_right    |
|    | dead\_up       |
|    | dead\_down     |

<figure><img src="/files/zPIGHyyEuqrWABl9lRcy" alt=""><figcaption><p>*스파인 애니메이션 이름 예시</p></figcaption></figure>

2. 아이템

| 모자 | hat          |
| -- | ------------ |
| 갑옷 | armor        |
| 무기 | weapon       |
| 방패 | shield       |
| 날개 | wing         |
| 신발 | shoes\_left  |
|    | shoes\_right |

<figure><img src="/files/Km3Kh5PUHkDUGqgtyVju" alt="" width="555"><figcaption><p>*스파인 애니메이션 이름 예시</p></figcaption></figure>

\
\ <br>

***

* ## 캐릭터 등록

1. 스파인 allas.txt, json, png 파일을 펑크랜드 프로젝트 **Spines** 폴더에 넣습니다.\
   \* 세가지 파일이 같은 폴더에 존재해야 스파인 리소스가 문제 없이 실행됩니다, \
   \* 폴더명(**Spines)**&#xC740; 대소문자 구분 및 철자를 정확히 동일하게 해야합니다.

<figure><img src="/files/vjqcnHZds6X9hqi2FB7B" alt=""><figcaption></figcaption></figure>

2. 데이터 베이스>캐릭터>그래픽 에서 png 파일을 선택해줍니다.

<figure><img src="/files/HZz6RhkKgAiXFKOzJ7ti" alt=""><figcaption></figcaption></figure>

3. 이름 위치, 충돌 영역, 주변광을 설정합니다.

<figure><img src="/files/rlblLajrfaFWf4ouSEZZ" alt=""><figcaption></figcaption></figure>

리소스 관리자에서 png 파일을 선택해 스프라이트 편집기로 이름 위치, 충돌, 주변광을 설정합니다.\
\*스케일, 테두리 기능은 스파인 리소스에 적용 되지 않습니다.\
\
\ <br>

***

* ## 아이템 등록

1. 아이콘, 아이템 png 이미지를 **Icons** 폴더에 넣어줍니다.

<figure><img src="/files/rYHXProE2t20ayUQ7QcP" alt=""><figcaption></figcaption></figure>

2. 데이터 베이스> 아이템에서 아이콘 이미지, 스파인 이미지를 선택해줍니다.

<figure><img src="/files/I8QCjtaxPeGGg2wysSFE" alt=""><figcaption></figcaption></figure>

\* 아이콘: 상점, 인벤토리에서 보이는 아이템 아이콘 이미지입니다.\
&#x20;스파인 이미지: 스파인 캐릭터 위에 씌워지는 아이템 이미지 입니다.

3. 아이템의 종류를 선택해줍니다.

<figure><img src="/files/7v5xd7rud6zRkuQFWm3U" alt=""><figcaption></figcaption></figure>

\*장착하고자 하는 아이템의 종류와 스파인에서의 슬롯 이름을 동일하게 설정해야 스파인 아이템으로 적용 가능합니다.<br>

| 모자   | hat          |
| ---- | ------------ |
| 갑옷   | armor        |
| 무기   | weapon       |
| 방패   | shield       |
| 날개   | wing         |
| 신발   | shoes\_left  |
|      | shoes\_right |
| 반지   | ring\_left   |
|      | ring\_right  |
| 액세서리 | acc\_left    |
|      | acc\_right   |

***

* ## 예제 활용 tip

예제 파일의 스파인 아이템을 직접 수정하여 사용하실 경우 이미지의 크기와 객체 위치를 동일하게 맞춰야 합니다.

<figure><img src="/files/b0KFjnB22MkqP6DK5MrS" alt=""><figcaption></figcaption></figure>

<br>

\ <br>

<br>

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.punkland.io/punkland/punkland-studio/in-depthguide/undefined-1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
