Spaces:
Running
Running
cutechicken
commited on
Update index.html
Browse files- index.html +3 -3
index.html
CHANGED
@@ -97,7 +97,7 @@
|
|
97 |
<div style="display:flex; gap:20px;">
|
98 |
<div id="tank1" style="text-align:center;">
|
99 |
<h3>PZ.IV</h3>
|
100 |
-
<img src="player2.png" width="
|
101 |
<p>300 Gold</p>
|
102 |
<p style="color: #4CAF50;">+50% HP</p>
|
103 |
<button onclick="buyTank('player2.png', 300, 'tank1')">Buy</button>
|
@@ -279,8 +279,8 @@ function buyTank(tankImg, cost, tankId) {
|
|
279 |
if (tankId === 'tank1') { // PZ.IV
|
280 |
player.maxHealth = 1500;
|
281 |
player.speed = defaultPlayerStats.speed; // 기본 이동속도로 복구
|
282 |
-
player.width =
|
283 |
-
player.height =
|
284 |
}
|
285 |
else if (tankId === 'tank2') { // TIGER
|
286 |
player.maxHealth = 2000;
|
|
|
97 |
<div style="display:flex; gap:20px;">
|
98 |
<div id="tank1" style="text-align:center;">
|
99 |
<h3>PZ.IV</h3>
|
100 |
+
<img src="player2.png" width="95" height="55">
|
101 |
<p>300 Gold</p>
|
102 |
<p style="color: #4CAF50;">+50% HP</p>
|
103 |
<button onclick="buyTank('player2.png', 300, 'tank1')">Buy</button>
|
|
|
279 |
if (tankId === 'tank1') { // PZ.IV
|
280 |
player.maxHealth = 1500;
|
281 |
player.speed = defaultPlayerStats.speed; // 기본 이동속도로 복구
|
282 |
+
player.width = 90; // PZ.IV의 크기 설정
|
283 |
+
player.height = 50; // PZ.IV의 크기 설정
|
284 |
}
|
285 |
else if (tankId === 'tank2') { // TIGER
|
286 |
player.maxHealth = 2000;
|