|
|
13번째 줄: |
13번째 줄: |
| | | |
| ==뚝딱뚝딱 테스트== | | ==뚝딱뚝딱 테스트== |
− | <html>
| |
− | <head>
| |
− | <title>귀멸의 포커 디펜스</title>
| |
− | <link rel="stylesheet" href="./css/main.css" type="text/css">
| |
− | <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
| |
− | </head>
| |
− | <body>
| |
− | <script src="./core/player.js"></script>
| |
− | <script src="./core/config.js"></script>
| |
− | <script src="./core/rwfunction.js" charset="utf-8"></script>
| |
− | <script src="./core/jquery-1.4.2.min.js"></script>
| |
− | <script src="./core/csschanger.js"></script>
| |
− | <script src="./core/poker.js"></script>
| |
− | <script src="./core/itembag.js"></script>
| |
− | <script src="./core/characterbag.js"></script>
| |
− | <script src="./core/character.js"></script>
| |
− | <script src="./core/gametable.js"></script>
| |
− | <script src="./core/monster.js"></script>
| |
− | <script src="./core/game.js" charset="utf-8"></script>
| |
− | <script src="./core/combine.js"></script>
| |
− | <script src="./core/message.js" charset="utf-8"></script>
| |
− | <script src="./core/shop.js"></script>
| |
− |
| |
− |
| |
− |
| |
− | <div id="banner"><div id="imgbox">
| |
− | <div id="getcard1" onclick="flipCard('getcard1')"><input type="hidden" style="display:none;" id="getcard1h" value=""/></div>
| |
− | <div id="getcard2" onclick="flipCard('getcard2')"><input type="hidden" style="display:none;" id="getcard2h" value=""/></div>
| |
− | <div id="getcard3" onclick="flipCard('getcard3')"><input type="hidden" style="display:none;" id="getcard3h" value=""/></div>
| |
− | <button style="width: 30px; height: 30px; margin-left: 730px;" onclick="cardReset()">X</button>
| |
− | </div></div>
| |
− |
| |
− | <div id="banner2">
| |
− | <div id="stopbox">
| |
− | <button id="stopoffbutton" style="width: 30px; height: 30px; margin-left: 730px;" onclick="gameResume();">X</button>
| |
− | <div id="stoptext"></div>
| |
− | </div>
| |
− | </div>
| |
− |
| |
− | <div id="topbar"></div>
| |
− |
| |
− | <div id="middle">
| |
− | <canvas id="range" width="1520px" height="800px" onclick="$('#range').css('display', 'none')"></canvas>
| |
− | <script>
| |
− |
| |
− |
| |
− | </script>
| |
− | <div class="sytemboxbefore" id="systemboxbefore" onclick="systemBoxOn();">시스템 & 대화창 ▲</div>
| |
− | <div class="sytemboxafter" id="systemboxafter">
| |
− | <div onclick="systemBoxOff();">시스템 & 대화창 ▼</div>
| |
− | <div id="textbox">
| |
− |
| |
− | </div>
| |
− | <input id="sendvalue" type="text" style="color:cornsilk;" value="">
| |
− | <button class="btn" id="sendbutton" style="height:25px; width:50px;" onclick="sendMessage()">전송</button>
| |
− | </div>
| |
− |
| |
− | <div class="dealbox">
| |
− | 딜 미터기
| |
− | <div id="mydeal">
| |
− | <div class="progress" id="md" style="margin-top: 3px;"><div class="progress-bar p" id="mp" style="width:50%">50%</div></div>
| |
− | <div id="mydamage">당 신 : 0</div>
| |
− | </div>
| |
− |
| |
− | <div id="deals">
| |
− | <div class="progress" id="ds" style="margin-top: 3px;"><div class="progress-bar p" id="ps" style="width:50%">50%</div></div>
| |
− | <div id="damages">상대방 : 0</div>
| |
− | </div>
| |
− |
| |
− | </div>
| |
− |
| |
− | <div id="game">
| |
− |
| |
− |
| |
− |
| |
− | </div>
| |
− | <div id="monsters"></div>
| |
− | <div class="gamesidebar" id="gamesidebar">
| |
− | <div id="roundname">Round 0</div>
| |
− | <div id="life">LifePoint : ♥♥♥♥♥♥♥♥♥♥</div>
| |
− |
| |
− | <div id="money">돈 : 0</div><div id="exp">경험치 : 0</div>
| |
− |
| |
− | <div id="itembagbox">
| |
− | <div class="sub">아이템 가방</div>
| |
− | <div id="itembag"></div>
| |
− | </div>
| |
− |
| |
− | <div id="characterbagbox">
| |
− | <div class="sub">캐릭터 가방</div>
| |
− | <div id="characterbag"></div>
| |
− | </div>
| |
− |
| |
− | <div id="functionbutton">
| |
− | <div>
| |
− | <div id="viewtimer">상대방과 통신을 위해 현재 로딩중 입니다..</div>
| |
− | </div>
| |
− | <div id="gamedm">
| |
− | </div>
| |
− | <div>
| |
− | <button class="btn" id="returnbag" style="float:left;" onclick="returnToBag()" disabled>가방으로</button>
| |
− | </div>
| |
− | </div>
| |
− |
| |
− | <div id="questbox">
| |
− | <div id="quest"></div>
| |
− | <div class="sub">퀘스트 창</div>
| |
− | <div id ="quest"></div>
| |
− | </div>
| |
− |
| |
− | <div id="selectinfobox">
| |
− | <div class="sub">선택 정보</div>
| |
− | <div id="selectinfo">
| |
− | <input type="hidden" id="nowselect" value="">
| |
− | <div id="selectname"></div>
| |
− | <div id="selectattribute"></div>
| |
− | <div id="selectpowerclass"></div>
| |
− | <div id="selectattackpoint"></div>
| |
− | <div id="selectattackspeed"></div>
| |
− | <div id="selectattackrange"></div>
| |
− | <div id="selectcharacterexplain"></div>
| |
− | <div id="selectskillname"></div>
| |
− | <div id="selectskillexplain"></div>
| |
− | <div id="selectskilleffect"></div>
| |
− |
| |
− | </div>
| |
− | </div>
| |
− | <div>
| |
− |
| |
− | </div>
| |
− | </div>
| |
− | </div>
| |
− | <div id="bottom">
| |
− |
| |
− | <div id="recipe">
| |
− |
| |
− | <div id="recipebox">
| |
− | <div class="sub">조합창</div>
| |
− | <div id="search"><div class="sub2" style="float:left;height:100%;font-size:20px;">검색명 : </div><input id="searchvalue" type="text" value=""><button class="btn" id="searchbutton" style="height:100%;" onclick="searchList();">검색</button><button class="btn" style="height:100%;" id="searchreset" onclick="resetList();">초기화</button></div>
| |
− | <div id="recipelist"><div id="recipetop"></div><div id="recipebody"></div></div>
| |
− | <div id="combinebox">
| |
− | <div id="combine1" onclick="combineBoxOn(1);">재료1 추가</div>
| |
− | <div id="combine2" onclick="combineBoxOn(2);">재료2 추가</div>
| |
− | <div id="combine3" onclick="combineBoxOn(3);">재료3 추가</div>
| |
− | <div id="combine4" onclick="combineBoxOn(4);">재료4 추가</div>
| |
− | <div id="combineresult"></div>
| |
− | <button class="btn" onclick="combine();">조합</button>
| |
− | <button class="btn" onclick="resetCombineBox()">초기화</button>
| |
− | </div>
| |
− | </div>
| |
− | </div>
| |
− |
| |
− | <div id="poker">
| |
− | <div class="combinebox" id="popup">
| |
− | <div id="combinesearch"><div class="sub2" style="float:left;height:100%;font-size:20px;">검색명 : </div><input id="combinesearchvalue" style="color:white;width:50%;" type="text" value=""><button class="btn" id="combinesearchbutton" style="height:100%;" onclick="combineSearch();">검색</button><button class="btn" style="height:100%;" id="combinesearchreset" onclick="combineSearchReset();">초기화</button></div>
| |
− |
| |
− | <div id="combineboxin">
| |
− | <div id="combineitem"></div>
| |
− | <div id="combinecharacter"></div>
| |
− | <div style="float:left;background-color:rgb(23, 36, 36);border-right: 1px solid rgb(217, 211, 132);width:33%;height:100%">
| |
− | <button class="btn" style="width:100%;height:33%;font-size:40px;" onclick="up();">증가</button>
| |
− | <div style="height:33%;"><input id="passvalue" type="text" value="0" disabled><button class="btn" style="float:left;width:50%;height:100%;font-size:25px;" onclick="combineBoxOff();returnOpener();">확정</button></div>
| |
− | <button class="btn" style="width:100%;height:33%;font-size:40px;" onclick="down();">감소</button>
| |
− | <input type="hidden" id="type" value=""><input type="hidden" id="name" value=""><input type="hidden" id="val" value="">
| |
− | </div>
| |
− | </div>
| |
− |
| |
− | </div>
| |
− | <div id="combineboxtobefore" onclick="combineBoxOff();">◀</div>
| |
− | <div id="topline">
| |
− | <div id="card1" onClick="changeCard(0)"></div>
| |
− | <div id="card2" onClick="changeCard(1)"></div>
| |
− | <div id="card3" onClick="changeCard(2)"></div>
| |
− | <div id="nowcard" onClick="cardFinish()"></div>
| |
− | </div>
| |
− |
| |
− |
| |
− | <div id="bottomline">
| |
− | <table id="pokerpiece">
| |
− | <tr>
| |
− | <td><font color="white">트리플 Q or 트리플 ACE</font></td>
| |
− | <td><font color="white">SR 랜덤권x2 + 귀멸의 의지x6</font><</td>
| |
− | </tr>
| |
− | <tr>
| |
− | <td><font color="white">ACE원페어, 투페어, 풀하우스</font></td>
| |
− | <td><font color="white">SR 랜덤권x1 + 귀멸의 의지x4</font><</td>
| |
− | </tr>
| |
− | <tr>
| |
− | <td><font color="white">K, Q 각각 1개</font></td>
| |
− | <td><font color="white">R랜덤권x2 + 귀멸의 의지x2</font><</td>
| |
− | </tr>
| |
− | <tr>
| |
− | <td><font color="white">J, A 각각 1개</font></td>
| |
− | <td><font color="white">R랜덤권x1 + 귀멸의 의지x2</font><</td>
| |
− | </tr>
| |
− | <tr>
| |
− | <td><font color="white">King 탑카드 or Jack 탑카드</font></td>
| |
− | <td><font color="white">C랜덤권x1 + 귀멸의 의지x1</font><</td>
| |
− | </tr>
| |
− | </table>
| |
− | <div id="card4" onClick="changeCard(3)"></div>
| |
− | <div id="card5" onClick="changeCard(4)"></div>
| |
− |
| |
− | </div>
| |
− |
| |
− | </div>
| |
− |
| |
− | <div id="shop">
| |
− |
| |
− | <div id="shopbox">
| |
− | <div class="sub">상점</div>
| |
− | <button class="btn" style="color:white;width:100%;height:30px;" onclick="drawCommonCharacter()">캐릭터 뽑기(캐릭터 랜덤 카드 1개 소모)</button>
| |
− | <div id="storeItemBox">
| |
− | <div id="storeItemList1">재료 1</div>
| |
− | <div id="storeItemList2">재료 2</div>
| |
− | <div id="storeItemList3">재료 3</div>
| |
− | <div id="storeItemList4">재료 4</div>
| |
− | <div id="storeItemList5">재료 5</div>
| |
− |
| |
− | <button class="shopbtn1" onClick="buyItem(0)">구매</button>
| |
− | <button class="shopbtn1" onClick="buyItem(1)">구매</button>
| |
− | <button class="shopbtn1" onClick="buyItem(2)">구매</button>
| |
− | <button class="shopbtn1" onClick="buyItem(3)">구매</button>
| |
− | <button class="shopbtn2" onClick="buyItem(4)">구매</button>
| |
− | </div>
| |
− |
| |
− | <div id="storeItemBox">
| |
− | <div id="storeItemList6">재료 6</div>
| |
− | <div id="storeItemList7">재료 7</div>
| |
− | <div id="storeItemList8">재료 8</div>
| |
− | <div id="storeItemList9">재료 9</div>
| |
− | <div id="storeItemList10">재료 10</div>
| |
− |
| |
− | <button class="shopbtn1" onClick="buyItem(5)">구매</button>
| |
− | <button class="shopbtn1" onClick="buyItem(6)">구매</button>
| |
− | <button class="shopbtn1" onClick="buyItem(7)">구매</button>
| |
− | <button class="shopbtn1" onClick="buyItem(8)">구매</button>
| |
− | <button class="shopbtn2" onClick="buyItem(9)">구매</button>
| |
− |
| |
− | </div>
| |
− |
| |
− |
| |
− |
| |
− |
| |
− | <div id="storeUpgradeBox">
| |
− | <div id="storeUpgradeBoxIn">
| |
− | <div class="storeUpgradeList" id="E0">무 속성 0,exp:0</div>
| |
− | <div class="storeUpgradeList" id="E1">불 속성 0,exp:0</div>
| |
− | <div class="storeUpgradeList" id="E2">물 속성 0,exp:0</div>
| |
− | <div class="storeUpgradeList" id="E3">대지 속성 0,exp:0</div>
| |
− | <div class="storeUpgradeList" id="E4">피 속성 0,exp:0</div>
| |
− | <div class="storeUpgradeList" id="E5">태양 속성 0,exp:0</div>
| |
− | <div class="storeUpgradeList" id="E6">번개 속성 0,exp:0</div>
| |
− | <div class="storeUpgradeList" id="E7">벌레 속성 0,exp:0</div>
| |
− | <div class="storeUpgradeList" id="E8">뱀 속성 0,exp:0</div>
| |
− | <div class="storeUpgradeList" id="E9">사랑 속성 0,exp:0</div>
| |
− | <div class="storeUpgradeList" id="EC">카드 도박(C~SSR) 40000원</div>
| |
− | <div class="storeUpgradeList" id="EC">돈 -> 경험치 10000->10000</div>
| |
− | <div class="storeUpgradeList" id="EC">돈 -> 경험치 50000->50000</div>
| |
− | <div class="storeUpgradeList" id="EM" style="margin-right: 0px;">돈 -> 경험치 10만->10만</div>
| |
− |
| |
− | <button class="shopbtn3" onClick="upgradeE(0)">Upgrade</button>
| |
− | <button class="shopbtn3" onClick="upgradeE(1)">Upgrade</button>
| |
− | <button class="shopbtn3" onClick="upgradeE(2)">Upgrade</button>
| |
− | <button class="shopbtn3" onClick="upgradeE(3)">Upgrade</button>
| |
− | <button class="shopbtn3" onClick="upgradeE(4)">Upgrade</button>
| |
− | <button class="shopbtn3" onClick="upgradeE(5)">Upgrade</button>
| |
− | <button class="shopbtn3" onClick="upgradeE(6)">Upgrade</button>
| |
− | <button class="shopbtn3" onClick="upgradeE(7)">Upgrade</button>
| |
− | <button class="shopbtn3" onClick="upgradeE(8)">Upgrade</button>
| |
− | <button class="shopbtn3" onClick="upgradeE(9)">Upgrade</button>
| |
− | <button class="shopbtn3" onClick="shopRandomCard()">구매</button>
| |
− | <button class="shopbtn3" onClick="changeToExp(10000);">구매</button>
| |
− | <button class="shopbtn3" onClick="changeToExp(50000);">구매</button>
| |
− | <button class="shopbtn3" style="margin-right: 0px;" onClick="changeToExp(100000);">구매</button>
| |
− | </div>
| |
− | </div>
| |
− |
| |
− |
| |
− |
| |
− |
| |
− | </div>
| |
− | </div>
| |
− | </div>
| |
− |
| |
− |
| |
− |
| |
− | <script>
| |
− | if(control == "P1"){
| |
− | var minY = 0;
| |
− | var maxY = 11;
| |
− | var minYS = 11;
| |
− | var maxYS = 22;
| |
− | var time = 0;
| |
− | } else {
| |
− | var minY = 11;
| |
− | var maxY = 22;
| |
− | var minYS = 0;
| |
− | var maxYS = 11;
| |
− | var time = 0;
| |
− | P2SystemBox();
| |
− |
| |
− | }
| |
− |
| |
− | $("#combinesearchvalue").bind("change keyup paste", function(){
| |
− | combineSearch();
| |
− | });
| |
− |
| |
− | document.onkeydown = keyDownEventHandler;
| |
− | function keyDownEventHandler(evt) { // 키를 눌렀을 때 작동
| |
− | //console.log(evt.keyCode);
| |
− | switch(evt.keyCode) {
| |
− | //tab 9, q 81, w 87, e 69, r 82
| |
− | case 13:
| |
− | if(document.getElementById('sendvalue').value != ""){
| |
− | sendMessage()
| |
− | }
| |
− | if(document.getElementById('searchvalue').value != ""){
| |
− | searchList();
| |
− | }
| |
− | if(document.getElementById('combinesearchvalue').value != ""){
| |
− | combineSearch();
| |
− | }
| |
− |
| |
− | break;
| |
− | case 27:
| |
− | window.close();
| |
− | break;
| |
− | case 187:
| |
− | gameStop();
| |
− | break;
| |
− | case 65:
| |
− | returnToBag();
| |
− | break;
| |
− | case 81:
| |
− | combineBoxOn(1);
| |
− | combineSearchReset();
| |
− | break;
| |
− | case 87:
| |
− | combineBoxOn(2);
| |
− | combineSearchReset();
| |
− | break;
| |
− | case 69:
| |
− | combineBoxOn(3);
| |
− | combineSearchReset();
| |
− | break;
| |
− | case 82:
| |
− | combineBoxOn(4);
| |
− | combineSearchReset();
| |
− | break;
| |
− | case 84:
| |
− | //combineBoxOff();
| |
− | break;
| |
− | case 32:
| |
− | combine();
| |
− | break;
| |
− | case 83:
| |
− | down();
| |
− | break;
| |
− | case 68:
| |
− | up();
| |
− | break;
| |
− | case 70:
| |
− | combineBoxOff();
| |
− | returnOpener();
| |
− | break;
| |
− | case 16:
| |
− | //resetCombineBox();
| |
− | break;
| |
− | case 49:
| |
− | changeCard(0);
| |
− | break;
| |
− | case 50:
| |
− | changeCard(1);
| |
− | break;
| |
− | case 51:
| |
− | changeCard(2);
| |
− | break;
| |
− | case 52:
| |
− | changeCard(3);
| |
− | break;
| |
− | case 53:
| |
− | changeCard(4);
| |
− | break;
| |
− | }
| |
− |
| |
− | }
| |
− | drawGameTable();
| |
− | shakeCard();
| |
− | displayShopItem();
| |
− | initrecipe();
| |
− | resetList();
| |
− | readFile("receive.txt");
| |
− |
| |
− | document.getElementById('gamedm').innerHTML = gameDM;
| |
− | </script>
| |
− | </body>
| |
− | </html>
| |