fun_ci 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +34 -0
- data/README.md +3 -1
- data/exe/fun-ci-trigger +6 -6
- data/exe/fun-ci-tui +9 -4
- data/lib/fun_ci/animations/celebrate.rb +210 -0
- data/lib/fun_ci/animations/explosion.rb +138 -0
- data/lib/fun_ci/animations/flash.rb +205 -0
- data/lib/fun_ci/animations/idle.rb +127 -0
- data/lib/fun_ci/animations/leprechauns.rb +240 -0
- data/lib/fun_ci/animations/running.rb +129 -0
- data/lib/fun_ci/animations/success.rb +281 -0
- data/lib/fun_ci/animations/yay.rb +169 -0
- data/lib/fun_ci/cli.rb +20 -14
- data/lib/fun_ci/persistence/database.rb +52 -0
- data/lib/fun_ci/persistence/pipeline_recorder.rb +74 -0
- data/lib/fun_ci/persistence/pipeline_run.rb +59 -0
- data/lib/fun_ci/persistence/stage_job.rb +46 -0
- data/lib/fun_ci/{state_machine.rb → persistence/state_machine.rb} +3 -12
- data/lib/fun_ci/pipeline/background_wrapper.rb +27 -0
- data/lib/fun_ci/pipeline/pipeline_forker.rb +38 -0
- data/lib/fun_ci/pipeline/process_runner.rb +28 -0
- data/lib/fun_ci/pipeline/progress_reporter.rb +31 -0
- data/lib/fun_ci/pipeline/stage_runner.rb +85 -0
- data/lib/fun_ci/pipeline/stale_pipeline_canceller.rb +53 -0
- data/lib/fun_ci/pipeline/trigger.rb +153 -0
- data/lib/fun_ci/setup/hook_writer.rb +75 -0
- data/lib/fun_ci/setup/installer.rb +55 -0
- data/lib/fun_ci/setup/maven_linter_detector.rb +26 -0
- data/lib/fun_ci/setup/project_config.rb +42 -0
- data/lib/fun_ci/setup/project_detector.rb +22 -0
- data/lib/fun_ci/setup/setup_checker.rb +30 -0
- data/lib/fun_ci/setup/template_writer.rb +53 -0
- data/lib/fun_ci/tui/admin_tui.rb +90 -0
- data/lib/fun_ci/tui/animation.rb +49 -0
- data/lib/fun_ci/tui/animation_compositor.rb +107 -0
- data/lib/fun_ci/tui/animation_frames.rb +112 -0
- data/lib/fun_ci/tui/animation_library.rb +46 -0
- data/lib/fun_ci/tui/animation_renderer.rb +144 -0
- data/lib/fun_ci/tui/ansi.rb +34 -0
- data/lib/fun_ci/tui/board_data.rb +53 -0
- data/lib/fun_ci/tui/board_renderer.rb +105 -0
- data/lib/fun_ci/tui/duration_formatter.rb +24 -0
- data/lib/fun_ci/tui/header_animation_manager.rb +71 -0
- data/lib/fun_ci/tui/header_animation_player.rb +45 -0
- data/lib/fun_ci/tui/key_handler.rb +86 -0
- data/lib/fun_ci/tui/looping_animation_player.rb +45 -0
- data/lib/fun_ci/tui/relative_time.rb +22 -0
- data/lib/fun_ci/tui/row_formatter.rb +108 -0
- data/lib/fun_ci/tui/screen.rb +103 -0
- data/lib/fun_ci/tui/spinner.rb +24 -0
- data/lib/fun_ci/tui/stage_change_detector.rb +58 -0
- data/lib/fun_ci/tui/streak_counter.rb +29 -0
- data/lib/fun_ci/tui/terminal_input.rb +69 -0
- data/lib/fun_ci.rb +6 -6
- metadata +49 -28
- data/lib/fun_ci/admin_tui.rb +0 -226
- data/lib/fun_ci/ansi.rb +0 -21
- data/lib/fun_ci/background_wrapper.rb +0 -27
- data/lib/fun_ci/board_data.rb +0 -51
- data/lib/fun_ci/database.rb +0 -50
- data/lib/fun_ci/duration_formatter.rb +0 -23
- data/lib/fun_ci/hook_writer.rb +0 -73
- data/lib/fun_ci/installer.rb +0 -53
- data/lib/fun_ci/maven_linter_detector.rb +0 -24
- data/lib/fun_ci/pipeline_forker.rb +0 -36
- data/lib/fun_ci/pipeline_recorder.rb +0 -72
- data/lib/fun_ci/pipeline_run.rb +0 -57
- data/lib/fun_ci/progress_reporter.rb +0 -29
- data/lib/fun_ci/project_config.rb +0 -40
- data/lib/fun_ci/project_detector.rb +0 -18
- data/lib/fun_ci/relative_time.rb +0 -20
- data/lib/fun_ci/row_formatter.rb +0 -106
- data/lib/fun_ci/screen.rb +0 -81
- data/lib/fun_ci/setup_checker.rb +0 -28
- data/lib/fun_ci/spinner.rb +0 -22
- data/lib/fun_ci/stage_job.rb +0 -44
- data/lib/fun_ci/stage_runner.rb +0 -108
- data/lib/fun_ci/stale_pipeline_canceller.rb +0 -51
- data/lib/fun_ci/streak_counter.rb +0 -30
- data/lib/fun_ci/template_writer.rb +0 -51
- data/lib/fun_ci/trigger.rb +0 -150
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module FunCi
|
|
4
|
+
module Animations
|
|
5
|
+
module Flash
|
|
6
|
+
# Flash of inspiration — dense colour field with jagged lightning bolt
|
|
7
|
+
# Run: ruby exe/animation-player animations/flash.rb
|
|
8
|
+
|
|
9
|
+
w = "\e[1;37m" # bold white
|
|
10
|
+
y = "\e[1;33m" # bold yellow
|
|
11
|
+
Y = "\e[33m" # yellow
|
|
12
|
+
g = "\e[1;32m" # bold green
|
|
13
|
+
G = "\e[32m" # green
|
|
14
|
+
d = "\e[2;32m" # dim green
|
|
15
|
+
c = "\e[1;36m" # bold cyan
|
|
16
|
+
C = "\e[36m" # cyan
|
|
17
|
+
D = "\e[2;37m" # dim white
|
|
18
|
+
x = "\e[0m" # reset
|
|
19
|
+
|
|
20
|
+
raw_frames = [
|
|
21
|
+
# Frame 1 — green field, tiny seed
|
|
22
|
+
[
|
|
23
|
+
" #{d}* . * . * . * . * . * . * . * . * . * . *#{x}",
|
|
24
|
+
" #{d}. * . * . * . * . * . * . * . * . * . * .#{x}",
|
|
25
|
+
" #{d}* . * . * . * . * . * . * . * . * . * . *#{x}",
|
|
26
|
+
" #{d}. * . * . * . * . * . * . * . * . * . * .#{x}",
|
|
27
|
+
" #{d}* . * . * . * . * . * . * . * . * . * . *#{x}",
|
|
28
|
+
" #{d}. * . * . * . * . #{D}o#{d} . * . * . * . * . .#{x}",
|
|
29
|
+
" #{d}* . * . * . * . * . * . * . * . * . * . *#{x}",
|
|
30
|
+
" #{d}. * . * . * . * . * . * . * . * . * . * .#{x}",
|
|
31
|
+
" #{d}* . * . * . * . * . * . * . * . * . * . *#{x}",
|
|
32
|
+
" #{d}. * . * . * . * . * . * . * . * . * . * .#{x}",
|
|
33
|
+
" #{d}* . * . * . * . * . * . * . * . * . * . *#{x}",
|
|
34
|
+
],
|
|
35
|
+
# Frame 2 — seed brightens, faint bolt flicker
|
|
36
|
+
[
|
|
37
|
+
" #{d}. * . * . * . * . * . * . * . * . * . * .#{x}",
|
|
38
|
+
" #{d}* . * . * . * . * . * . * . * . * . * . *#{x}",
|
|
39
|
+
" #{d}. * . * . * . * . #{D}|#{d} . * . * . * . * . .#{x}",
|
|
40
|
+
" #{d}* . * . * .#{G} * . *#{D}/#{G}* . *#{d} . * . * . * .#{x}",
|
|
41
|
+
" #{d}. * . * . *#{G} . * #{y}*#{G} * . *#{d} . * . * . * .#{x}",
|
|
42
|
+
" #{d}* . * . * .#{G} * .#{D}\\#{G}* . * .#{d} * . * . * . *#{x}",
|
|
43
|
+
" #{d}. * . * . * . * . #{D}|#{d} . * . * . * . * . .#{x}",
|
|
44
|
+
" #{d}* . * . * . * . * . * . * . * . * . * . *#{x}",
|
|
45
|
+
" #{d}. * . * . * . * . * . * . * . * . * . * .#{x}",
|
|
46
|
+
" #{d}* . * . * . * . * . * . * . * . * . * . *#{x}",
|
|
47
|
+
" #{d}. * . * . * . * . * . * . * . * . * . * .#{x}",
|
|
48
|
+
],
|
|
49
|
+
# Frame 3 — bolt appears, core ignites
|
|
50
|
+
[
|
|
51
|
+
" #{d}. * . * . * . * . #{Y}|#{d} . * . * . * . * . .#{x}",
|
|
52
|
+
" #{d}* . * . * . * . *#{Y}/#{d}* . * . * . * . * . *#{x}",
|
|
53
|
+
" #{d}. * . * .#{G} * . #{g}*#{y}|#{g}*#{G} . #{g}*#{G} . *#{d} . * . * . * .#{x}",
|
|
54
|
+
" #{d}* . * . *#{G} . #{g}*#{G} .#{y}\\#{C}*#{G} . #{g}*#{G} .#{d} * . * . * .#{x}",
|
|
55
|
+
" #{d}. * . * .#{G} * #{c}*#{Y} . #{w}*#{y}|#{w}*#{Y} . #{c}*#{G} *#{d} . * . * . * .#{x}",
|
|
56
|
+
" #{d}* . * . *#{G} . #{g}*#{G} .#{y}/#{C}*#{G} . #{g}*#{G} .#{d} * . * . * .#{x}",
|
|
57
|
+
" #{d}. * . * .#{G} * . #{g}*#{y}|#{g}*#{G} . #{g}*#{G} . *#{d} . * . * . * .#{x}",
|
|
58
|
+
" #{d}* . * . * . * .#{Y}\\#{d}* . * . * . * . * . * .#{x}",
|
|
59
|
+
" #{d}. * . * . * . * . #{Y}|#{d} . * . * . * . * . .#{x}",
|
|
60
|
+
" #{d}* . * . * . * . * . * . * . * . * . * . *#{x}",
|
|
61
|
+
" #{d}. * . * . * . * . * . * . * . * . * . * .#{x}",
|
|
62
|
+
],
|
|
63
|
+
# Frame 4 — bolt strikes through, core expands
|
|
64
|
+
[
|
|
65
|
+
" #{d}. * . * . * .#{G} *#{g} .#{y}|#{g} .#{G} * .#{d} * . * . * . * .#{x}",
|
|
66
|
+
" #{d}* . *#{G} . * . #{g}*#{G} .#{y}/#{g}*#{G} . #{g}*#{G} . #{g}*#{G} . *#{d} . * . * .#{x}",
|
|
67
|
+
" #{d}. * .#{G} * #{g}*#{c} . #{c}*#{C} .#{y}|#{c}*#{C} . #{c}*#{C} . #{c}*#{g} . *#{d} . * . .#{x}",
|
|
68
|
+
" #{d}* . #{G}.#{g} *#{c} .#{C} *#{y} .#{Y} *#{y}\\#{w} @#{y} @#{Y} *#{y} .#{C} *#{c} .#{g} *#{G} .#{d} * . *#{x}",
|
|
69
|
+
" #{d}. * #{g}*#{c} .#{C} *#{y} .#{Y} *#{w} @#{w}##{y}|#{w}##{w}@#{Y} *#{y} .#{C} *#{c} .#{g} *#{d} . * .#{x}",
|
|
70
|
+
" #{d}* . #{G}.#{g} *#{c} .#{C} *#{y} .#{Y} *#{y}/#{w} @#{y} @#{Y} *#{y} .#{C} *#{c} .#{g} *#{G} .#{d} * . *#{x}",
|
|
71
|
+
" #{d}. * .#{G} * #{g}*#{c} . #{c}*#{C} .#{y}|#{c}*#{C} . #{c}*#{C} . #{c}*#{g} . *#{d} . * . .#{x}",
|
|
72
|
+
" #{d}* . *#{G} . * . #{g}*#{G} .#{y}\\#{g}*#{G} . #{g}*#{G} . #{g}*#{G} . *#{d} . * . * .#{x}",
|
|
73
|
+
" #{d}. * . * . * . * . #{Y}|#{d} . * . * . * . * . .#{x}",
|
|
74
|
+
" #{d}* . * . * . * . *#{Y}/#{d}* . * . * . * . * . *#{x}",
|
|
75
|
+
" #{d}. * . * . * . * . #{Y}|#{d} . * . * . * . * . .#{x}",
|
|
76
|
+
],
|
|
77
|
+
# Frame 5 — FLASH! bolt blazes, white-hot core
|
|
78
|
+
[
|
|
79
|
+
" #{d}* .#{G} *#{g} .#{G} *#{g} .#{G} *#{w}|#{G} *#{g} .#{G} *#{g} .#{G} *#{g} .#{G} * #{g}.#{d} * . *#{x}",
|
|
80
|
+
" #{G}. *#{g} .#{c} *#{g} .#{c} *#{g} .#{w}/#{C} .#{c} *#{g} .#{c} *#{g} .#{c} *#{g} .#{G} * . *#{x}",
|
|
81
|
+
" #{g}*#{c} . *#{C} .#{c} *#{C} .#{c} *#{w}|#{Y} *#{y} .#{Y} *#{c} .#{C} *#{c} .#{C} *#{c} . #{g}*#{d} .#{x}",
|
|
82
|
+
" #{c}.#{C} * .#{y} *#{Y} .#{y} *#{Y} .#{w}\\#{w} @#{w} @#{w} @#{Y} *#{y} .#{Y} *#{y} .#{C} *#{c} . *#{g} .#{x}",
|
|
83
|
+
" #{c}*#{C} .#{y} *#{Y} .#{w} *#{w} @#{w}##{w}@#{w}|#{w}@#{w}##{w}@#{w}##{w}@#{w} *#{Y} .#{y} *#{C} .#{c} *#{g} .#{x}",
|
|
84
|
+
" #{c}.#{C} * .#{y} *#{Y} .#{y} *#{Y} .#{w}/#{w} @#{w} @#{w} @#{Y} *#{y} .#{Y} *#{y} .#{C} *#{c} . *#{g} .#{x}",
|
|
85
|
+
" #{g}*#{c} . *#{C} .#{c} *#{C} .#{c} *#{w}|#{Y} *#{y} .#{Y} *#{c} .#{C} *#{c} .#{C} *#{c} . #{g}*#{d} .#{x}",
|
|
86
|
+
" #{G}. *#{g} .#{c} *#{g} .#{c} *#{g} .#{w}\\#{C} .#{c} *#{g} .#{c} *#{g} .#{c} *#{g} .#{G} * . *#{x}",
|
|
87
|
+
" #{d}* .#{G} *#{g} .#{G} *#{g} .#{G} *#{w}|#{G} *#{g} .#{G} *#{g} .#{G} *#{g} .#{G} * #{g}.#{d} * . *#{x}",
|
|
88
|
+
" #{d}. * . * . * . *#{w}/#{d}* . * . * . * . * . * .#{x}",
|
|
89
|
+
" #{d}* . * . * . * . #{w}|#{d} . * . * . * . * . * .#{x}",
|
|
90
|
+
],
|
|
91
|
+
# Frame 6 — BIGGER FLASH, bolt thick and branching
|
|
92
|
+
[
|
|
93
|
+
" #{g}.#{G} *#{g} .#{c} *#{g} .#{c} *#{w}|#{c} *#{g} .#{c} *#{g} .#{c} *#{g} .#{c} *#{g} .#{G} * #{g}.#{x}",
|
|
94
|
+
" #{c}*#{g} .#{c} *#{C} .#{c} *#{C} #{w}/#{c} *#{C} .#{c} *#{C} .#{c} *#{C} .#{c} *#{C} .#{c} *#{g} . #{c}*#{x}",
|
|
95
|
+
" #{c}.#{C} *#{c} .#{C} *#{y} .#{w}|#{y} *#{y} .#{Y} *#{y} .#{Y} *#{y} .#{c} *#{y} .#{C} *#{c} .#{C} * #{c}.#{x}",
|
|
96
|
+
" #{C}*#{y} .#{Y} *#{y} .#{Y} #{w}\\#{w} .#{w} @#{w} @#{w} @#{w} @#{w} @#{w} .#{Y} *#{y} .#{Y} *#{y} . #{C}*#{x}",
|
|
97
|
+
" #{y}.#{Y} *#{w} .#{w} @#{w} @#{w}##{w}@#{w}|#{w}@#{w}##{w}@#{w}##{w}@#{w}##{w}@#{w} @#{w} .#{Y} *#{y} . #{y}*#{x}",
|
|
98
|
+
" #{C}*#{y} .#{Y} *#{y} .#{Y} #{w}/#{w} .#{w} @#{w} @#{w} @#{w} @#{w} @#{w} .#{Y} *#{y} .#{Y} *#{y} . #{C}*#{x}",
|
|
99
|
+
" #{c}.#{C} *#{c} .#{C} *#{y} .#{w}|#{y} *#{y} .#{Y} *#{y} .#{Y} *#{y} .#{c} *#{y} .#{C} *#{c} .#{C} * #{c}.#{x}",
|
|
100
|
+
" #{c}*#{g} .#{c} *#{C} .#{c} *#{w}\\#{c} *#{C} .#{c} *#{C} .#{c} *#{C} .#{c} *#{C} .#{c} *#{g} . #{c}*#{x}",
|
|
101
|
+
" #{g}.#{G} *#{g} .#{c} *#{g} .#{c} #{w}|#{g} .#{c} *#{g} .#{c} *#{g} .#{c} *#{g} .#{c} *#{g} .#{G} * #{g}.#{x}",
|
|
102
|
+
" #{d}*#{G} . *#{g} . *#{g} . #{w}/#{g} . * #{g}. *#{g} . *#{g} . *#{G} . *#{d} . *#{x}",
|
|
103
|
+
" #{d}. * . * . * . #{w}|#{d} . * . * . * . * . * . * .#{x}",
|
|
104
|
+
],
|
|
105
|
+
# Frame 7 — PEAK: bolt blazes top to bottom, everything lit
|
|
106
|
+
[
|
|
107
|
+
" #{g}*#{c} .#{g} *#{c} .#{g} *#{c} #{w}|#{c} .#{g} *#{c} .#{g} *#{c} .#{g} *#{c} .#{g} *#{c} .#{g} *#{c} .#{x}",
|
|
108
|
+
" #{c}.#{C} *#{c} .#{C} *#{c} .#{w}/#{c} .#{C} *#{c} .#{C} *#{c} .#{C} *#{c} .#{C} *#{c} .#{C} *#{c} .#{x}",
|
|
109
|
+
" #{C}*#{y} .#{C} *#{y} .#{C} #{w}|#{y} .#{Y} *#{y} .#{Y} *#{y} .#{C} *#{y} .#{C} *#{y} .#{C} *#{y} .#{C} *#{x}",
|
|
110
|
+
" #{y}.#{Y} *#{y} .#{Y} *#{w} .#{w}\\@#{w} @#{w}##{w}@#{w}##{w}@#{w} @#{w} .#{Y} *#{y} .#{Y} *#{y} .#{Y} *#{x}",
|
|
111
|
+
" #{y}*#{w} .#{w} @#{w} @#{w}##{w}@#{w}##{w}@#{w}|#{w}@#{w}##{w}@#{w}##{w}@#{w}##{w}@#{w}##{w}@#{w} @#{w} .#{y} *#{y} .#{x}",
|
|
112
|
+
" #{y}.#{Y} *#{y} .#{Y} *#{w} .#{w} @#{w}/#{w}##{w}@#{w}##{w}@#{w} @#{w} .#{Y} *#{y} .#{Y} *#{y} .#{Y} *#{x}",
|
|
113
|
+
" #{C}*#{y} .#{C} *#{y} .#{C} *#{w}|#{Y} *#{y} .#{Y} *#{y} .#{C} *#{y} .#{C} *#{y} .#{C} *#{y} .#{C} *#{x}",
|
|
114
|
+
" #{c}.#{C} *#{c} .#{C} *#{c} #{w}\\#{C} *#{c} .#{C} *#{c} .#{C} *#{c} .#{C} *#{c} .#{C} *#{c} .#{x}",
|
|
115
|
+
" #{g}*#{c} .#{g} *#{c} .#{g} *#{w}|#{g} *#{c} .#{g} *#{c} .#{g} *#{c} .#{g} *#{c} .#{g} *#{c} .#{g} *#{c} .#{x}",
|
|
116
|
+
" #{G}.#{g} *#{G} .#{g} *#{G} #{w}/#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{x}",
|
|
117
|
+
" #{d}*#{G} .#{d} *#{G} .#{d} #{w}|#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{x}",
|
|
118
|
+
],
|
|
119
|
+
# (hold peak — bolt shifts one tick)
|
|
120
|
+
[
|
|
121
|
+
" #{c}.#{g} *#{c} .#{g} *#{c} .#{g} #{w}|#{c} .#{g} *#{c} .#{g} *#{c} .#{g} *#{c} .#{g} *#{c} .#{g} *#{x}",
|
|
122
|
+
" #{C}*#{c} .#{C} *#{c} .#{C} *#{w}\\#{c} .#{C} *#{c} .#{C} *#{c} .#{C} *#{c} .#{C} *#{c} .#{C} *#{x}",
|
|
123
|
+
" #{y}.#{C} *#{y} .#{C} *#{y} .#{C} #{w}|#{y} .#{Y} *#{y} .#{Y} *#{y} .#{C} *#{y} .#{C} *#{y} .#{C} *#{y} .#{x}",
|
|
124
|
+
" #{Y}*#{y} .#{Y} *#{w} .#{w} @#{w} @#{w}\\#{w}@#{w}##{w}@#{w}##{w}@#{w} @#{w} .#{Y} *#{y} .#{Y} *#{y} .#{Y} *#{x}",
|
|
125
|
+
" #{w}.#{w} @#{w}##{w}@#{w}##{w}@#{w}##{w}@#{w}##{w}@#{w}|#{w}@#{w}##{w}@#{w}##{w}@#{w}##{w}@#{w}##{w}@#{w}##{w}@ #{w}.#{y} *#{x}",
|
|
126
|
+
" #{Y}*#{y} .#{Y} *#{w} .#{w} @#{w} @#{w}##{w}/#{w}##{w}@#{w}##{w}@#{w} @#{w} .#{Y} *#{y} .#{Y} *#{y} .#{Y} *#{x}",
|
|
127
|
+
" #{y}.#{C} *#{y} .#{C} *#{y} .#{C} #{w}|#{y} .#{Y} *#{y} .#{Y} *#{y} .#{C} *#{y} .#{C} *#{y} .#{C} *#{y} .#{x}",
|
|
128
|
+
" #{C}*#{c} .#{C} *#{c} .#{C} #{w}/#{c} .#{C} *#{c} .#{C} *#{c} .#{C} *#{c} .#{C} *#{c} .#{C} *#{c} .#{C} *#{x}",
|
|
129
|
+
" #{c}.#{g} *#{c} .#{g} *#{c} #{w}|#{g} *#{c} .#{g} *#{c} .#{g} *#{c} .#{g} *#{c} .#{g} *#{c} .#{g} *#{x}",
|
|
130
|
+
" #{g}*#{G} .#{g} *#{G} .#{g} #{w}\\#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{x}",
|
|
131
|
+
" #{G}.#{d} *#{G} .#{d} *#{G} .#{w}|#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{x}",
|
|
132
|
+
],
|
|
133
|
+
# Frame 8 — bolt fading, afterglow lines remain
|
|
134
|
+
[
|
|
135
|
+
" #{g}*#{c} .#{g} *#{c} .#{g} *#{c} .#{g} *#{c} .#{g} *#{c} .#{g} *#{c} .#{g} *#{c} .#{g} *#{c} .#{g} *#{c} .#{x}",
|
|
136
|
+
" #{c}.#{C} *#{c} .#{C} *#{c} .#{C} *#{c} .#{C} *#{c} .#{C} *#{c} .#{C} *#{c} .#{C} *#{c} .#{C} *#{c} .#{x}",
|
|
137
|
+
" #{C}*#{c} .#{C} *#{c} .#{c} *#{C} #{y}|#{y} *#{Y} .#{Y} *#{y} .#{C} *#{c} .#{c} *#{C} .#{c} *#{C} . #{c}*#{x}",
|
|
138
|
+
" #{c}.#{C} *#{y} .#{Y} *#{y} .#{Y} #{y}\\#{w} @#{w}##{w}@#{w}##{w}@#{Y} *#{y} .#{Y} *#{y} .#{C} *#{c} . #{c}*#{x}",
|
|
139
|
+
" #{C}*#{y} .#{w} @#{w} @#{w}##{w}@#{w}##{y}|#{w}##{w}@#{w}##{w}@#{w}##{w}@#{w} @#{w} .#{y} *#{C} .#{c} * #{C}.#{x}",
|
|
140
|
+
" #{c}.#{C} *#{y} .#{Y} *#{y} .#{Y} #{y}/#{w} @#{w}##{w}@#{w}##{w}@#{Y} *#{y} .#{Y} *#{y} .#{C} *#{c} . #{c}*#{x}",
|
|
141
|
+
" #{C}*#{c} .#{C} *#{c} .#{c} *#{C} #{y}|#{y} *#{Y} .#{Y} *#{y} .#{C} *#{c} .#{c} *#{C} .#{c} *#{C} . #{c}*#{x}",
|
|
142
|
+
" #{c}.#{C} *#{c} .#{C} *#{c} .#{C} #{y}\\#{c} .#{C} *#{c} .#{C} *#{c} .#{C} *#{c} .#{C} *#{c} .#{C} *#{c} .#{x}",
|
|
143
|
+
" #{g}*#{c} .#{g} *#{c} .#{g} *#{c} .#{Y}|#{c} .#{g} *#{c} .#{g} *#{c} .#{g} *#{c} .#{g} *#{c} .#{g} *#{c} .#{x}",
|
|
144
|
+
" #{G}.#{g} *#{G} .#{g} *#{G} .#{g} #{Y}/#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{x}",
|
|
145
|
+
" #{d}*#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{x}",
|
|
146
|
+
],
|
|
147
|
+
# Frame 9 — bolt ghost, green waves rippling
|
|
148
|
+
[
|
|
149
|
+
" #{G}.#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{x}",
|
|
150
|
+
" #{g}*#{c} .#{g} *#{c} .#{g} *#{c} .#{g} *#{c} .#{g} *#{c} .#{g} *#{c} .#{g} *#{c} .#{g} *#{c} .#{g} *#{x}",
|
|
151
|
+
" #{c}.#{C} *#{c} .#{C} *#{c} .#{C} *#{c} .#{C} *#{c} .#{C} *#{c} .#{C} *#{c} .#{C} *#{c} .#{C} *#{c} .#{x}",
|
|
152
|
+
" #{C}*#{c} .#{C} *#{c} .#{c} *#{c} #{D}|#{c} *#{C} .#{C} *#{c} .#{c} *#{c} .#{C} *#{c} .#{C} *#{C} . #{c}*#{x}",
|
|
153
|
+
" #{c}.#{c} *#{c} .#{c} *#{c} .#{C} #{D}\\#{y} .#{y} *#{w}##{y} *#{y} .#{C} *#{c} .#{c} *#{c} .#{c} *#{c} . #{c}.#{x}",
|
|
154
|
+
" #{C}*#{c} .#{C} *#{c} .#{c} *#{c} .#{D}|#{c} *#{C} .#{C} *#{c} .#{c} *#{c} .#{C} *#{c} .#{C} *#{C} . #{c}*#{x}",
|
|
155
|
+
" #{c}.#{C} *#{c} .#{C} *#{c} .#{C} #{D}/#{c} .#{C} *#{c} .#{C} *#{c} .#{C} *#{c} .#{C} *#{c} .#{C} *#{c} .#{x}",
|
|
156
|
+
" #{g}*#{c} .#{g} *#{c} .#{g} *#{c} #{D}|#{g} *#{c} .#{g} *#{c} .#{g} *#{c} .#{g} *#{c} .#{g} *#{c} .#{g} *#{x}",
|
|
157
|
+
" #{G}.#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{x}",
|
|
158
|
+
" #{d}*#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{x}",
|
|
159
|
+
" #{d}. * . * . * . * . * . * . * . * . * . * .#{x}",
|
|
160
|
+
],
|
|
161
|
+
# Frame 10 — green shimmer everywhere, warm afterglow
|
|
162
|
+
[
|
|
163
|
+
" #{d}*#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{x}",
|
|
164
|
+
" #{G}.#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{x}",
|
|
165
|
+
" #{g}*#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{x}",
|
|
166
|
+
" #{G}.#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{x}",
|
|
167
|
+
" #{g}*#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{Y} .#{y} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{x}",
|
|
168
|
+
" #{G}.#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{x}",
|
|
169
|
+
" #{g}*#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{x}",
|
|
170
|
+
" #{G}.#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{x}",
|
|
171
|
+
" #{d}*#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{x}",
|
|
172
|
+
" #{d}. * . * . * . * . * . * . * . * . * . * .#{x}",
|
|
173
|
+
" #{d}* . * . * . * . * . * . * . * . * . * . *#{x}",
|
|
174
|
+
],
|
|
175
|
+
# Frame 11 — cooling to green field
|
|
176
|
+
[
|
|
177
|
+
" #{d}. * . * . * . * . * . * . * . * . * . * .#{x}",
|
|
178
|
+
" #{d}*#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{x}",
|
|
179
|
+
" #{G}.#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{x}",
|
|
180
|
+
" #{d}*#{G} .#{d} *#{G} .#{G} *#{g} .#{G} *#{g} .#{G} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{x}",
|
|
181
|
+
" #{G}.#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{Y} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{x}",
|
|
182
|
+
" #{d}*#{G} .#{d} *#{G} .#{G} *#{g} .#{G} *#{g} .#{G} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{x}",
|
|
183
|
+
" #{G}.#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{g} *#{G} .#{x}",
|
|
184
|
+
" #{d}*#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{d} *#{G} .#{x}",
|
|
185
|
+
" #{d}. * . * . * . * . * . * . * . * . * . * .#{x}",
|
|
186
|
+
" #{d}* . * . * . * . * . * . * . * . * . * . *#{x}",
|
|
187
|
+
" #{d}. * . * . * . * . * . * . * . * . * . * .#{x}",
|
|
188
|
+
],
|
|
189
|
+
]
|
|
190
|
+
|
|
191
|
+
# Pad lines so all rows in each frame have equal stripped length —
|
|
192
|
+
# prevents the player's per-line centering from misaligning the art.
|
|
193
|
+
max = raw_frames.flatten.map { |l| l.gsub(/\e\[[0-9;]*m/, "").length }.max
|
|
194
|
+
raw_frames.each do |frame|
|
|
195
|
+
frame.map! { |l| l + " " * (max - l.gsub(/\e\[[0-9;]*m/, "").length) }
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
DATA = {
|
|
199
|
+
name: "Flash",
|
|
200
|
+
fps: 10,
|
|
201
|
+
frames: raw_frames
|
|
202
|
+
}.freeze
|
|
203
|
+
end
|
|
204
|
+
end
|
|
205
|
+
end
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module FunCi
|
|
4
|
+
module Animations
|
|
5
|
+
module Idle
|
|
6
|
+
# Gentle starfield -- sparse dots that drift slowly downward
|
|
7
|
+
# Visible but calm: regular cyan (not dim), sparse placement, slow drift
|
|
8
|
+
|
|
9
|
+
d = "\e[2;36m" # dim cyan
|
|
10
|
+
c = "\e[36m" # cyan
|
|
11
|
+
x = "\e[0m"
|
|
12
|
+
|
|
13
|
+
# Each frame drifts the pattern down by ~2 lines, wrapping around.
|
|
14
|
+
# Sparse enough to feel ambient, bright enough to actually see.
|
|
15
|
+
|
|
16
|
+
raw_frames = [
|
|
17
|
+
[
|
|
18
|
+
" #{c}*#{x} #{d}.#{x} #{c}.#{x}",
|
|
19
|
+
"",
|
|
20
|
+
" #{d}.#{x} #{c}*#{x}",
|
|
21
|
+
" #{c}.#{x} #{d}.#{x}",
|
|
22
|
+
"",
|
|
23
|
+
" #{d}.#{x} #{d}.#{x} #{c}*#{x}",
|
|
24
|
+
"",
|
|
25
|
+
" #{c}.#{x} #{d}.#{x}",
|
|
26
|
+
" #{d}.#{x} #{c}.#{x}",
|
|
27
|
+
"",
|
|
28
|
+
" #{c}*#{x} #{d}.#{x}",
|
|
29
|
+
" #{d}.#{x} #{c}.#{x}",
|
|
30
|
+
"",
|
|
31
|
+
" #{d}.#{x} #{d}.#{x}",
|
|
32
|
+
],
|
|
33
|
+
[
|
|
34
|
+
" #{d}.#{x} #{d}.#{x}",
|
|
35
|
+
" #{c}*#{x} #{d}.#{x} #{c}.#{x}",
|
|
36
|
+
"",
|
|
37
|
+
" #{d}.#{x} #{c}*#{x}",
|
|
38
|
+
" #{c}.#{x} #{d}.#{x}",
|
|
39
|
+
"",
|
|
40
|
+
" #{d}.#{x} #{d}.#{x} #{c}*#{x}",
|
|
41
|
+
"",
|
|
42
|
+
" #{c}.#{x} #{d}.#{x}",
|
|
43
|
+
" #{d}.#{x} #{c}.#{x}",
|
|
44
|
+
"",
|
|
45
|
+
" #{c}*#{x} #{d}.#{x}",
|
|
46
|
+
" #{d}.#{x} #{c}.#{x}",
|
|
47
|
+
"",
|
|
48
|
+
],
|
|
49
|
+
[
|
|
50
|
+
" #{d}.#{x} #{c}.#{x}",
|
|
51
|
+
"",
|
|
52
|
+
" #{d}.#{x} #{d}.#{x}",
|
|
53
|
+
" #{c}*#{x} #{d}.#{x} #{c}.#{x}",
|
|
54
|
+
"",
|
|
55
|
+
" #{d}.#{x} #{c}*#{x}",
|
|
56
|
+
" #{c}.#{x} #{d}.#{x}",
|
|
57
|
+
"",
|
|
58
|
+
" #{d}.#{x} #{d}.#{x} #{c}*#{x}",
|
|
59
|
+
"",
|
|
60
|
+
" #{c}.#{x} #{d}.#{x}",
|
|
61
|
+
" #{d}.#{x} #{c}.#{x}",
|
|
62
|
+
"",
|
|
63
|
+
" #{c}*#{x} #{d}.#{x}",
|
|
64
|
+
],
|
|
65
|
+
[
|
|
66
|
+
" #{c}*#{x} #{d}.#{x}",
|
|
67
|
+
" #{d}.#{x} #{c}.#{x}",
|
|
68
|
+
"",
|
|
69
|
+
" #{d}.#{x} #{d}.#{x}",
|
|
70
|
+
" #{c}*#{x} #{d}.#{x} #{c}.#{x}",
|
|
71
|
+
"",
|
|
72
|
+
" #{d}.#{x} #{c}*#{x}",
|
|
73
|
+
" #{c}.#{x} #{d}.#{x}",
|
|
74
|
+
"",
|
|
75
|
+
" #{d}.#{x} #{d}.#{x} #{c}*#{x}",
|
|
76
|
+
"",
|
|
77
|
+
" #{c}.#{x} #{d}.#{x}",
|
|
78
|
+
" #{d}.#{x} #{c}.#{x}",
|
|
79
|
+
"",
|
|
80
|
+
],
|
|
81
|
+
[
|
|
82
|
+
" #{d}.#{x} #{c}.#{x}",
|
|
83
|
+
"",
|
|
84
|
+
" #{c}*#{x} #{d}.#{x}",
|
|
85
|
+
" #{d}.#{x} #{c}.#{x}",
|
|
86
|
+
"",
|
|
87
|
+
" #{d}.#{x} #{d}.#{x}",
|
|
88
|
+
" #{c}*#{x} #{d}.#{x} #{c}.#{x}",
|
|
89
|
+
"",
|
|
90
|
+
" #{d}.#{x} #{c}*#{x}",
|
|
91
|
+
" #{c}.#{x} #{d}.#{x}",
|
|
92
|
+
"",
|
|
93
|
+
" #{d}.#{x} #{d}.#{x} #{c}*#{x}",
|
|
94
|
+
"",
|
|
95
|
+
" #{c}.#{x} #{d}.#{x}",
|
|
96
|
+
],
|
|
97
|
+
[
|
|
98
|
+
" #{c}.#{x} #{d}.#{x}",
|
|
99
|
+
" #{d}.#{x} #{c}.#{x}",
|
|
100
|
+
"",
|
|
101
|
+
" #{c}*#{x} #{d}.#{x}",
|
|
102
|
+
" #{d}.#{x} #{c}.#{x}",
|
|
103
|
+
"",
|
|
104
|
+
" #{d}.#{x} #{d}.#{x}",
|
|
105
|
+
" #{c}*#{x} #{d}.#{x} #{c}.#{x}",
|
|
106
|
+
"",
|
|
107
|
+
" #{d}.#{x} #{c}*#{x}",
|
|
108
|
+
" #{c}.#{x} #{d}.#{x}",
|
|
109
|
+
"",
|
|
110
|
+
" #{d}.#{x} #{d}.#{x} #{c}*#{x}",
|
|
111
|
+
"",
|
|
112
|
+
],
|
|
113
|
+
]
|
|
114
|
+
|
|
115
|
+
max = raw_frames.flatten.map { |l| l.gsub(/\e\[[0-9;]*m/, "").length }.max
|
|
116
|
+
raw_frames.each do |frame|
|
|
117
|
+
frame.map! { |l| l + " " * (max - l.gsub(/\e\[[0-9;]*m/, "").length) }
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
DATA = {
|
|
121
|
+
name: "Idle",
|
|
122
|
+
fps: 4,
|
|
123
|
+
frames: raw_frames
|
|
124
|
+
}.freeze
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
end
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module FunCi
|
|
4
|
+
module Animations
|
|
5
|
+
module Leprechauns
|
|
6
|
+
# Dancing leprechauns with four-leaf clovers
|
|
7
|
+
# Run: ruby exe/animation-player animations/leprechauns.rb
|
|
8
|
+
|
|
9
|
+
g = "\e[1;32m" # bold green
|
|
10
|
+
G = "\e[32m" # green
|
|
11
|
+
d = "\e[2;32m" # dim green
|
|
12
|
+
y = "\e[1;33m" # bold yellow
|
|
13
|
+
Y = "\e[33m" # yellow
|
|
14
|
+
b = "\e[38;5;94m" # brown (boots)
|
|
15
|
+
s = "\e[38;5;215m" # skin tone
|
|
16
|
+
x = "\e[0m" # reset
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
raw_frames = [
|
|
20
|
+
# Frame 1 — standing, arms down
|
|
21
|
+
[
|
|
22
|
+
" #{d}~#{g}}}|{{#{d}~#{x} #{d}~#{g}}}|{{#{d}~#{x}",
|
|
23
|
+
"",
|
|
24
|
+
" #{g}_____#{x} #{g}_____#{x}",
|
|
25
|
+
" #{g}|#{y}XXXXX#{g}|#{x} #{g}|#{y}XXXXX#{g}|#{x}",
|
|
26
|
+
" #{g}|_____|#{x} #{g}|_____|#{x}",
|
|
27
|
+
" #{s}(o o)#{x} #{s}(o o)#{x}",
|
|
28
|
+
" #{s}\\_/#{x} #{s}\\_/#{x}",
|
|
29
|
+
" #{g}__|__#{x} #{g}__|__#{x}",
|
|
30
|
+
" #{g}| |#{x} #{g}| |#{x}",
|
|
31
|
+
" #{g}| |#{x} #{g}| |#{x}",
|
|
32
|
+
" #{g}| |#{x} #{g}| |#{x}",
|
|
33
|
+
" #{b}_| |_#{x} #{b}_| |_#{x}",
|
|
34
|
+
"",
|
|
35
|
+
" #{d}~#{g}}}|{{#{d}~#{x} #{d}~#{g}}}|{{#{d}~#{x}",
|
|
36
|
+
],
|
|
37
|
+
# (hold)
|
|
38
|
+
[
|
|
39
|
+
" #{d}~#{g}}}|{{#{d}~#{x} #{d}~#{g}}}|{{#{d}~#{x}",
|
|
40
|
+
"",
|
|
41
|
+
" #{g}_____#{x} #{g}_____#{x}",
|
|
42
|
+
" #{g}|#{y}XXXXX#{g}|#{x} #{g}|#{y}XXXXX#{g}|#{x}",
|
|
43
|
+
" #{g}|_____|#{x} #{g}|_____|#{x}",
|
|
44
|
+
" #{s}(o o)#{x} #{s}(o o)#{x}",
|
|
45
|
+
" #{s}\\_/#{x} #{s}\\_/#{x}",
|
|
46
|
+
" #{g}__|__#{x} #{g}__|__#{x}",
|
|
47
|
+
" #{g}| |#{x} #{g}| |#{x}",
|
|
48
|
+
" #{g}| |#{x} #{g}| |#{x}",
|
|
49
|
+
" #{g}| |#{x} #{g}| |#{x}",
|
|
50
|
+
" #{b}_| |_#{x} #{b}_| |_#{x}",
|
|
51
|
+
"",
|
|
52
|
+
" #{d}~#{g}}}|{{#{d}~#{x} #{d}~#{g}}}|{{#{d}~#{x}",
|
|
53
|
+
],
|
|
54
|
+
# Frame 2 — arms up, right leg kick
|
|
55
|
+
[
|
|
56
|
+
" #{d}~#{g}}}|{{#{d}~#{x} #{d}~#{g}}}|{{#{d}~#{x}",
|
|
57
|
+
"",
|
|
58
|
+
" #{g}_____#{x} #{g}_____#{x}",
|
|
59
|
+
" #{g}|#{y}XXXXX#{g}|#{x} #{g}|#{y}XXXXX#{g}|#{x}",
|
|
60
|
+
" #{g}|_____|#{x} #{g}|_____|#{x}",
|
|
61
|
+
" #{s}(^ ^)#{x} #{s}(^ ^)#{x}",
|
|
62
|
+
" #{s}\\_/#{x} #{s}\\_/#{x}",
|
|
63
|
+
" #{g}\\__|__|__/#{x} #{g}\\__|__|__/#{x}",
|
|
64
|
+
" #{g}| |#{x} #{g}| |#{x}",
|
|
65
|
+
" #{g}| |#{x} #{g}| |#{x}",
|
|
66
|
+
" #{g}| \\#{x} #{g}| \\#{x}",
|
|
67
|
+
" #{b}_| \\#{x} #{b}_| \\#{x}",
|
|
68
|
+
"",
|
|
69
|
+
" #{d}~#{g}}}|{{#{d}~#{x} #{d}~#{g}}}|{{#{d}~#{x}",
|
|
70
|
+
],
|
|
71
|
+
# (hold)
|
|
72
|
+
[
|
|
73
|
+
" #{d}~#{g}}}|{{#{d}~#{x} #{d}~#{g}}}|{{#{d}~#{x}",
|
|
74
|
+
"",
|
|
75
|
+
" #{g}_____#{x} #{g}_____#{x}",
|
|
76
|
+
" #{g}|#{y}XXXXX#{g}|#{x} #{g}|#{y}XXXXX#{g}|#{x}",
|
|
77
|
+
" #{g}|_____|#{x} #{g}|_____|#{x}",
|
|
78
|
+
" #{s}(^ ^)#{x} #{s}(^ ^)#{x}",
|
|
79
|
+
" #{s}\\_/#{x} #{s}\\_/#{x}",
|
|
80
|
+
" #{g}\\__|__|__/#{x} #{g}\\__|__|__/#{x}",
|
|
81
|
+
" #{g}| |#{x} #{g}| |#{x}",
|
|
82
|
+
" #{g}| |#{x} #{g}| |#{x}",
|
|
83
|
+
" #{g}| \\#{x} #{g}| \\#{x}",
|
|
84
|
+
" #{b}_| \\#{x} #{b}_| \\#{x}",
|
|
85
|
+
"",
|
|
86
|
+
" #{d}~#{g}}}|{{#{d}~#{x} #{d}~#{g}}}|{{#{d}~#{x}",
|
|
87
|
+
],
|
|
88
|
+
# Frame 3 — arms down, feet together (bounce)
|
|
89
|
+
[
|
|
90
|
+
"",
|
|
91
|
+
" #{d}~#{g}}}|{{#{d}~#{x} #{d}~#{g}}}|{{#{d}~#{x}",
|
|
92
|
+
" #{g}_____#{x} #{g}_____#{x}",
|
|
93
|
+
" #{g}|#{y}XXXXX#{g}|#{x} #{g}|#{y}XXXXX#{g}|#{x}",
|
|
94
|
+
" #{g}|_____|#{x} #{g}|_____|#{x}",
|
|
95
|
+
" #{s}(o o)#{x} #{s}(o o)#{x}",
|
|
96
|
+
" #{s}\\_/#{x} #{s}\\_/#{x}",
|
|
97
|
+
" #{g}__|__#{x} #{g}__|__#{x}",
|
|
98
|
+
" #{g}| |#{x} #{g}| |#{x}",
|
|
99
|
+
" #{g}| |#{x} #{g}| |#{x}",
|
|
100
|
+
" #{g}| |#{x} #{g}| |#{x}",
|
|
101
|
+
" #{b}_| |_#{x} #{b}_| |_#{x}",
|
|
102
|
+
"",
|
|
103
|
+
" #{d}~#{g}}}|{{#{d}~#{x} #{d}~#{g}}}|{{#{d}~#{x}",
|
|
104
|
+
],
|
|
105
|
+
# Frame 4 — arms up, left leg kick
|
|
106
|
+
[
|
|
107
|
+
" #{d}~#{g}}}|{{#{d}~#{x} #{d}~#{g}}}|{{#{d}~#{x}",
|
|
108
|
+
"",
|
|
109
|
+
" #{g}_____#{x} #{g}_____#{x}",
|
|
110
|
+
" #{g}|#{y}XXXXX#{g}|#{x} #{g}|#{y}XXXXX#{g}|#{x}",
|
|
111
|
+
" #{g}|_____|#{x} #{g}|_____|#{x}",
|
|
112
|
+
" #{s}(^ ^)#{x} #{s}(^ ^)#{x}",
|
|
113
|
+
" #{s}\\_/#{x} #{s}\\_/#{x}",
|
|
114
|
+
" #{g}\\__|__|__/#{x} #{g}\\__|__|__/#{x}",
|
|
115
|
+
" #{g}| |#{x} #{g}| |#{x}",
|
|
116
|
+
" #{g}| |#{x} #{g}| |#{x}",
|
|
117
|
+
" #{g}/ |#{x} #{g}/ |#{x}",
|
|
118
|
+
" #{b}/ |_#{x} #{b}/ |_#{x}",
|
|
119
|
+
"",
|
|
120
|
+
" #{d}~#{g}}}|{{#{d}~#{x} #{d}~#{g}}}|{{#{d}~#{x}",
|
|
121
|
+
],
|
|
122
|
+
# (hold)
|
|
123
|
+
[
|
|
124
|
+
" #{d}~#{g}}}|{{#{d}~#{x} #{d}~#{g}}}|{{#{d}~#{x}",
|
|
125
|
+
"",
|
|
126
|
+
" #{g}_____#{x} #{g}_____#{x}",
|
|
127
|
+
" #{g}|#{y}XXXXX#{g}|#{x} #{g}|#{y}XXXXX#{g}|#{x}",
|
|
128
|
+
" #{g}|_____|#{x} #{g}|_____|#{x}",
|
|
129
|
+
" #{s}(^ ^)#{x} #{s}(^ ^)#{x}",
|
|
130
|
+
" #{s}\\_/#{x} #{s}\\_/#{x}",
|
|
131
|
+
" #{g}\\__|__|__/#{x} #{g}\\__|__|__/#{x}",
|
|
132
|
+
" #{g}| |#{x} #{g}| |#{x}",
|
|
133
|
+
" #{g}| |#{x} #{g}| |#{x}",
|
|
134
|
+
" #{g}/ |#{x} #{g}/ |#{x}",
|
|
135
|
+
" #{b}/ |_#{x} #{b}/ |_#{x}",
|
|
136
|
+
"",
|
|
137
|
+
" #{d}~#{g}}}|{{#{d}~#{x} #{d}~#{g}}}|{{#{d}~#{x}",
|
|
138
|
+
],
|
|
139
|
+
# Frame 5 — feet together, arms down (bounce back)
|
|
140
|
+
[
|
|
141
|
+
"",
|
|
142
|
+
" #{d}~#{g}}}|{{#{d}~#{x} #{d}~#{g}}}|{{#{d}~#{x}",
|
|
143
|
+
" #{g}_____#{x} #{g}_____#{x}",
|
|
144
|
+
" #{g}|#{y}XXXXX#{g}|#{x} #{g}|#{y}XXXXX#{g}|#{x}",
|
|
145
|
+
" #{g}|_____|#{x} #{g}|_____|#{x}",
|
|
146
|
+
" #{s}(o o)#{x} #{s}(o o)#{x}",
|
|
147
|
+
" #{s}\\_/#{x} #{s}\\_/#{x}",
|
|
148
|
+
" #{g}__|__#{x} #{g}__|__#{x}",
|
|
149
|
+
" #{g}| |#{x} #{g}| |#{x}",
|
|
150
|
+
" #{g}| |#{x} #{g}| |#{x}",
|
|
151
|
+
" #{g}| |#{x} #{g}| |#{x}",
|
|
152
|
+
" #{b}_| |_#{x} #{b}_| |_#{x}",
|
|
153
|
+
"",
|
|
154
|
+
" #{d}~#{g}}}|{{#{d}~#{x} #{d}~#{g}}}|{{#{d}~#{x}",
|
|
155
|
+
],
|
|
156
|
+
# Frame 6 — heel click! both jump, arms wide
|
|
157
|
+
[
|
|
158
|
+
"",
|
|
159
|
+
"",
|
|
160
|
+
" #{d}~#{g}}}|{{#{d}~#{x} #{d}~#{g}}}|{{#{d}~#{x}",
|
|
161
|
+
" #{g}_____#{x} #{y}*#{x} #{g}_____#{x}",
|
|
162
|
+
" #{g}|#{y}XXXXX#{g}|#{x} #{g}|#{y}XXXXX#{g}|#{x}",
|
|
163
|
+
" #{g}|_____|#{x} #{g}|_____|#{x}",
|
|
164
|
+
" #{s}(> <)#{x} #{s}(> <)#{x}",
|
|
165
|
+
" #{s}\\_/#{x} #{s}\\_/#{x}",
|
|
166
|
+
" #{g}\\__ | | __/#{x} #{g}\\__ | | __/#{x}",
|
|
167
|
+
" #{g}| |#{x} #{g}| |#{x}",
|
|
168
|
+
" #{g}\\ _ /#{x} #{g}\\ _ /#{x}",
|
|
169
|
+
" #{b}V V#{x} #{b}V V#{x}",
|
|
170
|
+
"",
|
|
171
|
+
" #{d}~#{g}}}|{{#{d}~#{x} #{y}*#{x} #{d}~#{g}}}|{{#{d}~#{x}",
|
|
172
|
+
],
|
|
173
|
+
# (hold)
|
|
174
|
+
[
|
|
175
|
+
"",
|
|
176
|
+
"",
|
|
177
|
+
" #{d}~#{g}}}|{{#{d}~#{x} #{d}~#{g}}}|{{#{d}~#{x}",
|
|
178
|
+
" #{g}_____#{x} #{y}*#{x} #{g}_____#{x}",
|
|
179
|
+
" #{g}|#{y}XXXXX#{g}|#{x} #{g}|#{y}XXXXX#{g}|#{x}",
|
|
180
|
+
" #{g}|_____|#{x} #{g}|_____|#{x}",
|
|
181
|
+
" #{s}(> <)#{x} #{s}(> <)#{x}",
|
|
182
|
+
" #{s}\\_/#{x} #{s}\\_/#{x}",
|
|
183
|
+
" #{g}\\__ | | __/#{x} #{g}\\__ | | __/#{x}",
|
|
184
|
+
" #{g}| |#{x} #{g}| |#{x}",
|
|
185
|
+
" #{g}\\ _ /#{x} #{g}\\ _ /#{x}",
|
|
186
|
+
" #{b}V V#{x} #{b}V V#{x}",
|
|
187
|
+
"",
|
|
188
|
+
" #{d}~#{g}}}|{{#{d}~#{x} #{y}*#{x} #{d}~#{g}}}|{{#{d}~#{x}",
|
|
189
|
+
],
|
|
190
|
+
# (hold)
|
|
191
|
+
[
|
|
192
|
+
"",
|
|
193
|
+
"",
|
|
194
|
+
" #{d}~#{g}}}|{{#{d}~#{x} #{d}~#{g}}}|{{#{d}~#{x}",
|
|
195
|
+
" #{g}_____#{x} #{y}*#{x} #{g}_____#{x}",
|
|
196
|
+
" #{g}|#{y}XXXXX#{g}|#{x} #{g}|#{y}XXXXX#{g}|#{x}",
|
|
197
|
+
" #{g}|_____|#{x} #{g}|_____|#{x}",
|
|
198
|
+
" #{s}(> <)#{x} #{s}(> <)#{x}",
|
|
199
|
+
" #{s}\\_/#{x} #{s}\\_/#{x}",
|
|
200
|
+
" #{g}\\__ | | __/#{x} #{g}\\__ | | __/#{x}",
|
|
201
|
+
" #{g}| |#{x} #{g}| |#{x}",
|
|
202
|
+
" #{g}\\ _ /#{x} #{g}\\ _ /#{x}",
|
|
203
|
+
" #{b}V V#{x} #{b}V V#{x}",
|
|
204
|
+
"",
|
|
205
|
+
" #{d}~#{g}}}|{{#{d}~#{x} #{y}*#{x} #{d}~#{g}}}|{{#{d}~#{x}",
|
|
206
|
+
],
|
|
207
|
+
# Frame 7 — landing
|
|
208
|
+
[
|
|
209
|
+
"",
|
|
210
|
+
" #{d}~#{g}}}|{{#{d}~#{x} #{d}~#{g}}}|{{#{d}~#{x}",
|
|
211
|
+
" #{g}_____#{x} #{g}_____#{x}",
|
|
212
|
+
" #{g}|#{y}XXXXX#{g}|#{x} #{g}|#{y}XXXXX#{g}|#{x}",
|
|
213
|
+
" #{g}|_____|#{x} #{g}|_____|#{x}",
|
|
214
|
+
" #{s}(o o)#{x} #{s}(o o)#{x}",
|
|
215
|
+
" #{s}\\_/#{x} #{s}\\_/#{x}",
|
|
216
|
+
" #{g}__|__#{x} #{g}__|__#{x}",
|
|
217
|
+
" #{g}| |#{x} #{g}| |#{x}",
|
|
218
|
+
" #{g}| |#{x} #{g}| |#{x}",
|
|
219
|
+
" #{g}| |#{x} #{g}| |#{x}",
|
|
220
|
+
" #{b}_| |_#{x} #{b}_| |_#{x}",
|
|
221
|
+
"",
|
|
222
|
+
" #{d}~#{g}}}|{{#{d}~#{x} #{d}~#{g}}}|{{#{d}~#{x}",
|
|
223
|
+
],
|
|
224
|
+
]
|
|
225
|
+
|
|
226
|
+
# Pad lines so all rows in each frame have equal stripped length —
|
|
227
|
+
# prevents the player's per-line centering from misaligning the art.
|
|
228
|
+
max = raw_frames.flatten.map { |l| l.gsub(/\e\[[0-9;]*m/, "").length }.max
|
|
229
|
+
raw_frames.each do |frame|
|
|
230
|
+
frame.map! { |l| l + " " * (max - l.gsub(/\e\[[0-9;]*m/, "").length) }
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
DATA = {
|
|
234
|
+
name: "Dancing Leprechauns",
|
|
235
|
+
fps: 8,
|
|
236
|
+
frames: raw_frames
|
|
237
|
+
}.freeze
|
|
238
|
+
end
|
|
239
|
+
end
|
|
240
|
+
end
|