diff --git a/html/images/space.svg b/html/images/space.svg
index 696a2e1..6090f26 100644
--- a/html/images/space.svg
+++ b/html/images/space.svg
@@ -74,12 +74,12 @@
-
+
-
-
-
-
+
+
+
+
@@ -360,8 +360,8 @@
return hc <= shipRadius;
}
- function detectCornerCollision([xc, yc], pts) {
- return pts.some(([x, y]) => {
+ function detectCornerCollision([xc, yc], corners) {
+ return corners.some(([x, y]) => {
cornerPt.x = x - xc;
cornerPt.y = y - yc;
@@ -369,9 +369,9 @@
});
}
- function detectCollisions(position, corners, edges) {
+ function detectCollisions(position, walls, edges) {
return [
- [corners, corner => detectCornerCollision(position, corner)],
+ [walls, wall => detectCornerCollision(position, wall)],
[edges, edge => detectEdgeCollision(position, edge)]
].some(([t, f]) => t.some(f))
}