feat: 地图渲染大致完成

This commit is contained in:
AncTe committed 2024-05-16 22:43:24 +08:00
1 parent 2316bc4cad
commit 117bd94928
30 files changed
+1921 -148

No files matched your search

+4 -2
View File
@@ -57,11 +57,13 @@ export function init() {
const hso = hyper('sin', 'out');
let time2 = Date.now();
Mota.rewrite(core.control, '_moveAction_moving', 'front', () => {
const t = setting.getValue('screen.smoothView', false) ? 200 : 0;
const f = core.status.floorId === 'tower6';
const t = setting.getValue('screen.smoothView', false) && !f ? 200 : 0;
if (Date.now() - time2 > 20) tran.mode(hso).time(t).absolute();
});
Mota.rewrite(core.control, 'moveDirectly', 'front', () => {
const t = setting.getValue('screen.smoothView', false) ? 600 : 0;
const f = core.status.floorId === 'tower6';
const t = setting.getValue('screen.smoothView', false) && !f ? 600 : 0;
time2 = Date.now();
tran.mode(hso).time(t).absolute();
});