fix: 优化跳跃和下落手感

This commit is contained in:
cancerai committed 2026-10-24 01:54:39 +08:00
1 parent ada64fe4be
commit afe2f64b9b
25 files changed
+1197 -188

No files matched your search

+4 -4
View File
@@ -290,6 +290,7 @@ function loop(now) {
}
// ---------------- 启动 ----------------
let settingsFrom = 'scr-title'; // 进入设置前的界面,确定后返回
Save.load();
Audio2.enabled = Save.data.audio !== false;
@@ -297,10 +298,9 @@ UI.init({
play: (lv) => { G.fromEditor = false; startLevel(lv, lv.builtin === false ? -1 : (lv.index ?? -1)); },
levels: toLevels,
manage: () => UI.setManage(!UI.manage),
help: () => UI.show('scr-help'),
editor: toEditor,
settings: () => { Settings.enter(); UI.show('scr-settings'); },
'set-ok': () => Settings.confirm(),
settings: () => { settingsFrom = UI.cur; Settings.enter(); UI.show('scr-settings'); },
'set-ok': () => { Settings.confirm(); UI.show(settingsFrom); },
'set-reset': () => Settings.reset(),
back: toTitle,
resume,
@@ -325,7 +325,7 @@ addEventListener('keydown', unlock);
// 移动端虚拟手柄
Touch.init({ pause, suicide, shoot });
Settings.init();
Settings.init(useTouch);
UI.show('scr-title');
requestAnimationFrame(loop);