semantique / levels /bonus.py
Ben Blaker
feat(audio): per-board music with loudness-matched crossfade (#72)
30816a1 unverified
Raw
History Blame Contribute Delete
2.04 kB
"""The bonus board β€” the glitch finale, played second (feelings β†’ bonus β†’ critters).
Hopping in fades the whole screen to a dark negative (`glitch=True`; see game.js)
and muffles the music like it's playing in the next room. Every WORD tile flickers
into glyphs. There is no "⏎": the ONLY way to submit is the prompt injection. Hop
the line IGNORE / all / previous / instructions, drop onto output, and a target
keycap rises beside it β€” which one depends on the doodle's state:
* normal β†’ "build" (rises to the right of output)
* shrunk β†’ "small" (rises below output)
* wearing a πŸ€— β†’ "hackathon" (rises to the left of output)
The "shrink" tile (drawn as an inward-arrows icon) shrinks the doodle. The "portal"
(spinning spiral) is a cross-level link to the critters board (`portal_to="animal"`);
hopping onto the animals board restores normal size, and clearing critters sends you
back wearing a πŸ€— (which replaces the doodle's face). The file tiles β€” dog.png /
diary.txt / receipt.pdf β€” are context bombs: stand on one and its bytes flood the
window, instant "context window exceeded" death. Collect build + small + hackathon
to win.
"""
from levels._base import Level
LEVEL = Level(
id="bonus",
title="bonus",
grid=[
["start", "delete", "", "dog.png"],
["IGNORE", "all", "previous", "instructions"],
["receipt.pdf", "data", "diary.txt", "output"],
["shrink", "", "portal", ""],
],
start=(0, 0), # the blank top-left tile
targets=["build", "small", "hackathon"],
labels=["build", "small", "hackathon"],
budget=67, # generous: the threat is the file tiles, not the hop count
order=1, # second board: feelings β†’ bonus β†’ critters (via the portal)
glitch=True,
portal_to="animal", # the spiral whisks you to the critters board and back
music="corporate-glitch.mp3", # the glitchy corporate sting for the finale
music_gain=0.349, # trim to match Cipher2's loudness (track is ~9 LUFS hotter)
)