summaryrefslogtreecommitdiff
path: root/examples/noc/test/accel_to_mouse.script
blob: 7c3339d17a213d60a14d69f005d03a173514987a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# The mover chases the pointer to the lower right: within its radius (24)
# after a second, past it after a second and a half, back inside after two.
# Then it turns around after the pointer to the upper left.
move 560 300
frames 64
expect position[0] 560 ~24
expect position[1] 300 ~24
frames 26
expect position[0] 615.2 ~0.1
expect position[1] 327.5 ~0.1
frames 30
expect position[0] 560 ~24
expect position[1] 300 ~24
move 80 60
frames 40
expect velocity[0] -4.47 ~0.01
expect velocity[1] -2.24 ~0.01
screenshot .zig-cache/e2e/accel_to_mouse.png