Spaces:
Running
Running
Update game.js
Browse files
game.js
CHANGED
@@ -1097,11 +1097,12 @@ class Game {
|
|
1097 |
const rollDegrees = this.fighter.rotation.z * (180 / Math.PI);
|
1098 |
hudElement.style.transform = `translate(-50%, -50%) rotate(${-rollDegrees}deg)`;
|
1099 |
|
1100 |
-
// ํผ์น ๋๋ ์
๋ฐ์ดํธ
|
1101 |
const pitchLadder = document.getElementById('pitchLadder');
|
1102 |
if (pitchLadder) {
|
1103 |
const pitchDegrees = this.fighter.rotation.x * (180 / Math.PI);
|
1104 |
-
|
|
|
1105 |
pitchLadder.style.transform = `translateY(${pitchOffset}px)`;
|
1106 |
}
|
1107 |
|
@@ -1597,4 +1598,5 @@ window.addEventListener('gameReady', () => {
|
|
1597 |
document.addEventListener('DOMContentLoaded', () => {
|
1598 |
console.log('์ ํฌ๊ธฐ ์๋ฎฌ๋ ์ดํฐ ์ด๊ธฐํ ์ค...');
|
1599 |
window.gameInstance = new Game();
|
1600 |
-
});
|
|
|
|
1097 |
const rollDegrees = this.fighter.rotation.z * (180 / Math.PI);
|
1098 |
hudElement.style.transform = `translate(-50%, -50%) rotate(${-rollDegrees}deg)`;
|
1099 |
|
1100 |
+
// ํผ์น ๋๋ ์
๋ฐ์ดํธ - ์์ ๋ ๋ถ๋ถ
|
1101 |
const pitchLadder = document.getElementById('pitchLadder');
|
1102 |
if (pitchLadder) {
|
1103 |
const pitchDegrees = this.fighter.rotation.x * (180 / Math.PI);
|
1104 |
+
// ์์ : ์์๋ฅผ ๊ณฑํด์ ๋ฐ๋ ๋ฐฉํฅ์ผ๋ก, 10๋๋น 20ํฝ์
|
1105 |
+
const pitchOffset = -pitchDegrees * 2;
|
1106 |
pitchLadder.style.transform = `translateY(${pitchOffset}px)`;
|
1107 |
}
|
1108 |
|
|
|
1598 |
document.addEventListener('DOMContentLoaded', () => {
|
1599 |
console.log('์ ํฌ๊ธฐ ์๋ฎฌ๋ ์ดํฐ ์ด๊ธฐํ ์ค...');
|
1600 |
window.gameInstance = new Game();
|
1601 |
+
});Intensity}) 50%,
|
1602 |
+
rgba(0, 0, 0, ${blur
|