blob: 82898488ffb1f556d4dfbabe9787b12c36646966 (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
# The bird falls; space (or a click) flaps. Pipes come every 100 steps
# from the right; passing one scores. The script flaps whenever the bird
# is down to about 295, which takes it through the first two gaps (the
# first is 237..337), then lets it drop: past one more pipe, onto the next.
# The round ends ("OOPS!"), nothing moves, and a click starts the next
# round, keeping the best score.
expect pipes.buffer[0].top 236.904 ~0.001
await bird.y 295 ~10
key space
frames 8
await bird.y 295 ~10
key space
frames 8
await bird.y 295 ~10
key space
frames 8
await bird.y 295 ~10
key space
frames 8
await bird.y 295 ~10
key space
frames 8
await bird.y 295 ~10
key space
frames 8
await bird.y 295 ~10
key space
frames 8
await bird.y 295 ~10
key space
frames 8
await bird.y 295 ~10
key space
frames 8
await bird.y 295 ~10
key space
frames 8
await bird.y 295 ~10
key space
frames 8
await bird.y 295 ~10
key space
frames 8
await bird.y 295 ~10
key space
frames 8
await bird.y 295 ~10
key space
frames 8
await bird.y 295 ~10
key space
frames 8
await bird.y 295 ~10
key space
frames 8
await bird.y 295 ~10
key space
frames 8
await bird.y 295 ~10
key space
frames 8
await bird.y 295 ~10
key space
frames 8
await bird.y 295 ~10
key space
frames 8
await bird.y 295 ~10
key space
frames 8
await bird.y 295 ~10
key space
frames 8
await bird.y 295 ~10
key space
frames 8
await bird.y 295 ~10
key space
frames 8
expect score 2
expect over false
screenshot .zig-cache/e2e/flappy_bird.png
await over true
expect score 3
expect best 3
frames 30
expect over true
screenshot .zig-cache/e2e/flappy_bird-over.png
click 320 180
expect over false
expect score 0
expect best 3
expect pipes.len 1
expect bird.y 120
|