Spaces:
Running
Running
Update game.js
Browse files
game.js
CHANGED
|
@@ -1386,6 +1386,12 @@ class Game {
|
|
| 1386 |
|
| 1387 |
async initialize() {
|
| 1388 |
try {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1389 |
// BGM์ด ์์ง ์ฌ์๋์ง ์์ ๊ฒฝ์ฐ์๋ง ์ฌ์
|
| 1390 |
if (!this.bgmPlaying && !this.bgm) {
|
| 1391 |
this.bgm = new Audio('sounds/BGM.ogg');
|
|
|
|
| 1386 |
|
| 1387 |
async initialize() {
|
| 1388 |
try {
|
| 1389 |
+
// ๋ก๋ฉ ์์
|
| 1390 |
+
this.isLoading = true;
|
| 1391 |
+
document.getElementById('loading').style.display = 'block';
|
| 1392 |
+
document.getElementById('startButton').disabled = true;
|
| 1393 |
+
document.getElementById('startButton').textContent = 'Loading...';
|
| 1394 |
+
|
| 1395 |
// BGM์ด ์์ง ์ฌ์๋์ง ์์ ๊ฒฝ์ฐ์๋ง ์ฌ์
|
| 1396 |
if (!this.bgmPlaying && !this.bgm) {
|
| 1397 |
this.bgm = new Audio('sounds/BGM.ogg');
|