A clean start for the shared repository: the Unity project (Assets, Packages, ProjectSettings), ArtSource, Docs and Tools as they stood at f3666f0 in the old local repository, with its generated prefabs and scene brought up to date. Images, audio, models and binaries go through Git LFS (.gitattributes). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
126 lines
5.7 KiB
Python
126 lines
5.7 KiB
Python
"""The gameplay trailer: the game's own music, and the game shown as it plays, most of it through the player's eyes with the
|
|
HUD. Times are seconds of music_game_loop.wav, which beats at 79.5 a minute; every shot is a whole number of beats."""
|
|
import os
|
|
|
|
from cut import Logo, Type
|
|
from looks import AUDIO, GOLD, HOT, LOGO, NIGHT, PLAY, ROLLS, SPACE, clip, runner # noqa: F401
|
|
|
|
TRACK = os.path.join(AUDIO, "music_game_loop.wav")
|
|
TRACK_GAIN = 0.75
|
|
B = 60 / 79.5
|
|
KEEP = [(0.0, 103.5)]
|
|
PUNCH, SHAKE, ABERRATE = 0.006, 1.5, 0.8
|
|
|
|
SHOTS = []
|
|
run = runner(SHOTS)
|
|
|
|
run(0.0,
|
|
(B * 6, "o_space_k", {"speed": 1.2, "zoom": (1.0, 1.04), "grade": SPACE}),
|
|
(B * 4, "o_skim", {"start": 1.0, "speed": 1.2, "grade": GOLD}),
|
|
# the tools, one after another
|
|
(B * 5, "g_scissors", {"start": 0.1, "grade": PLAY}),
|
|
(B * 3, "g_shears", {"start": 0.8, "grade": PLAY}),
|
|
(B * 3, "g_sickle", {"start": 0.8, "grade": PLAY}),
|
|
(B * 4, "g_scythe", {"start": 1.2, "grade": PLAY}),
|
|
(B * 5, "g_deposit", {"start": 0.1, "grade": PLAY}),
|
|
(B * 4, "g_supply", {"start": 0.0, "grade": PLAY}),
|
|
(B * 4, "g_shop", {"start": 0.4, "grade": PLAY}),
|
|
(B * 4, "g_wide", {"start": 1.5, "grade": PLAY}),
|
|
# together
|
|
(B * 5, "g_coop", {"start": 1.5, "grade": PLAY}),
|
|
(B * 4, "v_sixteen", {"start": 0.9, "grade": HOT}),
|
|
(B * 3, "c_line", {"start": 1.2, "grade": HOT}),
|
|
# the factory
|
|
(B * 6, "g_build", {"start": 0.3, "grade": PLAY}),
|
|
(B * 4, "k_grow", {"start": 2.5, "grade": HOT}),
|
|
(B * 4, "k_belt", {"start": 0.3, "grade": HOT}),
|
|
(B * 4, "k_robots", {"start": 0.4, "grade": HOT}),
|
|
# the machines
|
|
(B * 5, "g_ride", {"start": 1.5, "grade": PLAY}),
|
|
(B * 4, "g_combine", {"start": 2.0, "grade": PLAY}),
|
|
(B * 3, "c_tractor", {"start": 1.2, "grade": HOT}),
|
|
(B * 3, "w_trucks", {"start": 1.6, "grade": HOT}),
|
|
# night, the planet, the crew
|
|
(B * 4, "n_line", {"start": 0.8, "grade": NIGHT}),
|
|
(B * 3, "n_tractor", {"start": 0.7, "grade": NIGHT}),
|
|
(B * 4, "g_map", {"start": 0.0, "grade": PLAY}),
|
|
(B * 4, "c_ring", {"start": 0.8, "grade": GOLD}),
|
|
(B * 4, "g_character", {"start": 0.0, "grade": PLAY}),
|
|
(B * 4, "f_air", {"start": 0.6, "grade": HOT}),
|
|
(B * 8, "e_cut_k", {"speed": 1.4, "zoom": (1.0, 1.05), "grade": SPACE}),
|
|
(0, "e_up", {"speed": 0.4, "zoom": (1.0, 1.08), "grade": dict(GOLD, sat=1.2)}),
|
|
until=103.5)
|
|
|
|
|
|
def at(take):
|
|
return next(s.at for s in SHOTS if s.take == take)
|
|
|
|
|
|
def REACT(t):
|
|
return 0.15
|
|
|
|
|
|
def BLACK(t):
|
|
if t < 0.5:
|
|
return 1 - t / 0.5
|
|
if t > 102.0:
|
|
return min(1.0, (t - 102.0) / 1.4)
|
|
return 0.0
|
|
|
|
|
|
FLASH = [(at("e_up"), 0.5)]
|
|
|
|
|
|
def caption(text, take, beats=None, size=72):
|
|
a = at(take) + 0.15
|
|
end = next(s.end for s in SHOTS if s.take == take) if beats is None else a + beats * B
|
|
return Type(text, a, end - 0.1, size, y=0.86, how="rise")
|
|
|
|
|
|
TYPE = [
|
|
Type("EARTH HAS RUN OUT OF GRASS", 0.6, at("o_skim") - 0.1, 84, y=0.2, how="rise"),
|
|
Type("HERBARIA-7 HAS TOO MUCH", at("o_skim") + 0.1, at("g_scissors") - 0.1, 84, y=0.2, how="rise"),
|
|
caption("START WITH NAIL SCISSORS", "g_scissors"),
|
|
caption("CASH IN, BUY BETTER BLADES", "g_shears", 10),
|
|
caption("HAND IN WHAT YOU CUT", "g_deposit"),
|
|
caption("GEAR UP", "g_supply"),
|
|
caption("UNLOCK UPGRADES", "g_shop"),
|
|
caption("WIDER BLADES, BIGGER STRIPS", "g_wide"),
|
|
caption("MOW WITH YOUR FRIENDS", "g_coop"),
|
|
caption("UP TO 16 PLAYERS", "v_sixteen", 7),
|
|
caption("BUILD A GRASS FACTORY", "g_build", 10),
|
|
caption("BELTS, PRESSES, BALERS", "k_belt"),
|
|
caption("ROBOTS THAT MOW FOR YOU", "k_robots"),
|
|
caption("DRIVE MOWERS, TRACTORS AND COMBINES", "g_ride", 15, 64),
|
|
caption("WORK THROUGH THE NIGHT", "n_line", 7),
|
|
caption("A WHOLE PLANET TO CLEAR", "g_map", 8),
|
|
caption("PICK YOUR CREW", "g_character"),
|
|
caption("MOW IT ALL", "f_air"),
|
|
caption("UNTIL NOT A BLADE IS LEFT", "e_cut_k", 7),
|
|
Logo(LOGO, at("e_up"), 103.5, 1180, 0.4),
|
|
Type("WISHLIST NOW ON STEAM", at("e_up") + 2.0, 103.5, 76, y=0.76, how="rise"),
|
|
Type("CO-OP FOR 1 TO 16 PLAYERS", at("e_up") + 3.0, 103.5, 50, y=0.85, how="rise", colour=(226, 240, 200)),
|
|
]
|
|
|
|
|
|
def loop(name, take, gain, beats=None):
|
|
a = at(take)
|
|
end = next(s.end for s in SHOTS if s.take == take) if beats is None else a + beats * B
|
|
return (a, clip(name), gain, end - a)
|
|
|
|
|
|
SFX = [loop("grass_rustle_loop", "g_scissors", 0.35, 15), loop("grass_rustle_loop", "g_wide", 0.35, 9)]
|
|
SFX += [(at("g_scissors") + 0.3 + 0.6 * i, clip("snip"), 0.3) for i in range(6)]
|
|
SFX += [(at("g_shears") + 0.2 + 0.7 * i, clip("shears_snip_%d" % (i % 2 + 1)), 0.35) for i in range(3)]
|
|
SFX += [(at("g_sickle") + 0.3 + 0.8 * i, clip("scythe_swing_%d" % (i % 3 + 1)), 0.3) for i in range(7)]
|
|
SFX += [(at("g_wide") + 0.4 + 0.9 * i, clip("scythe_swing_%d" % (i % 3 + 1)), 0.3) for i in range(7)]
|
|
SFX += [(at("g_deposit") + 1.9, clip("cash_register"), 0.6), (at("g_deposit") + 2.1, clip("coin_tick"), 0.4)]
|
|
SFX += [(at("g_supply") + 0.05, clip("ui_open"), 0.5), (at("g_shop") + 0.05, clip("ui_open"), 0.5), (at("g_shop") + 1.8, clip("perk_unlock"), 0.5)]
|
|
SFX += [(at("g_build") + 2.7, clip("build_place"), 0.7)]
|
|
SFX += [loop("conveyor_loop", "k_belt", 0.4), (at("k_belt") + 1.2, clip("press_thump"), 0.5)]
|
|
SFX += [loop("robot_mower_loop", "k_robots", 0.4), (at("k_robots") + 0.8, clip("robot_chirp"), 0.5)]
|
|
SFX += [loop("mower_engine_loop", "g_ride", 0.45), loop("combine_engine_loop", "g_combine", 0.45), loop("tractor_engine_loop", "c_tractor", 0.4, 6)]
|
|
SFX += [loop("night_crickets_loop", "n_line", 0.5, 7)]
|
|
SFX += [(at("g_map") + 0.05, clip("ui_open"), 0.5), (at("g_character") + 0.05, clip("ui_open"), 0.5)]
|
|
SFX += [(at("e_cut_k") + 0.5, clip("sector_clear"), 0.5), (at("e_up"), clip("milestone"), 0.6), (at("e_up") + 0.1, clip("confetti"), 0.6)]
|