Spaces:
Running
Running
cutechicken
commited on
Commit
β’
27e962a
1
Parent(s):
55f177c
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');
|