cutechicken commited on
Commit
e547644
ยท
verified ยท
1 Parent(s): f0d3868

Update game.js

Browse files
Files changed (1) hide show
  1. game.js +5 -3
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
- const pitchOffset = pitchDegrees * 3; // ํ”ผ์น˜์— ๋”ฐ๋ฅธ ์ˆ˜์ง ์˜คํ”„์…‹
 
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