cutechicken commited on
Commit
27e962a
β€’
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');