cutechicken commited on
Commit
27e962a
ยท
verified ยท
1 Parent(s): 55f177c

Update game.js

Browse files
Files changed (1) hide show
  1. game.js +6 -0
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');