Spaces:
Running
Running
Update index.html
Browse files- index.html +10 -10
index.html
CHANGED
|
@@ -321,31 +321,31 @@
|
|
| 321 |
for (y = 1; y < 5; y++) {
|
| 322 |
path.push({x, y});
|
| 323 |
}
|
| 324 |
-
waypoints.push({x, y-1});
|
| 325 |
|
| 326 |
// Go right
|
| 327 |
for (x = 10; x < 15; x++) {
|
| 328 |
-
path.push({x, y-1});
|
| 329 |
}
|
| 330 |
-
waypoints.push({x-1, y-1});
|
| 331 |
|
| 332 |
// Go down
|
| 333 |
for (y = 5; y < 10; y++) {
|
| 334 |
-
path.push({x-1, y});
|
| 335 |
}
|
| 336 |
-
waypoints.push({x-1, y-1});
|
| 337 |
|
| 338 |
// Go left
|
| 339 |
for (x = 14; x > 5; x--) {
|
| 340 |
-
path.push({x, y-1});
|
| 341 |
}
|
| 342 |
-
waypoints.push({x+1, y-1});
|
| 343 |
|
| 344 |
// Go down to exit (blue)
|
| 345 |
for (y = 10; y < 15; y++) {
|
| 346 |
-
path.push({x+1, y});
|
| 347 |
}
|
| 348 |
-
waypoints.push({x+1, y-1});
|
| 349 |
|
| 350 |
// Generate buildable areas (not on path)
|
| 351 |
for (let y = 0; y < gridHeight; y++) {
|
|
@@ -957,5 +957,5 @@
|
|
| 957 |
}
|
| 958 |
});
|
| 959 |
</script>
|
| 960 |
-
<
|
| 961 |
</html>
|
|
|
|
| 321 |
for (y = 1; y < 5; y++) {
|
| 322 |
path.push({x, y});
|
| 323 |
}
|
| 324 |
+
waypoints.push({x: x, y: y - 1});
|
| 325 |
|
| 326 |
// Go right
|
| 327 |
for (x = 10; x < 15; x++) {
|
| 328 |
+
path.push({x: x, y: y-1});
|
| 329 |
}
|
| 330 |
+
waypoints.push({x: x-1, y: y-1});
|
| 331 |
|
| 332 |
// Go down
|
| 333 |
for (y = 5; y < 10; y++) {
|
| 334 |
+
path.push({x: x-1, y: y});
|
| 335 |
}
|
| 336 |
+
waypoints.push({x: x-1, y: y-1});
|
| 337 |
|
| 338 |
// Go left
|
| 339 |
for (x = 14; x > 5; x--) {
|
| 340 |
+
path.push({x: x, y: y-1});
|
| 341 |
}
|
| 342 |
+
waypoints.push({x: x+1, y: y-1});
|
| 343 |
|
| 344 |
// Go down to exit (blue)
|
| 345 |
for (y = 10; y < 15; y++) {
|
| 346 |
+
path.push({x: x+1, y: y});
|
| 347 |
}
|
| 348 |
+
waypoints.push({x: x+1, y: y-1});
|
| 349 |
|
| 350 |
// Generate buildable areas (not on path)
|
| 351 |
for (let y = 0; y < gridHeight; y++) {
|
|
|
|
| 957 |
}
|
| 958 |
});
|
| 959 |
</script>
|
| 960 |
+
</body>
|
| 961 |
</html>
|