diff --git a/docs/meetings/playtest-24-oct.md b/docs/meetings/playtest-24-oct.md index 03a8452..1666567 100644 --- a/docs/meetings/playtest-24-oct.md +++ b/docs/meetings/playtest-24-oct.md @@ -54,7 +54,7 @@ Vatsal and Lex played the live slice on 24 Oct and recorded what to fix ([A15](t | # | What | Status | | --- | --- | --- | -| T1 | The jam theme **"It's spooky outside"** must show | ❓ title card or loading line, e.g. the crash window or the title's subtitle | +| T1 | The jam theme **"It's spooky outside"** must show | ✅ under the title ("DEGDEV 3 - It's spooky outside."), as the loader's last line ("WARNING: It's spooky outside.") and in the credits | | T2 | The **rubber chicken** must be in the game somehow | ❓ smallest version: a rubber chicken prop as a secret pickup or on Dexter's bench; it squeaks | ## Scale – hero against the world diff --git a/game/src/boot/LoadingView.ts b/game/src/boot/LoadingView.ts index 3eb9058..c664bcd 100644 --- a/game/src/boot/LoadingView.ts +++ b/game/src/boot/LoadingView.ts @@ -3,6 +3,7 @@ import { VIEW_HEIGHT, VIEW_WIDTH } from '../core/viewport'; import { UI_ATLAS_KEY, UI_LAYOUT_KEY } from './manifest'; import { pixelSafe, pixelText } from './pixelFont'; import { formatBytes, type Summary } from './progress'; +import { THEME } from '../ui/credits'; /** The slice's palette (style master, HUD direction): night ink, cream, phosphor green, teal charge, rust. */ export const PALETTE = { @@ -101,6 +102,7 @@ export class LoadingView { this.done = true; this.status.setText(pixelSafe('(RESPONDING)')).setTint(PALETTE.teal).setVisible(true); this.line('DEGGSTER.EXE IS NOW RESPONDING.', PALETTE.cream); + this.line(`WARNING: ${THEME}`, PALETTE.rust); this.hint.setText(''); } diff --git a/game/src/ui/Title.ts b/game/src/ui/Title.ts index b98bace..9921f4c 100644 --- a/game/src/ui/Title.ts +++ b/game/src/ui/Title.ts @@ -7,7 +7,7 @@ import { VIEW_HEIGHT, VIEW_WIDTH } from '../core/viewport'; import { sound } from '../fx/sound/Audio'; import { gridBounds } from '../stage/camera'; import { drawStage } from '../stage/render'; -import { MENU, moveSelection, SUBTITLE, TITLE } from './credits'; +import { MENU, moveSelection, SUBTITLE, THEME_LINE, TITLE } from './credits'; import { creditsText } from './creditsView'; const STAGE = 'Stage'; @@ -86,12 +86,13 @@ export class Title extends Phaser.Scene { const subtitle = pixelText(this, cx - 12, 206, SUBTITLE, 3, PALETTE.rust).setOrigin(0.5).setDropShadow(1, 1, PALETTE.ink, 1); const cursor = pixelText(this, subtitle.x + subtitle.displayWidth / 2 + 6, 206, '~', 3, PALETTE.rust).setOrigin(0, 0.5).setDropShadow(1, 1, PALETTE.ink, 1); this.time.addEvent({ delay: 530, loop: true, callback: () => cursor.setVisible(!cursor.visible) }); + const theme = pixelText(this, cx, 262, THEME_LINE, 2, PALETTE.cream).setOrigin(0.5).setAlpha(0.8).setDropShadow(1, 1, PALETTE.ink, 1); this.menu = MENU.map((item, i) => pixelText(this, cx, 500 + i * 56, item, 4, PALETTE.cream).setOrigin(0.5).setDropShadow(1, 1, PALETTE.ink, 1) .setInteractive({ useHandCursor: true }) .on('pointerover', () => this.select(i)) .on('pointerdown', () => { this.select(i); this.confirm(); })); const hint = pixelText(this, cx, VIEW_HEIGHT - 40, 'ARROWS / WASD CHOOSE ENTER / SPACE / J SELECT', 2, PALETTE.cream).setOrigin(0.5).setDropShadow(1, 1, PALETTE.ink, 1); - this.titleLayer = this.add.container(0, 0, [shade, title, subtitle, cursor, ...this.menu, hint]) + this.titleLayer = this.add.container(0, 0, [shade, title, subtitle, cursor, theme, ...this.menu, hint]) .setScrollFactor(0).setDepth(UI_DEPTH); const veil = this.add.rectangle(0, 0, VIEW_WIDTH, VIEW_HEIGHT, PALETTE.night, 0.88).setOrigin(0); this.creditsLayer = this.add.container(0, 0, [veil, ...creditsText(this, 'Act / Esc – back')]) diff --git a/game/src/ui/credits.test.ts b/game/src/ui/credits.test.ts index baddbce..fb29eaf 100644 --- a/game/src/ui/credits.test.ts +++ b/game/src/ui/credits.test.ts @@ -1,7 +1,8 @@ import { describe, expect, it } from 'vitest'; import readme from '../../../README.md?raw'; import indexHtml from '../../index.html?raw'; -import { CREDITS, MENU, moveSelection, TITLE } from './credits'; +import pixelFont from '../boot/pixelFont.ts?raw'; +import { CREDITS, MENU, moveSelection, THEME, THEME_LINE, TITLE } from './credits'; const lines = CREDITS.flatMap((section) => section.lines).join('\n'); @@ -22,6 +23,17 @@ describe('title and credits', () => { expect(indexHtml).toContain(`${TITLE}`); }); + it('shows the jam theme on the title and in the credits, in glyphs the pixel font has', () => { + expect(THEME).toBe("It's spooky outside."); + expect(THEME_LINE).toContain(THEME); + expect(lines).toContain(THEME); + // Every character has a glyph in the 5×7 font (pixelSafe would print '?'). + for (const ch of new Set(`${THEME_LINE} WARNING: ${THEME}`.toUpperCase().replace(/ /g, ''))) { + const keys = [ch, `'${ch}'`, `"${ch}"`].map(k => `${k}: '`); + expect(keys.some(k => pixelFont.includes(` ${k}`) || pixelFont.includes(`,${k}`)), ch).toBe(true); + } + }); + it('wraps the menu selection', () => { expect(MENU).toEqual(['Start', 'Credits']); expect(moveSelection(0, -1)).toBe(1); diff --git a/game/src/ui/credits.ts b/game/src/ui/credits.ts index cc026e4..e856dd7 100644 --- a/game/src/ui/credits.ts +++ b/game/src/ui/credits.ts @@ -1,6 +1,10 @@ /** Working title – decision 13 is open; the team's pick replaces this one line (and index.html's ). */ export const TITLE = 'DEGGSTER.EXE'; export const SUBTITLE = 'has stopped responding.'; +/** The DEGDEV 3 jam theme (playtest T1): it must show – under the title, and as the loader's last line. */ +export const THEME = "It's spooky outside."; +/** The title's theme line. */ +export const THEME_LINE = `DEGDEV 3 - ${THEME}`; /** Team as in README.md; tools and sources as in NOTICE.md. Keep both files and this list in step. */ export const CREDITS: { heading: string; lines: string[] }[] = [ @@ -11,7 +15,7 @@ export const CREDITS: { heading: string; lines: string[] }[] = [ lines: [ 'THD – the Deggster mascot, the crest and the campus, affectionately referenced', 'Fast Forest e.V. – Jenny, the driverless race car', - 'DEGDEV 3 game jam, THD Deggendorf, 23–24 Oct 2026', + `DEGDEV 3 game jam, THD Deggendorf, 23–24 Oct 2026 – theme: ${THEME}`, ], }, { heading: 'Fiction', lines: ['The experiment, the anomalies and every character are invented.'] },