mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-04 02:45:04 +08:00
feat: 新的渲染系统
This commit is contained in:
1 parent
af38d2e47e
commit
2f8fbd375c
34 files changed
+1173
-179
No files matched your search
+1
-1
@@ -6,7 +6,7 @@ let pop: any[] = [];
|
||||
let time = 0;
|
||||
|
||||
export function init() {
|
||||
core.registerAnimationFrame('pop', true, popValue);
|
||||
// core.registerAnimationFrame('pop', true, popValue);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { sleep } from 'mutate-animate';
|
||||
import { tip } from './utils';
|
||||
|
||||
export default function init() {
|
||||
@@ -29,6 +30,12 @@ window.addEventListener('resize', () => {
|
||||
});
|
||||
checkMobile();
|
||||
|
||||
sleep(2000).then(() => {
|
||||
if (!isMobile) {
|
||||
tip('info', `注意,不推荐使用浏览器的缩放功能,使用游戏内的缩放即可`);
|
||||
}
|
||||
});
|
||||
|
||||
function checkMobile() {
|
||||
if (isMobile && !alerted) {
|
||||
tip(
|
||||
|
||||
@@ -242,9 +242,6 @@ export function tip(
|
||||
class: 'antdv-message'
|
||||
});
|
||||
}
|
||||
sleep(2000).then(() => {
|
||||
tip('info', `注意,不推荐使用浏览器的缩放功能,使用游戏内的缩放即可`);
|
||||
});
|
||||
|
||||
/**
|
||||
* 设置文字分段换行等
|
||||
|
||||
Reference in new issue
Block a user