From 1a1e12ca04859407a9ff60d031ea5d57aa9b2b3e Mon Sep 17 00:00:00 2001 From: npmrun <1549469775@qq.com> Date: Mon, 31 Oct 2022 01:49:09 +0800 Subject: [PATCH] fixed bug --- .gitignore | 3 +- index.html | 9 ++++++ src/Game/Game.ts | 4 +-- src/Game/Sound.ts | 1 + src/Game/index.ts | 63 ++++++++++++++++++++++-------------- src/main.ts | 12 +++---- src/shims.d.ts | 1 + src/stages/page_control.ts | 26 +++++++++++++++ src/stages/page_loading.ts | 47 ++++++++++++++++++--------- src/stages/welcome/page_welcome.ts | 2 +- src/stages/welcome2/page_welcome2.ts | 8 ++--- tsconfig.json | 4 +-- 12 files changed, 125 insertions(+), 55 deletions(-) create mode 100644 src/shims.d.ts create mode 100644 src/stages/page_control.ts diff --git a/.gitignore b/.gitignore index 587e4ec..8da68ed 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules .cache -dist \ No newline at end of file +dist +.idea \ No newline at end of file diff --git a/index.html b/index.html index 30ed52f..76d77fd 100644 --- a/index.html +++ b/index.html @@ -14,10 +14,19 @@ } canvas{ display: block; + position: absolute; + inset: 0; + } + .loading{ + height: 100%; + width: 100%; + background: #000; + position: relative; }
+