Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
pakastin committed Jun 10, 2024
1 parent db660e6 commit c1c04d5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions car.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
if (
circlesHit(
{ x: car.x, y: car.y, r: 7.5 },
{ x: localCar.x, y: localCar.y, r: 7.5 },
{ x: localCar.x, y: localCar.y, r: 7.5 }
)
) {
localCar.isHit = true;
Expand All @@ -234,7 +234,7 @@
bullet &&
circlesHit(
{ x: car.x, y: car.y, r: 7.5 },
{ x: bullet.x, y: bullet.y, r: 2 },
{ x: bullet.x, y: bullet.y, r: 2 }
)
) {
if (car !== localCar) {
Expand Down Expand Up @@ -307,7 +307,7 @@
Math.sin(angle + (3 * Math.PI) / 2) * 3 +
Math.sin(angle + (2 * Math.PI) / 2) * 3,
1,
1,
1
);
ctx.fillRect(
x -
Expand All @@ -317,7 +317,7 @@
Math.sin(angle + (3 * Math.PI) / 2) * 3 +
Math.sin(angle + (4 * Math.PI) / 2) * 3,
1,
1,
1
);
}

Expand Down Expand Up @@ -403,7 +403,7 @@
{ host: "https://car-hil1.pakastin.fi", city: "Hillsboro, Oregon" },
{ host: "https://car-ash1.pakastin.fi", city: "Ashburn, Virginia" },
],
{ host: "https://car.pakastin.fi", city: "Cloudflare (fallback)" },
{ host: "https://car.pakastin.fi", city: "Cloudflare (fallback)" }
);

$p.textContent = "Connected to " + host.city + ".";
Expand Down

0 comments on commit c1c04d5

Please sign in to comment.