diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-16 21:28:20 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-16 21:28:20 -0300 |
| commit | 6933f99ddb2d7103515d26838496309a807bba26 (patch) | |
| tree | 991c2fe7d4a57957222876e190fa4d16a0fb889c /examples/noc/test/flocking.reload.script | |
| parent | 82fca5c9f29124f37f6dcd08e73e6999ce44a69d (diff) | |
| download | sketchbook-6933f99ddb2d7103515d26838496309a807bba26.tar.gz sketchbook-6933f99ddb2d7103515d26838496309a807bba26.zip | |
Move standalone sketches into sketchbook examples
Diffstat (limited to 'examples/noc/test/flocking.reload.script')
| -rw-r--r-- | examples/noc/test/flocking.reload.script | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/examples/noc/test/flocking.reload.script b/examples/noc/test/flocking.reload.script new file mode 100644 index 0000000..3af0d12 --- /dev/null +++ b/examples/noc/test/flocking.reload.script @@ -0,0 +1,30 @@ +# Live reload keeps State: a drag, a paused replay, the edited build ({v2}: +# red bodies), the same boids 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 122 +expect boids.buffer[121].position[0] 294.264 ~0.01 +screenshot .zig-cache/e2e/flocking-before.png +frames 1 +load {v2} +expect boids.len 122 +expect boids.buffer[121].position[0] 294.264 ~0.01 +frames 2 +screenshot .zig-cache/e2e/flocking-after.png +frames 1 +expect-different-screenshot .zig-cache/e2e/flocking-before.png .zig-cache/e2e/flocking-after.png +# Unpaused: the replay goes on from where it was. +console pause +frames 15 +expect clock.count 119 |
