blob: acad47a6bbac89ecfa055b2255b6536f49ab8b63 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# Live reload keeps State: a new field, a paused replay, the edited build
# ({v2}: blue vehicles), the same seed and vehicles after it, then play on.
frames 30
click 320 180
frames 30
console record 0
frames 30
console stop
console play 0
frames 10
console pause
frames 2
expect flowfield.seed 2947
expect vehicles[5].position[0] 595.765 ~0.01
screenshot .zig-cache/e2e/flow_field-before.png
frames 1
load {v2}
expect flowfield.seed 2947
expect vehicles[5].position[0] 595.765 ~0.01
frames 2
screenshot .zig-cache/e2e/flow_field-after.png
frames 1
expect-different-screenshot .zig-cache/e2e/flow_field-before.png .zig-cache/e2e/flow_field-after.png
# Unpaused: the replay goes on from where it was.
console pause
frames 15
expect clock.count 86
|