The trailer rolls lived in a folder that is gone, so everything was shot again (-demotrailer, -stills) from today's build: new tools, deck props, console, T logo. - 14 store screenshots from the -stills takes - showcase WEBMs and banners rebuilt (Tools/Steam/showcase.py) - the demo trailer is now an edl for cut.py (Tools/Trailer/edl_demo.py) - tools find the project from their own location instead of the old path Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
175 lines
8.3 KiB
Python
175 lines
8.3 KiB
Python
"""The trailer. Times are seconds of the song. The song still leads, but the picture is the game, not a dance: the crew
|
|
work out of step, the kick only nudges the frame, and first-person takes show what playing it is like. The bridge is
|
|
left out of the song: the last chorus comes straight after the second verse."""
|
|
from cut import Logo, Shot, Type
|
|
import os
|
|
|
|
from cut import PROJECT
|
|
from looks import BAR, BARE, BEAT, DUSK, GOLD, HOT, LOGO, NIGHT, PLAY, clip, runner # noqa: F401
|
|
|
|
# shot again on the build of 1 December: the new tools, deck props, console, the T logo
|
|
ROLLS = os.path.join(PROJECT, "Builds", "Trailer", "rolls")
|
|
|
|
KEEP = [(2.2, 60.58), (75.1, 97.77), (116.1, 170.0)]
|
|
PUNCH, SHAKE, ABERRATE = 0.012, 3.5, 1.4
|
|
|
|
S = Shot
|
|
SHOTS = []
|
|
run = runner(SHOTS)
|
|
|
|
|
|
# ───────────────────────── cold open ─────────────────────────
|
|
run(2.2,
|
|
(5.8, "o_space_k", {"speed": 1.5, "zoom": (1.0, 1.04), "grade": {"sat": 1.1, "contrast": 1.06, "tint": (0, 0, 0)}}),
|
|
(5.4, "o_dive", {"speed": 0.84, "grade": GOLD, "into": "whip"}),
|
|
(1.93, "o_skim", {"start": 2.2, "speed": 1.35, "grade": GOLD, "into": "whip"}),
|
|
(BEAT * 4, "o_giant", {"start": 0.6, "speed": 0.7, "grade": GOLD}),
|
|
)
|
|
# the crew, one by one
|
|
t = 15.33 + BEAT * 4
|
|
for i in range(8):
|
|
SHOTS.append(S(f"p_{i}", t, t + BEAT, start=0.8, speed=1.0, zoom=(1.0, 1.03), grade=HOT))
|
|
t += BEAT
|
|
run(t,
|
|
(BEAT * 2, "c_swing", {"start": 0.5, "grade": HOT}),
|
|
(0, "m_blade", {"rate": 120, "start": 0.4, "speed": 0.5, "grade": GOLD}),
|
|
until=22.9)
|
|
|
|
# ───────────────────────── chorus: what you do here ─────────────────────────
|
|
run(22.9,
|
|
(2.1, "c_swing_s", {"rate": 120, "start": 1.2, "speed": 0.5, "grade": HOT}),
|
|
(BAR, "g_scythe", {"start": 1.0, "grade": PLAY}),
|
|
(BAR, "c_rider_side", {"start": 0.2, "grade": HOT, "zoom": (1.0, 1.04)}),
|
|
(BAR, "c_combine_over", {"start": 1.34, "grade": HOT}),
|
|
(BAR, "v_sixteen", {"start": 1.2, "grade": HOT}),
|
|
(BAR, "c_top", {"start": 1.2, "grade": HOT}),
|
|
(BAR, "c_tractor", {"start": 1.3, "grade": HOT}),
|
|
(0, "c_rider", {"start": 0.2, "grade": HOT}),
|
|
until=38.23)
|
|
|
|
# ───────────────────────── verse one: from nail scissors up ─────────────────────────
|
|
run(38.23,
|
|
(1.6, "v_around", {"start": 0.2, "speed": 1.6, "grade": HOT}),
|
|
(1.5, "g_scissors", {"start": 1.0, "grade": PLAY}),
|
|
(0.9, "v_scissors", {"start": 0.6, "grade": HOT}),
|
|
(1.0, "g_shears", {"start": 1.0, "grade": PLAY}),
|
|
(0.8, "v_snip", {"start": 0.6, "grade": HOT}),
|
|
(1.0, "g_sickle", {"start": 1.0, "grade": PLAY}),
|
|
(1.5, "v_knees", {"start": 0.2, "speed": 0.9, "grade": HOT}),
|
|
(1.6, "g_wide", {"start": 1.2, "grade": PLAY}),
|
|
(1.6, "v_strip", {"rate": 30, "start": 1.6, "speed": 3.0, "grade": HOT, "zoom": (1.2, 1.3), "pan": (70.0, 0.0)}),
|
|
(1.6, "g_deposit", {"start": 1.0, "grade": PLAY}),
|
|
(1.4, "v_sunset", {"rate": 30, "start": 0.0, "speed": 1.5, "grade": DUSK}),
|
|
(1.3, "n_line", {"start": 0.8, "grade": NIGHT}),
|
|
(1.3, "n_tractor", {"start": 0.8, "grade": NIGHT}),
|
|
(1.7, "v_phone", {"start": 0.3, "grade": HOT}),
|
|
(1.5, "v_sixteen_end", {"start": 0.6, "grade": HOT}),
|
|
(1.2, "v_rhythm", {"start": 0.3, "grade": HOT}),
|
|
(0, "g_coop", {"start": 1.0, "grade": PLAY}),
|
|
until=60.58)
|
|
|
|
# ───────────────────────── verse two: machines and a factory ─────────────────────────
|
|
run(75.1,
|
|
(1.4, "w_wheels", {"start": 1.0, "speed": 0.8, "grade": HOT}),
|
|
(1.4, "g_ride", {"start": 1.5, "grade": PLAY}),
|
|
(1.2, "w_trucks", {"start": 2.3, "grade": HOT}),
|
|
(1.4, "g_combine", {"start": 2.0, "grade": PLAY}),
|
|
(1.2, "b_header", {"rate": 120, "start": 0.6, "speed": 0.5, "grade": HOT}),
|
|
(1.6, "y_house", {"start": 0.8, "grade": GOLD}),
|
|
(1.6, "k_grow", {"start": 3.0, "speed": 1.4, "grade": HOT}),
|
|
(0.9, "k_hammer", {"start": 0.6, "grade": HOT}),
|
|
(1.5, "y_belts", {"start": 0.6, "grade": HOT}),
|
|
(1.6, "y_drones", {"start": 0.4, "grade": GOLD}),
|
|
(1.6, "k_robots", {"start": 1.6, "grade": HOT}),
|
|
(1.4, "y_vending", {"start": 0.6, "grade": DUSK}),
|
|
(1.5, "y_fp_beer", {"start": 3.0, "grade": PLAY}),
|
|
(1.2, "c_combine_top", {"start": 0.8, "grade": HOT}),
|
|
(1.2, "b_line", {"rate": 120, "start": 1.0, "speed": 0.5, "grade": HOT}),
|
|
(1.4, "w_three", {"start": 0.3, "grade": GOLD}),
|
|
(0, "n_air", {"start": 0.3, "grade": NIGHT}),
|
|
until=97.77)
|
|
|
|
# ───────────────────────── last chorus: everyone, everything ─────────────────────────
|
|
run(116.1,
|
|
(BAR, "f_hero", {"start": 0.4, "grade": HOT, "zoom": (1.0, 1.04)}),
|
|
(BAR, "f_in", {"start": 0.0, "grade": HOT}),
|
|
(BAR, "f_air", {"start": 0.6, "grade": HOT}),
|
|
(BAR, "y_twister", {"start": 1.2, "grade": HOT}),
|
|
(BAR, "b_grass", {"rate": 120, "start": 0.2, "speed": 0.5, "grade": GOLD}),
|
|
(BAR, "y_ufo", {"start": 0.4, "grade": DUSK}),
|
|
(BAR, "c_line", {"start": 1.2, "grade": HOT}),
|
|
(0, "f_in", {"start": 1.6, "grade": HOT}),
|
|
until=131.03)
|
|
run(131.03,
|
|
(9.0, "e_cut_k", {"speed": 1.0, "zoom": (1.0, 1.05), "grade": {"sat": 1.1, "contrast": 1.08, "tint": (0, 0, 0)}}),
|
|
(BAR, "f_hero", {"start": 2.0, "grade": HOT}),
|
|
(BAR, "y_acid", {"start": 0.4, "grade": HOT}),
|
|
(2.0, "f_in", {"start": 0.9, "speed": 0.9, "grade": HOT}),
|
|
(0, "f_air", {"start": 0.2, "speed": 0.9, "grade": HOT, "zoom": (1.0, 1.06)}),
|
|
until=147.72)
|
|
|
|
# ───────────────────────── nothing left ─────────────────────────
|
|
run(147.72,
|
|
(2.6, "e_bare", {"start": 1.0, "speed": 0.9, "grade": BARE}),
|
|
(5.0, "e_crew", {"speed": 0.85, "grade": BARE}),
|
|
(2.4, "e_look", {"start": 0.3, "speed": 0.7, "grade": BARE}),
|
|
(0, "e_up", {"speed": 0.48, "zoom": (1.0, 1.08), "grade": dict(BARE, sat=1.2)}),
|
|
until=170.0)
|
|
|
|
FLASH = [(22.9, 0.5), (75.1, 0.3), (116.1, 0.6), (159.0, 0.7)]
|
|
|
|
|
|
def REACT(t):
|
|
if t < 22.9:
|
|
return 0.25
|
|
if t < 38.2:
|
|
return 0.6
|
|
if t < 97.8:
|
|
return 0.35
|
|
if t < 147.7:
|
|
return 0.7
|
|
if t < 159:
|
|
return 0.0
|
|
return 0.4
|
|
|
|
|
|
def BLACK(t):
|
|
if t < 2.7:
|
|
return 1 - (t - 2.2) / 0.5
|
|
if t > 168.6:
|
|
return min(1.0, (t - 168.6) / 1.2)
|
|
return 0.0
|
|
|
|
|
|
TYPE = [
|
|
Type("HERBARIA-7", 5.75, 8.0, 150, y=0.5, how="rise"),
|
|
Type("EARTH HAS RUN OUT OF GRASS", 8.5, 10.9, 84, y=0.2, how="rise"),
|
|
Type("THIS PLANET HAS TOO MUCH", 11.1, 13.35, 84, y=0.2, how="rise"),
|
|
Type("MOW IT!", 23.0, 24.95, 210, y=0.74, how="slam"),
|
|
Type("ALL OF IT", 28.74, 30.5, 170, how="slam"),
|
|
Type("TOGETHER", 30.6, 32.4, 170, y=0.78, how="slam"),
|
|
Type("THE WHOLE PLANET", 36.3, 38.2, 150, how="slam"),
|
|
Type("START SMALL", 39.85, 42.3, 120, y=0.82, how="rise"),
|
|
Type("GROW BIGGER", 44.5, 47.0, 120, y=0.82, how="rise"),
|
|
Type("UP TO 16 PLAYERS", 57.05, 58.5, 120, y=0.82, how="slam"),
|
|
Type("DRIVE IT", 75.2, 77.9, 150, y=0.8, how="slam"),
|
|
Type("BUILD IT", 81.7, 83.3, 150, y=0.8, how="slam"),
|
|
Type("AUTOMATE IT", 85.8, 88.9, 150, y=0.8, how="slam"),
|
|
Type("MOW IT!", 116.1, 118.0, 240, how="slam"),
|
|
Type("TAKE THE WHOLE PLANET", 129.0, 131.0, 130, how="slam"),
|
|
Type("ZERO GRASS REMAINING", 150.6, 154.8, 92, y=0.22, how="rise"),
|
|
Type("WAIT...", 155.6, 157.9, 92, y=0.78, how="rise"),
|
|
Type("WISHLIST NOW ON STEAM", 161.0, 170.0, 76, y=0.76, how="rise"),
|
|
Type("CO-OP FOR 1 TO 16 PLAYERS", 162.0, 170.0, 50, y=0.85, how="rise", colour=(226, 240, 200)),
|
|
Logo(LOGO, 159.0, 170.0, 1180, 0.4),
|
|
]
|
|
_names = ["HANK", "OTIS", "LIN", "RUSTAM", "MARCUS", "GUS", "WADE", "KENJI"]
|
|
for i, n in enumerate(_names):
|
|
TYPE.append(Type(n, 15.33 + BEAT * (4 + i), 15.33 + BEAT * (5 + i), 96, x=0.2, y=0.84, how="slam"))
|
|
|
|
SFX = [(40.0, clip("snip"), 0.5), (41.5, clip("shears_snip_1"), 0.7), (42.6, clip("shears_snip_2"), 0.7)]
|
|
SFX += [(22.9, clip("scythe_swing_1"), 0.5), (116.1, clip("scythe_swing_2"), 0.5)]
|
|
SFX += [(50.75, clip("cash_register"), 0.6)]
|
|
SFX += [(82.5, clip("build_place"), 0.7)]
|
|
SFX += [(159.0, clip("confetti"), 0.7)]
|