Rename tank to ship

This commit is contained in:
2025-12-18 11:07:48 -08:00
parent 660bfba1b9
commit 4a44a21395

View File

@@ -15,12 +15,12 @@
fill: gray; fill: gray;
} }
.tank rect { .ship rect {
fill: green; fill: green;
transform: translate(-7.5px, -5px); transform: translate(-7.5px, -5px);
} }
.tank circle { .ship circle {
fill: white; fill: white;
} }
@@ -42,7 +42,7 @@
<g> <g>
<g class="hitbox"> <g class="hitbox">
<g class="tank"> <g class="ship">
<circle cx="0" cy="0" r="5"/> <circle cx="0" cy="0" r="5"/>
<line x1="0" y1="0" x2="0" y2="8" stroke="black"/> <line x1="0" y1="0" x2="0" y2="8" stroke="black"/>
</g> </g>
@@ -89,8 +89,8 @@
const fps = document.querySelector("#fps"); const fps = document.querySelector("#fps");
const info = document.querySelector("#debug"); const info = document.querySelector("#debug");
const tank = document.querySelector(".tank"); const ship = document.querySelector(".ship");
const gun = tank.querySelector('line'); const gun = ship.querySelector('line');
const hitbox = document.querySelector(".hitbox"); const hitbox = document.querySelector(".hitbox");
const bulletsContainer = document.querySelector("#bullets"); const bulletsContainer = document.querySelector("#bullets");

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB