增加实体按键的排版风格

This commit is contained in:
zhl 2019-06-04 18:50:57 +08:00
parent 521acc1caa
commit 069173cc01
15 changed files with 142 additions and 91 deletions

View File

@ -546,3 +546,50 @@ canvas {
.container::-webkit-scrollbar { .container::-webkit-scrollbar {
display: none; //Safari and Chrome display: none; //Safari and Chrome
} }
/*.direct-wrap {*/
/* width:300px;*/
/* height:300px;*/
/* top: 20px;*/
/* left: 20px;*/
/* position: absolute;*/
/* background-image:url(../resources/rocker.png);*/
/* display: none;*/
/* grid-template-columns: 100px 100px 100px;*/
/* grid-template-rows: 100px 100px 100px;*/
/*}*/
/*.real .dire-wrap {*/
/* display: none!important;*/
/*}*/
.real .dire-ctrl {
background-image:url(../resources/rocker.png);
}
.real .dc-centre {
display: none;
}
.real .dc-dire {
background-image:url(../resources/direct-shadow.png);
}
.real .direct-wrap {
display: grid;
}
.direct-btn {
}
.real .key-btn {
opacity:1!important;
background-image:url(../resources/button.png)!important;
}
.real .flat-btn {
background-image:url(../resources/flat-button.png)!important;;
opacity:.7!important;;
width:150px!important;
}
.real .kay-SE {
top:100px!important;
}
.real .kay-ST {
right:60px!important;;
}

View File

@ -45,19 +45,18 @@
<!-- <script src="js/rq.js" data-main="js/index.js"></script> --> <!-- <script src="js/rq.js" data-main="js/index.js"></script> -->
<div class='background-div'></div> <div class='background-div'></div>
<canvas id="screen" width="256" height="240"></canvas> <canvas id="screen" width="256" height="240"></canvas>
<div class="ctrl-wrap"> <div id="ctrl-wrap" class="ctrl-wrap real">
<div class="dire-wrap"> <div class="dire-wrap">
<div class="dire-ctrl"> <div class="dire-ctrl">
<div class="dc-centre"></div> <div class="dc-centre"></div>
</div> </div>
<div class="dc-dire"></div> <div class="dc-dire"></div>
</div> </div>
<div class="key-wrap"> <div class="key-wrap">
<div class="key-btn kay-A" data-key="A">A</div> <div class="key-btn kay-A" data-key="A">A</div>
<div class="key-btn kay-B" data-key="B">B</div> <div class="key-btn kay-B" data-key="B">B</div>
<!-- <div class="key-btn kay-Y" data-key="Y">L</div> <!-- <div class="key-btn kay-Y" data-key="Y">L</div>-->
<div class="key-btn kay-X" data-key="X">R</div> --> <!-- <div class="key-btn kay-X" data-key="X">R</div>-->
<div class="key-btn kay-AB" data-key="AB">AB</div> <div class="key-btn kay-AB" data-key="AB">AB</div>
<div class="key-btn kay-SE flat-btn" data-key="SE">选择</div> <div class="key-btn kay-SE flat-btn" data-key="SE">选择</div>
<div class="key-btn kay-ST flat-btn" data-key="ST">开始</div> <div class="key-btn kay-ST flat-btn" data-key="ST">开始</div>

View File

@ -206,6 +206,10 @@ function checkSession_id(res){
}catch(e){} }catch(e){}
} }
window.onload = function(){ window.onload = function(){
var noCheck = getParameter('nt');
if (noCheck) {
startGame()
} else {
var account_id = getParameter("account_id") var account_id = getParameter("account_id")
var session_id = getParameter("session_id") var session_id = getParameter("session_id")
var url; var url;
@ -224,7 +228,7 @@ window.onload = function(){
ajax.onload = checkSession_id; ajax.onload = checkSession_id;
ajax.open("GET", url, true); ajax.open("GET", url, true);
ajax.send(null); ajax.send(null);
}
} }
var script_processor=null var script_processor=null

BIN
fc/resources/button-press.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
fc/resources/button.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

BIN
fc/resources/rocker-down.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
fc/resources/rocker-left.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

BIN
fc/resources/rocker-up.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
fc/resources/rocker.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

BIN
fc/resources/rockerLeftDown.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

BIN
fc/resources/rockerLeftUp.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

View File

@ -11,8 +11,9 @@ const javascriptObfuscator = require('gulp-javascript-obfuscator');
const obfuscatorOptions = { const obfuscatorOptions = {
compact:true, compact:true,
sourceMap: false, sourceMap: false,
debugProtection: false, debugProtection: true,
disableConsoleOutput: false disableConsoleOutput: true,
domainLock: ['.kingsome.cn', '.zhl.com']
}; };
//检查js的语法错误 //检查js的语法错误
gulp.task('jslint', function () { gulp.task('jslint', function () {