mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-04-19 17:16:08 +08:00
Deploying to gh-pages from @ 2e7e64b399
🚀
This commit is contained in:
parent
f54fc1c2ae
commit
25c4c44c78
File diff suppressed because one or more lines are too long
1
assets/index-af78f309.js
Normal file
1
assets/index-af78f309.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -18,7 +18,7 @@
|
|||||||
<meta name="x5-fullscreen" content="true">
|
<meta name="x5-fullscreen" content="true">
|
||||||
<meta name="x5-page-mode" content="app">
|
<meta name="x5-page-mode" content="app">
|
||||||
<link id="mota-css" type='text/css' href='/HumanBreak/styles.css' rel='stylesheet'>
|
<link id="mota-css" type='text/css' href='/HumanBreak/styles.css' rel='stylesheet'>
|
||||||
<script type="module" crossorigin src="/HumanBreak/assets/index-9af85291.js"></script>
|
<script type="module" crossorigin src="/HumanBreak/assets/index-af78f309.js"></script>
|
||||||
<link rel="modulepreload" crossorigin href="/HumanBreak/assets/antdv-4c8751a8.js">
|
<link rel="modulepreload" crossorigin href="/HumanBreak/assets/antdv-4c8751a8.js">
|
||||||
<link rel="modulepreload" crossorigin href="/HumanBreak/assets/common-475f4741.js">
|
<link rel="modulepreload" crossorigin href="/HumanBreak/assets/common-475f4741.js">
|
||||||
<link rel="stylesheet" href="/HumanBreak/assets/index-b3148fbe.css">
|
<link rel="stylesheet" href="/HumanBreak/assets/index-b3148fbe.css">
|
||||||
@ -205,7 +205,7 @@
|
|||||||
|
|
||||||
<script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
|
<script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
|
||||||
<script nomodule crossorigin id="vite-legacy-polyfill" src="/HumanBreak/assets/polyfills-legacy-add56470.js"></script>
|
<script nomodule crossorigin id="vite-legacy-polyfill" src="/HumanBreak/assets/polyfills-legacy-add56470.js"></script>
|
||||||
<script nomodule crossorigin id="vite-legacy-entry" data-src="/HumanBreak/assets/index-legacy-ab80f7b3.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
|
<script nomodule crossorigin id="vite-legacy-entry" data-src="/HumanBreak/assets/index-legacy-0ae834a8.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
@ -44,11 +44,6 @@ control.prototype._init = function () {
|
|||||||
);
|
);
|
||||||
this.registerAnimationFrame('weather', true, this._animationFrame_weather);
|
this.registerAnimationFrame('weather', true, this._animationFrame_weather);
|
||||||
this.registerAnimationFrame('tip', true, this._animateFrame_tip);
|
this.registerAnimationFrame('tip', true, this._animateFrame_tip);
|
||||||
this.registerAnimationFrame(
|
|
||||||
'parallelDo',
|
|
||||||
false,
|
|
||||||
this._animationFrame_parallelDo
|
|
||||||
);
|
|
||||||
// --- 注册系统的天气
|
// --- 注册系统的天气
|
||||||
this.registerWeather(
|
this.registerWeather(
|
||||||
'rain',
|
'rain',
|
||||||
@ -479,10 +474,6 @@ control.prototype._animateFrame_tip = function (timestamp) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
control.prototype._animationFrame_parallelDo = function (timestamp) {
|
|
||||||
core.control.controldata.parallelDo(timestamp);
|
|
||||||
};
|
|
||||||
|
|
||||||
// ------ 标题界面的处理 ------ //
|
// ------ 标题界面的处理 ------ //
|
||||||
|
|
||||||
////// 显示游戏开始界面 //////
|
////// 显示游戏开始界面 //////
|
||||||
|
@ -343,10 +343,7 @@ core.prototype._loadPlugin = async function () {
|
|||||||
if (main.pluginUseCompress) {
|
if (main.pluginUseCompress) {
|
||||||
await main.loadScript(`project/plugin.min.js?v=${main.version}`);
|
await main.loadScript(`project/plugin.min.js?v=${main.version}`);
|
||||||
} else {
|
} else {
|
||||||
await main.loadScript(
|
await main.loadScript(`src/plugin/game/index.js`, true);
|
||||||
`project/plugin/index.js?v=${main.version}`,
|
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1018,15 +1018,6 @@ events.prototype.pushBox = function (data) {
|
|||||||
if (data.event.id == 'box') core.removeBlock(data.x, data.y);
|
if (data.event.id == 'box') core.removeBlock(data.x, data.y);
|
||||||
else core.setBlock('flower', data.x, data.y);
|
else core.setBlock('flower', data.x, data.y);
|
||||||
// 勇士前进一格,然后触发推箱子后事件
|
// 勇士前进一格,然后触发推箱子后事件
|
||||||
core.insertAction([
|
|
||||||
{ type: 'moveAction' },
|
|
||||||
{ type: 'function', function: 'function() { core.afterPushBox(); }' }
|
|
||||||
]);
|
|
||||||
};
|
|
||||||
|
|
||||||
////// 推箱子后的事件 //////
|
|
||||||
events.prototype.afterPushBox = function () {
|
|
||||||
return this.eventdata.afterPushBox();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
events.prototype._sys_ski = function (data, callback) {
|
events.prototype._sys_ski = function (data, callback) {
|
||||||
|
Binary file not shown.
BIN
project/fonts/normal.ttf
Normal file
BIN
project/fonts/normal.ttf
Normal file
Binary file not shown.
@ -484,19 +484,6 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (todo.length > 0) core.insertAction(todo, x, y);
|
if (todo.length > 0) core.insertAction(todo, x, y);
|
||||||
},
|
|
||||||
afterPushBox: function () {
|
|
||||||
// 推箱子后的事件
|
|
||||||
if (core.searchBlock('box').length == 0) {
|
|
||||||
// 可以通过if语句来进行开门操作
|
|
||||||
/*
|
|
||||||
if (core.status.floorId=='xxx') { // 在某个楼层
|
|
||||||
core.insertAction([ // 插入一条事件
|
|
||||||
{"type": "openDoor", "loc": [x,y]} // 开门
|
|
||||||
])
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
enemys: {
|
enemys: {
|
||||||
@ -1906,23 +1893,6 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
},
|
|
||||||
parallelDo: function (timestamp) {
|
|
||||||
// 并行事件处理,可以在这里写任何需要并行处理的脚本或事件
|
|
||||||
// 该函数将被系统反复执行,每次执行间隔视浏览器或设备性能而定,一般约为16.6ms一次
|
|
||||||
// 参数timestamp为“从游戏资源加载完毕到当前函数执行时”的时间差,以毫秒为单位
|
|
||||||
|
|
||||||
// 检查当前是否处于游戏开始状态
|
|
||||||
if (!core.isPlaying()) return;
|
|
||||||
|
|
||||||
// 执行当前楼层的并行事件处理
|
|
||||||
if (core.status.floorId) {
|
|
||||||
try {
|
|
||||||
eval(core.floors[core.status.floorId].parallelDo);
|
|
||||||
} catch (e) {
|
|
||||||
console.error(e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
ui: {
|
ui: {
|
||||||
|
2
project/plugin.min.js
vendored
2
project/plugin.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user