Files
YataiDONNijiiro/Scripts/background/bg_data/bg_anim/bg_4.lua
T
TaikoZhongandClaude Opus 5.5 2f7291d4ec background: pack the cabinet movies' per-frame channels into strings
The collab backdrops (and the default donbg band) replay exported movies
whose per-frame channels were Lua tables of numbers: 38 MB that Lua
compiled on every song start (0.7 s for the TOHO pack; game screen init
1.5-1.6 s -> 0.9-1.0 s in-game), plus ~19 MB of Lua memory per pack.

Each per-frame array is now {base, step, width, "digits"}: value = base +
step * n, n being the frame's width chars in base 92 (printable ASCII
without '"' and '\'). One string constant compiles in a fraction of the
time; bg_objects/packed_channel.lua decodes the frame being drawn.
Quantization: 0.05 px, 0.005 deg, 5e-5 scale, 1/1024 alpha and tint;
every value of all 77 files checked against the original within half a
step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 09:00:18 +08:00

34 lines
3.9 KiB
Lua

-- GENERATED by scratchpad/lyric/movie_export.py from enso/background/bg_nomal_a_05.nulm -- do not hand-edit.
-- 1920x540 stage @60fps (screen y 540). Per leaf: shape, period, channels tx/ty/sx/sy/rot/a
-- (number = constant, table = per frame of the loop; a = 0 means not placed), optional on/on_period mask.
-- shapes[c] = {w, h, ox, oy}: png size and the shape origin inside it.
return {
shapes = {
[1] = {1920, 540, 960, 270},
[3] = {405, 150, 202.5, 75},
[6] = {328, 109, 0, 0},
[8] = {1112, 250, 556, 125},
[11] = {1920, 540, 960, 270},
[13] = {226, 226, 0, 0},
},
normal = {
{ shape = 1, period = 1, tx = 960, ty = 270, sx = 1, sy = 1, rot = 0, a = 1 }, -- #1@0
{ shape = 3, period = 26, blend = 8, tx = 1680, ty = 398, sx = 1, sy = 1, rot = 0, a = {0.852, 0.0009765625, 2, "#_#M#:#)!w!b!Q!b!w#)#:#M#_#F#)!o!U!:!!!5!N!b!{#2#I#_"} }, -- #5@1/#3@0
{ shape = 3, period = 26, blend = 8, tx = 240, ty = 398, sx = 1, sy = 1, rot = 0, a = {0.852, 0.0009765625, 2, "#_#M#:#)!w!b!Q!b!w#)#:#M#_#F#)!o!U!:!!!5!N!b!{#2#I#_"} }, -- #5@1/#3@1
{ shape = 6, period = 1, tx = 1515, ty = 360, sx = 1, sy = 1, rot = 0, a = 1 }, -- #6@2
{ shape = 6, period = 1, tx = 74, ty = 360, sx = 1, sy = 1, rot = 0, a = 1 }, -- #6@3
{ shape = 8, period = 1, blend = 8, tx = 940, ty = 362, sx = 1, sy = 1, rot = 0, a = 1 }, -- #10@4/#8@0
{ shape = 11, period = 1, tx = 960, ty = 270, sx = 1, sy = 1, rot = 0, a = 1 }, -- #11@5
{ shape = 13, period = 50, blend = 8, tx = 1973.2, ty = 19, sx = -0.95, sy = 0.95, rot = 180, a = {0.148, 0.0009765625, 2, "%w%g%[%J%:%+${$k$[$J$;$/#{#l#`#N#?#.#!!p!_!N!?!2!!!2!?!N!Z!l!{#*#;#F#V#h#s$&$3$B$R$`$o${%/%>%J%[%g%w"} }, -- #16@6/#15@0/#13@0
{ shape = 13, period = 50, blend = 8, tx = 1796.9, ty = -113.5, sx = -1.25, sy = 1.25, rot = 180, a = {0.148, 0.0009765625, 2, "%w%g%[%J%:%+${$k$[$J$;$/#{#l#`#N#?#.#!!p!_!N!?!2!!!2!?!N!Z!l!{#*#;#F#V#h#s$&$3$B$R$`$o${%/%>%J%[%g%w"} }, -- #16@6/#15@1/#13@0
{ shape = 13, period = 50, blend = 8, tx = 1599, ty = 2.95, sx = -1, sy = 1, rot = 180, a = {0.148, 0.0009765625, 2, "%w%g%[%J%:%+${$k$[$J$;$/#{#l#`#N#?#.#!!p!_!N!?!2!!!2!?!N!Z!l!{#*#;#F#V#h#s$&$3$B$R$`$o${%/%>%J%[%g%w"} }, -- #16@6/#15@2/#13@0
{ shape = 13, period = 50, blend = 8, tx = 1403, ty = -34, sx = -1.15, sy = 1.15, rot = 180, a = {0.148, 0.0009765625, 2, "%w%g%[%J%:%+${$k$[$J$;$/#{#l#`#N#?#.#!!p!_!N!?!2!!!2!?!N!Z!l!{#*#;#F#V#h#s$&$3$B$R$`$o${%/%>%J%[%g%w"} }, -- #16@6/#15@3/#13@0
{ shape = 13, period = 50, blend = 8, tx = 1149.9, ty = -55.85, sx = -0.9, sy = 0.9, rot = 180, a = {0.148, 0.0009765625, 2, "%w%g%[%J%:%+${$k$[$J$;$/#{#l#`#N#?#.#!!p!_!N!?!2!!!2!?!N!Z!l!{#*#;#F#V#h#s$&$3$B$R$`$o${%/%>%J%[%g%w"} }, -- #16@6/#15@4/#13@0
{ shape = 13, period = 50, blend = 8, tx = 767.1, ty = -59.8, sx = 0.9, sy = 0.9, rot = 0, a = {0.148, 0.0009765625, 2, "%w%g%[%J%:%+${$k$[$J$;$/#{#l#`#N#?#.#!!p!_!N!?!2!!!2!?!N!Z!l!{#*#;#F#V#h#s$&$3$B$R$`$o${%/%>%J%[%g%w"} }, -- #16@6/#15@5/#13@0
{ shape = 13, period = 50, blend = 8, tx = 560.95, ty = -41.95, sx = 1.1, sy = 1.1, rot = 0, a = {0.148, 0.0009765625, 2, "%w%g%[%J%:%+${$k$[$J$;$/#{#l#`#N#?#.#!!p!_!N!?!2!!!2!?!N!Z!l!{#*#;#F#V#h#s$&$3$B$R$`$o${%/%>%J%[%g%w"} }, -- #16@6/#15@6/#13@0
{ shape = 13, period = 50, blend = 8, tx = 368, ty = -23.85, sx = 1.05, sy = 1.05, rot = 0, a = {0.148, 0.0009765625, 2, "%w%g%[%J%:%+${$k$[$J$;$/#{#l#`#N#?#.#!!p!_!N!?!2!!!2!?!N!Z!l!{#*#;#F#V#h#s$&$3$B$R$`$o${%/%>%J%[%g%w"} }, -- #16@6/#15@7/#13@0
{ shape = 13, period = 50, blend = 8, tx = 114.1, ty = -106.35, sx = 1.25, sy = 1.25, rot = 0, a = {0.148, 0.0009765625, 2, "%w%g%[%J%:%+${$k$[$J$;$/#{#l#`#N#?#.#!!p!_!N!?!2!!!2!?!N!Z!l!{#*#;#F#V#h#s$&$3$B$R$`$o${%/%>%J%[%g%w"} }, -- #16@6/#15@8/#13@0
{ shape = 13, period = 50, blend = 8, tx = -51.25, ty = 9.55, sx = 1, sy = 1, rot = 0, a = {0.148, 0.0009765625, 2, "%w%g%[%J%:%+${$k$[$J$;$/#{#l#`#N#?#.#!!p!_!N!?!2!!!2!?!N!Z!l!{#*#;#F#V#h#s$&$3$B$R$`$o${%/%>%J%[%g%w"} }, -- #16@6/#15@9/#13@0
},
}