blob: 7988bd109b868f266e2f1e67626dcaecdce5fe6f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# 120 boids burst from the center and form flocks; a drag adds one boid per
# pointer move while the button is down (mouseDragged), none for the press.
frames 120
expect boids.len 120
down 100 300
move 110 300
move 120 300
move 130 300
move 140 300
move 150 300
up 150 300
expect boids.len 125
# The last one was added at (150, 300) and has flown a step since.
expect boids.buffer[124].position[0] 150.77 ~0.01
# A move without the button adds none.
move 200 200
expect boids.len 125
frames 120
expect boids.buffer[0].position[0] 583.371 ~0.01
expect boids.buffer[0].position[1] 327.445 ~0.01
screenshot .zig-cache/e2e/flocking.png
|