Skip to content

Commit

Permalink
docs(readme): Update demo video
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Nov 13, 2024
1 parent 8b7c628 commit 9c2dbfc
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 24 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Play Conway's Game of Life in your terminal!

<p align="center">
<picture>
<source media="(prefers-color-scheme: light)" srcset="https://github.com/user-attachments/assets/e4b018cd-bcc8-4439-9c99-35d4114a9854">
<img width="720" alt="cli-of-life demo" src="https://github.com/user-attachments/assets/999139eb-6ec7-4b47-bc37-076d15202a31">
<source media="(prefers-color-scheme: light)" srcset="https://github.com/user-attachments/assets/da285c94-da85-4adf-9a14-a0505236f50f">
<img width="720" alt="cli-of-life demo" src="https://github.com/user-attachments/assets/37d3a656-a362-4f75-baf8-c37af75f8376">
</picture>
</p>

Expand Down
83 changes: 61 additions & 22 deletions assets/demo.tape
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Output cli-of-life.gif

Set TypingSpeed 20ms
Set TypingSpeed 150ms

Set Theme "Builtin Dark"
# Set Theme "Builtin Light"
Expand All @@ -13,41 +13,80 @@ Set WindowBar Colorful
Set BorderRadius 10

Hide
Type@0 'cli-of-life() ( ./cli-of-life "$@" 2>/dev/null ); clear'
Type@0 './cli-of-life'
Enter
Sleep 100ms
Show
Sleep 50ms

Type "cli-of-life --play https://conwaylife.com/patterns/gosperglidergun.rle"
Sleep 400ms
# Gosper glider gun
Sleep 1s
Down
Sleep 500ms
Enter
Sleep 500ms
Enter
Sleep 500ms
Down 7
Sleep 500ms
Enter
Sleep 50ms
Enter
Sleep 4s
Type "q"
Sleep 250ms

Type "cli-of-life --play https://conwaylife.com/patterns/3blocktwinbeesshuttle.rle"
Sleep 400ms
# Twin bees shuttle
Escape
Sleep 500ms
Down 3
Sleep 300ms
Enter
Sleep 3s
Type "q"
Sleep 250ms
Sleep 300ms
Enter
Sleep 300ms
Up 7
Sleep 500ms
Enter
Sleep 50ms
Enter
Sleep 4s

Type "cli-of-life --play https://conwaylife.com/patterns/breeder1.rle"
Sleep 400ms
# Breeder 1
Escape
Sleep 500ms
Down 3
Sleep 300ms
Enter
Sleep 300ms
Enter
Sleep 300ms
Down 2
Sleep 500ms
Enter
Sleep 50ms
Enter
Sleep 200ms
Type@200ms "-->wddd-->wddd-->>>--wddddddd"
Sleep 3s
Type "<<<<<"
Sleep 2s
Type@50ms "<<<<<"
Type@250ms "++++++++"
Sleep 1s
Type "q"
Sleep 250ms

Type "cli-of-life --play https://conwaylife.com/patterns/gabrielsp138.rle"
Sleep 400ms
# Gabriel's p138
Escape
Sleep 500ms
Down 3
Sleep 300ms
Enter
Sleep 300ms
Enter
Sleep 300ms
Down 3
Sleep 500ms
Enter
Sleep 50ms
Enter
Sleep 3s
Type "q"
Sleep 250ms

Escape
Sleep 500ms
Down 2
Sleep 500ms

0 comments on commit 9c2dbfc

Please sign in to comment.