加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
designer.html 2.55 KB
一键复制 编辑 原始数据 按行查看 历史
Kevin 提交于 2021-11-14 00:24 . Update js version
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>三国霸业</title>
<link rel="icon" href="favicon.png">
<link rel="stylesheet" type="text/css" href="http://cdn.bootcss.com/flex-layout-attribute/1.0.3/css/flex-layout-attribute.css" />
<link rel="stylesheet" type="text/css" href="baye.css" />
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?55cdc246d0c836cecfdf39ce0d5657f3";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<script src="js/jquery.min.js"></script>
<script src="js/encoding-indexes.js"></script>
<script src="js/encoding.js"></script>
<script src="js/sprintf.js"></script>
</head>
<body onkeydown="onKeyDown()">
<div layout="row center-center" >
<div class="container" style="width:780px">
<canvas class="fill" id="lcd" width="160" height="96">然而你的浏览器并不支持HTML5</canvas>
</div>
</div>
<p></p>
<div layout="row center-center" >
<div style="width:480px" >
<div>
<script>
if (window.FileReader === undefined) {
document.write('你的浏览器不支持载入Lib');
} else {
document.write('载入Lib: <input type="file" onchange="loadLib(this.files)">');
}
</script>
<input type="button" onclick="clearLib()" value="清除Lib">
</div>
<br>
<div id="lib-name"></div>
</div>
</div>
</body>
</html>
<script src="js/bridge.js?ver=202111140022"></script>
<script src="js/lcd.js?ver=202111140022"></script>
<script>
Module['noInitialRun'] = true;
Module['postRun'] = function(){
lcdInit();
_bayeGameEnvInit();
baye.drawMap = function(wid, hgt, matrix) {
baye.resizeScreen(wid*16, hgt*16);
for (var col = 0; col < wid; col++) {
for (var row = 0; row < hgt; row ++) {
var ind = matrix[row*wid + col];
baye.drawImage(col*16, row*16, 4, 0, ind);
}
}
}
};
</script>
<script src="../baye-engine/baye.js?ver=202111140022"></script>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化