Spaces:
Running
Running
Update game.js
Browse files
game.js
CHANGED
|
@@ -3087,43 +3087,11 @@ class Game {
|
|
| 3087 |
console.log('Start voice error:', e);
|
| 3088 |
}
|
| 3089 |
|
| 3090 |
-
// ์๋ง ํ์
|
| 3091 |
-
|
| 3092 |
-
subtitle.id = 'gameSubtitle';
|
| 3093 |
-
subtitle.innerHTML = 'Listen up! Find and shut down all enemy squad that invaded their airspace.';
|
| 3094 |
-
subtitle.style.cssText = `
|
| 3095 |
-
position: fixed;
|
| 3096 |
-
bottom: 100px;
|
| 3097 |
-
left: 50%;
|
| 3098 |
-
transform: translateX(-50%);
|
| 3099 |
-
color: #ffffff;
|
| 3100 |
-
font-size: 24px;
|
| 3101 |
-
font-weight: bold;
|
| 3102 |
-
text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
|
| 3103 |
-
background: rgba(0,0,0,0.7);
|
| 3104 |
-
padding: 15px 30px;
|
| 3105 |
-
border-radius: 5px;
|
| 3106 |
-
z-index: 2000;
|
| 3107 |
-
text-align: center;
|
| 3108 |
-
max-width: 80%;
|
| 3109 |
-
pointer-events: none;
|
| 3110 |
-
`;
|
| 3111 |
-
|
| 3112 |
-
// DOM์ ์ถ๊ฐ
|
| 3113 |
-
setTimeout(() => {
|
| 3114 |
-
document.body.appendChild(subtitle);
|
| 3115 |
|
| 3116 |
-
|
| 3117 |
-
|
| 3118 |
-
subtitle.style.transition = 'opacity 0.5s';
|
| 3119 |
-
subtitle.style.opacity = '0';
|
| 3120 |
-
setTimeout(() => {
|
| 3121 |
-
if (subtitle.parentNode) {
|
| 3122 |
-
subtitle.remove();
|
| 3123 |
-
}
|
| 3124 |
-
}, 500);
|
| 3125 |
-
}, 5000);
|
| 3126 |
-
}, 100);
|
| 3127 |
|
| 3128 |
startBGM() {
|
| 3129 |
if (this.bgmPlaying || !this.bgm) return;
|
|
|
|
| 3087 |
console.log('Start voice error:', e);
|
| 3088 |
}
|
| 3089 |
|
| 3090 |
+
// ์๋ง ํ์
|
| 3091 |
+
this.showSubtitle('Listen up! Find and shut down all enemy squad that invaded their airspace.', 5000);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3092 |
|
| 3093 |
+
console.log('๊ฒ์ ์์!');
|
| 3094 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3095 |
|
| 3096 |
startBGM() {
|
| 3097 |
if (this.bgmPlaying || !this.bgm) return;
|