forgot to add BARRIERS to output.txt

This commit is contained in:
Alexandre 2025-06-15 20:44:21 +02:00
parent a4ee6d55b5
commit 218ed97f16
12 changed files with 804 additions and 245 deletions

View File

@ -1 +1 @@
15 60 353 94

Binary file not shown.

Binary file not shown.

View File

@ -75,6 +75,7 @@ let metai = ref 0 in
let roomSize = read_int meta metai in (* integer (meters) *) let roomSize = read_int meta metai in (* integer (meters) *)
let maximumSpeed = read_int meta metai in (* integer (meters/seconds) *) let maximumSpeed = read_int meta metai in (* integer (meters/seconds) *)
let playerRadius = read_int meta metai in (* integer *) let playerRadius = read_int meta metai in (* integer *)
let areBarriers = read_int meta metai in (* 0/1 *)
let friction = read_float meta metai in (* float (between 0.0 and 1.0) *) let friction = read_float meta metai in (* float (between 0.0 and 1.0) *)
let restitutionFactor = read_float meta metai in (* float (between 0.0 and 1.0) *) let restitutionFactor = read_float meta metai in (* float (between 0.0 and 1.0) *)
let trackDistance = read_float meta metai in (* let trackDistance = read_float meta metai in (*

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -1,15 +1,17 @@
4 4
0 (1 0) (15.98 83.38) 0 (2 0) (44.74 79.84)
1 (6 0) (12.66 31.55) 1 (4 2) (29.89 68.20)
2 (1 0) (22.92 36.40) 2 (4 2) (44.91 24.65)
3 (3 0) (80.42 49.95) 3 (2 0) (37.59 54.88)
3 3
3 10 5 5
.S11111114 ..S14
E........0 ....0
2111111115 ...35
.E15.
.....
100 220 5 0.90 0.80 0.20 0.00 0.20 100 220 5 0 0.80 0.20 0.00 0.20 0.00
Room Size, Maximum speed, Player Radius, Friction, Restitution factor, Track Distance to Edge, Magnetic Field, Slow zone Width Room Size, Maximum speed, Player Radius, Barriers (0/1) Friction, Restitution factor, Track Distance to Edge, Magnetic Field, Slow zone Width

View File

@ -71,8 +71,8 @@ void write_output(char* stream, level* lvl, int nPl) {
fprintf(ptr, "\n"); fprintf(ptr, "\n");
} }
fprintf(ptr, "\n"); fprintf(ptr, "\n");
fprintf(ptr, "%d %d %d %.2lf %.2lf %.2lf %.2lf %.2lf\n", ROOM_SIZE, MAX_SPEED, PLAYER_R, FRICTION, RESTITUTION_WALL, DIST_EDGE, B, STR2_W); fprintf(ptr, "%d %d %d %d %.2lf %.2lf %.2lf %.2lf %.2lf\n", ROOM_SIZE, MAX_SPEED, PLAYER_R, BARRIERS, RESTITUTION_WALL, DIST_EDGE, B, STR2_W);
fprintf(ptr, "\nRoom Size, Maximum speed, Player Radius, Friction, Restitution factor, Track Distance to Edge, Magnetic Field, Slow zone Width"); fprintf(ptr, "\nRoom Size, Maximum speed, Player Radius, Barriers (0/1) Friction, Restitution factor, Track Distance to Edge, Magnetic Field, Slow zone Width");
fclose(ptr); fclose(ptr);
} }