From 6933f99ddb2d7103515d26838496309a807bba26 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 16 Nov 2026 21:28:20 -0300 Subject: Move standalone sketches into sketchbook examples --- examples/noc/test/bin_lattice.reload.script | 32 +++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 examples/noc/test/bin_lattice.reload.script (limited to 'examples/noc/test/bin_lattice.reload.script') diff --git a/examples/noc/test/bin_lattice.reload.script b/examples/noc/test/bin_lattice.reload.script new file mode 100644 index 0000000..5e158b5 --- /dev/null +++ b/examples/noc/test/bin_lattice.reload.script @@ -0,0 +1,32 @@ +# Live reload keeps State: a drag, a paused replay, the edited build ({v2}: +# blue bodies), the same boids and grid after it, then play on. +frames 60 +down 300 200 +move 320 200 +move 340 200 +up 340 200 +frames 30 +console record 0 +frames 30 +console stop +console play 0 +frames 10 +console pause +frames 2 +expect boids.len 2002 +expect boids.buffer[2001].position[0] 299.080 ~0.01 +expect grid.order[0] 490 +screenshot .zig-cache/e2e/bin_lattice-before.png +frames 1 +load {v2} +expect boids.len 2002 +expect boids.buffer[2001].position[0] 299.080 ~0.01 +expect grid.order[0] 490 +frames 2 +screenshot .zig-cache/e2e/bin_lattice-after.png +frames 1 +expect-different-screenshot .zig-cache/e2e/bin_lattice-before.png .zig-cache/e2e/bin_lattice-after.png +# Unpaused: the replay goes on from where it was. +console pause +frames 15 +expect clock.count 119 -- cgit v1.3