Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/meetings/playtest-24-oct.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions game/src/boot/LoadingView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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('');
}

Expand Down
5 changes: 3 additions & 2 deletions game/src/ui/Title.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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')])
Expand Down
14 changes: 13 additions & 1 deletion game/src/ui/credits.test.ts
Original file line number Diff line number Diff line change
@@ -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');

Expand All @@ -22,6 +23,17 @@ describe('title and credits', () => {
expect(indexHtml).toContain(`<title>${TITLE}</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);
Expand Down
6 changes: 5 additions & 1 deletion game/src/ui/credits.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
/** Working title – decision 13 is open; the team's pick replaces this one line (and index.html's <title>). */
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[] }[] = [
Expand All @@ -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.'] },
Expand Down
Loading