소개


맵과 관련된 속성 값을 조회 할 수 있습니다. 현재는 맵의 너비(width), 높이(height) 필드를 조회할 수 있습니다

🔒 아이콘이 있는 필드는 수정이 불가능한 읽기 전용 필드입니다.

이름 설명
🔒 width 맵의 너비 값을 가져옵니다.
🔒 height 맵의 높이 값을 가져옵니다

📚 API 설명 및 예제

width & height


<aside> ▶️ Map.width : Number Map.height : Number

</aside>

맵의 너비와 높이 값을 가져옵니다.

예제

맵의 너비, 높이 값을 채팅창에 출력해보기.

// q 키를 누르면 동작하는 함수
// [**App.addOnKeyDown](<https://teamzep.notion.site/Callbacks-669c6883d00c4ab4b0e2ea3bfe800432>) [설명(링크)](<https://teamzep.notion.site/Callbacks-669c6883d00c4ab4b0e2ea3bfe800432>)**
App.addOnKeyDown(81, function (player) {
	App.sayToAll(`맵 가로 크기: ${Map.width}`);
	App.sayToAll(`맵 세로 크기: ${Map.height}`);
});

<aside> ⬅️ ScriptMap

</aside>

<aside> ➡️ Methods

</aside>