summaryrefslogtreecommitdiff
path: root/test/scene_live.script
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-16 23:59:29 -0300
committerGabriel Schneider <[email protected]>2026-11-17 12:15:01 -0300
commitaabb92d26f6b46cd4c482e0e2cbc8e9e9751db0d (patch)
treef5139ed90cf1747f3aa3aaa0f6266bab2a335c10 /test/scene_live.script
parentc7ebfb6d18c44fec676da3d683e0b4e54001bd21 (diff)
parentbc6fe168278957ad15cf87826c8410e7358e0849 (diff)
downloadsketchbook-aabb92d26f6b46cd4c482e0e2cbc8e9e9751db0d.tar.gz
sketchbook-aabb92d26f6b46cd4c482e0e2cbc8e9e9751db0d.zip
Merge the session recorder and the talk primitives
Recording (sessions, marks, clips, the reload speed-ups under them) and anim's Deck with its example talk, together; no conflicts; zig build test: 161/161 steps, 127/127 tests. Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'test/scene_live.script')
-rw-r--r--test/scene_live.script21
1 files changed, 13 insertions, 8 deletions
diff --git a/test/scene_live.script b/test/scene_live.script
index 30b2087..e480d8d 100644
--- a/test/scene_live.script
+++ b/test/scene_live.script
@@ -1,6 +1,9 @@
-# The live test scene, through the player. It holds at the pause.
+# The live test scene, through the player. At the pause it waits for a
+# click, time running on and nothing after the pause starting.
frames 150
-expect t 2
+expect deck.waiting true
+expect deck.t 2.5 ~0.02
+expect deck.log.len 0
screenshot .zig-cache/anim/live.png
# The custom panel is over the circle added before it,
expect-pixel .zig-cache/anim/live.png 600 330 32 64 96 255 1
@@ -11,23 +14,25 @@ expect-pixel .zig-cache/anim/live.png 725 400 131 193 103 255 1
expect-pixel .zig-cache/anim/live.png 600 390 240 172 95 255 1
expect-pixel .zig-cache/anim/live.png 680 390 32 64 96 255 1
# Half way through its move it is half way.
-console set playing false
-console set t 1.5
+console set deck.playing false
+console set deck.t 1.5
screenshot .zig-cache/anim/live-moving.png
expect-pixel .zig-cache/anim/live-moving.png 400 330 32 64 96 255 1
expect-pixel .zig-cache/anim/live-moving.png 600 330 252 98 85 255 1
# The CPU renderer layers the same way.
-console set t 2
+console set deck.t 2
key b
expect backend cpu
screenshot .zig-cache/anim/live-cpu.png
expect-pixel .zig-cache/anim/live-cpu.png 600 330 32 64 96 255 1
expect-pixel .zig-cache/anim/live-cpu.png 725 400 131 193 103 255 1
key b
-# A click continues: the camera zooms to 2 and the panel fades to half,
-# over the background where it now reaches.
+# A click opens the pause and plays on: the camera zooms to 2 and the
+# panel fades to half, over the background where it now reaches.
click 640 360
-expect playing true
+expect deck.playing true
+expect deck.log.len 1
+expect deck.waiting false
frames 70
screenshot .zig-cache/anim/live-zoom.png
expect-pixel .zig-cache/anim/live-zoom.png 800 300 30 46 64 255 2