Musichetta a 8 bit per il cartello «Manzolo (Poca) Art Presents»
tools/jingle.py la sintetizza da zero, a tempo con le scritte: arpeggio su MANZOLO, accordo su Art, trombone triste sul (Poca), accordo finale su PRESENTS. Suona una volta sola; la musica del titolo entra quando compare il titolo; saltando il cartello si salta anche lei. Senza un gesto del giocatore il browser può tenerla muta. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UdeKd62opy9PKgpQXtVctF
This commit is contained in:
@@ -47,6 +47,8 @@ try {
|
||||
// Il cartello d'apertura, poi da solo il titolo.
|
||||
assert.match(await page.textContent('#splash'), /Manzolo\s*\(Poca\)\s*Art\s*Presents/);
|
||||
assert.ok(await page.isHidden('#title'), 'il titolo aspetta la fine del cartello');
|
||||
assert.match(await page.evaluate(() => jingle.src), /assets\/audio\/cartello\.mp3$/, 'la musichetta del cartello');
|
||||
assert.equal(await page.evaluate(() => music.want), null, 'la musica del titolo aspetta il titolo');
|
||||
await page.waitForTimeout(2800);
|
||||
await page.screenshot({ path: `${OUT}/00-cartello.png` });
|
||||
// Il titolo arriva sotto il cartello mentre sfuma: in nessun momento si vede la scena nuda.
|
||||
|
||||
@@ -6,6 +6,7 @@ import { story } from '../src/story/story.js';
|
||||
|
||||
test('il brano giusto per titolo, fine e scena', () => {
|
||||
const s = { music: { title: 't.mp3', game: 'g.mp3', ending: 'e.mp3' }, scenes: { a: {}, b: { music: 'b.mp3' } } };
|
||||
assert.equal(trackFor(s, { screen: 'splash', scene: 'a' }), null, 'sotto il cartello suona solo la sua musichetta');
|
||||
assert.equal(trackFor(s, { screen: 'title', scene: 'a' }), 't.mp3');
|
||||
assert.equal(trackFor(s, { screen: 'intro', scene: 'a' }), 't.mp3');
|
||||
assert.equal(trackFor(s, { screen: 'ending', scene: 'a' }), 'e.mp3');
|
||||
|
||||
Reference in New Issue
Block a user