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

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB