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(`