โ– humdrum codex / sportsball v0.1.1
license AGPL-3.0
1.2 KB raw
 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
# VHS tape for sportsball โ€” regenerate with: vhs docs/demo.tape
# Produces docs/demo.gif plus stills (dashboard/detail/standings PNGs).
# Needs live ESPN data at record time; run during an in-season slate.

Output docs/demo.gif

Require go

Set Shell zsh
Set FontSize 13
Set Width 1500
Set Height 950
Set Padding 20
Set Framerate 24

# --- hidden setup: build a throwaway binary so the demo opens on the dashboard
Hide
Type "go build -o /tmp/sportsball-demo . && clear"
Enter
Sleep 10s
Show

# --- launch + let the poll loop fill the slate
Type "/tmp/sportsball-demo"
Enter
Sleep 6s
Screenshot docs/dashboard.png

# --- nudge the grid cursor around
Right
Sleep 800ms
Down
Sleep 800ms
Right
Sleep 1s

# --- filter to Recent (All -> Live -> Recent) so we open a played game
Type "v"
Sleep 1s
Type "v"
Sleep 1500ms

# --- open a finished game into the detail view (box score / scoring timeline)
Enter
Sleep 5s
Screenshot docs/detail.png
Sleep 2s

# --- back to dashboard, reset filter, then standings
Escape
Sleep 1s
Type "VV"
Sleep 1500ms
Type "S"
Sleep 3s
Screenshot docs/standings.png
Sleep 1500ms
Escape
Sleep 1s

# --- show theming
Type "t"
Sleep 1500ms
Type "t"
Sleep 1500ms

# --- quit
Type "q"
Sleep 1s