Spaces:
Running
Running
Update index.html
Browse files- index.html +4 -4
index.html
CHANGED
@@ -97,7 +97,7 @@
|
|
97 |
roadLength: 10000,
|
98 |
roadWidth: 15, // Wider road for 3 lanes
|
99 |
playerSpeed: 0.3, // Decreased player speed
|
100 |
-
trafficSpeed: 0.
|
101 |
colors: [
|
102 |
{ color: 0xff0000, name: "Red" },
|
103 |
{ color: 0x0000ff, name: "Blue" },
|
@@ -115,9 +115,9 @@
|
|
115 |
lanePositions: [-5, 0, 5], // Three lanes
|
116 |
vehicleTypes: ["car", "bus", "truck"],
|
117 |
vehicleProperties: {
|
118 |
-
car: { length: 2, width: 1, height: 0.8, speed: 1
|
119 |
-
bus: { length: 3.5, width: 1.2, height: 1.2, speed:
|
120 |
-
truck: { length: 4, width: 1.3, height: 1.5, speed: 0.
|
121 |
},
|
122 |
};
|
123 |
// Game state
|
|
|
97 |
roadLength: 10000,
|
98 |
roadWidth: 15, // Wider road for 3 lanes
|
99 |
playerSpeed: 0.3, // Decreased player speed
|
100 |
+
trafficSpeed: 0.5, // Increased base traffic speed
|
101 |
colors: [
|
102 |
{ color: 0xff0000, name: "Red" },
|
103 |
{ color: 0x0000ff, name: "Blue" },
|
|
|
115 |
lanePositions: [-5, 0, 5], // Three lanes
|
116 |
vehicleTypes: ["car", "bus", "truck"],
|
117 |
vehicleProperties: {
|
118 |
+
car: { length: 2, width: 1, height: 0.8, speed: 1 }, // Increased speed
|
119 |
+
bus: { length: 3.5, width: 1.2, height: 1.2, speed: 0.8 }, // Increased speed
|
120 |
+
truck: { length: 4, width: 1.3, height: 1.5, speed: 0.6 }, // Increased speed
|
121 |
},
|
122 |
};
|
123 |
// Game state
|