사용자:Jinhoftyu/common.js: 두 판 사이의 차이
보이기
편집 요약 없음 태그: 되돌려진 기여 |
편집 요약 없음 태그: 되돌려진 기여 |
||
10번째 줄: | 10번째 줄: | ||
if($("[data-name='uncydungeon']").length >= 1){ | if($("[data-name='uncydungeon']").length >= 1){ | ||
// 이부분에 코드 입력 // | // 이부분에 코드 입력 // | ||
var mapX = 20; | var mapX = 80; | ||
console.log("#".repeat(mapX)); | var mapY = 20; | ||
for (var i = 0; i < mapY; i++) { | |||
if (i == 0 || i == mapY - 1) { | |||
console.log("#".repeat(mapX)); | |||
} else { | |||
console.log("#" + ".".repeat(mapX - 2) + "#"); | |||
} | |||
} | |||
} | } |
2023년 10월 18일 (수) 15:44 판
/** 플러그인 uncydungeon***************************
* uncydungeon 실행
* 버전 => 0.1
* 작성자 : [[사용자:Jinhoftyu|Jinhoftyu]]
* JSON => uncydungeon = {"name":"uncydungeon","descript":"uncydungeon 실행","version":"0.1","local":true,"creat":"Jinhoftyu","state":"사용자:Jinhoftyu/Undungeon/플러그인","executable":true};
*/
function plugin_uncydungeon(){
if($("[data-name='uncydungeon']").length >= 1){
// 이부분에 코드 입력 //
var mapX = 80;
var mapY = 20;
for (var i = 0; i < mapY; i++) {
if (i == 0 || i == mapY - 1) {
console.log("#".repeat(mapX));
} else {
console.log("#" + ".".repeat(mapX - 2) + "#");
}
}
}
}
$( plugin_uncydungeon );
/* uncydungeon 끝 */