Skip to content

Commit a295154

Browse files
committed
Rename mini-game chase to maintenance debt
1 parent f28d64e commit a295154

3 files changed

Lines changed: 19 additions & 9 deletions

File tree

‎src/data/site.ts‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ export const miniGame = {
5353
ariaLabel: 'Maintainer Day - mini game',
5454
controlsHintHtml:
5555
'←/→ or A/D move/backpedal · Space/↑/W or JUMP leap · ↓/S enters pipes · Esc quits',
56-
voidTitle: 'BACKLOG',
57-
voidSubtitle: 'endless micro-optimizations and useless features',
58-
voidWarning: 'the queue is behind you. keep moving.',
59-
voidSignLines: ['KEEP MOVING', 'QUEUE CLOSING', 'IT CATCHES UP'],
60-
voidGameOverTitle: 'QUEUE CAUGHT UP',
56+
voidTitle: 'MAINTENANCE DEBT',
57+
voidSubtitle: 'unfunded fixes, CVEs, and release work',
58+
voidWarning: 'unfunded maintenance is catching up. keep moving.',
59+
voidSignLines: ['KEEP MOVING', 'CVE DRIFT', 'RELEASE LAG'],
60+
voidGameOverTitle: 'DEBT CAUGHT UP',
6161
voidGameOverPrefix: 'you lasted',
6262
voidSecondLabel: 'second',
6363
voidSecondsLabel: 'seconds',
@@ -112,7 +112,7 @@ export const miniGame = {
112112
{
113113
title: 'QUICK FIX',
114114
main: 'the quick fix had five hidden migrations.',
115-
void: 'the quick fix brought its own backlog.',
115+
void: 'the quick fix brought its own maintenance debt.',
116116
detail: 'one line became a week of compatibility work.',
117117
},
118118
{
@@ -154,7 +154,7 @@ export const mascotCompanion = {
154154
'jump the bills',
155155
'fix the bugs',
156156
'keep me funded',
157-
'beat the backlog',
157+
'outrun the debt',
158158
'save the weekend',
159159
'patch the repo',
160160
'fund the hours',

‎src/scripts/game.ts‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { miniGame } from '../data/site';
55
maintainer. You ship for $0 while the expense monsters keep coming:
66
RENT · TAX · ELECTRIC · WATER · MOBILE · SUBS · GAS · LOAN · FEES.
77
Bump ? blocks for GitHub ★ (worth $0), grab the COFFEE, and find the secret
8-
NEW PROJECT IDEA — the backlog grows, so the maintainer grows with it.
8+
NEW PROJECT IDEA — the maintenance debt grows, so the maintainer grows with it.
99
1010
Reach the finale and you win, obviously: the lights warm up and fireworks go up
1111
because ManagedCode is glad to have you here, funding the maintenance work
@@ -739,7 +739,7 @@ export function createMascotGame(): Game {
739739
}
740740
function popNewProject(tx: number, ty: number) {
741741
// NOT a 1-UP / life-up — it's a NEW PROJECT idea. The shiny new repo you'll
742-
// start instead of finishing this one. Bigger backlog, bigger sprite.
742+
// start instead of finishing this one. Bigger maintenance debt, bigger sprite.
743743
oneups.push({ x: tx * TILE + 1, y: ty * TILE - 14, vx: 0.8, vy: -2.4, got: false });
744744
addParticle(tx * TILE - 20, ty * TILE - 4, 'NEW PROJECT IDEA', C.life);
745745
}
@@ -2377,6 +2377,9 @@ export function createMascotGame(): Game {
23772377
pipeOccluded: Boolean(activePipe && state === 'pipe' && player.y + player.h > activePipe.top),
23782378
camX: Math.round(camX),
23792379
voidT,
2380+
voidTitle: miniGame.voidTitle,
2381+
voidWarning: miniGame.voidWarning,
2382+
voidSignLines: [...miniGame.voidSignLines],
23802383
voidSeconds: voidSeconds(),
23812384
voidDragonX: Math.round(voidDragon.x),
23822385
voidGap: Math.round(voidGap()),

‎tests/functional.spec.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -943,6 +943,9 @@ test.describe('Mission Run mini-game', () => {
943943
pipeOccluded?: boolean;
944944
camX?: number;
945945
voidT?: number;
946+
voidTitle?: string;
947+
voidWarning?: string;
948+
voidSignLines?: readonly string[];
946949
voidSeconds?: number;
947950
voidDragonX?: number;
948951
voidGap?: number;
@@ -1199,6 +1202,10 @@ test.describe('Mission Run mini-game', () => {
11991202
expect(voidStart?.transitionLabel).toBe('DOWN PIPE');
12001203
expect(voidStart?.transitionT ?? 0).toBeGreaterThan(0);
12011204
expect(voidStart?.transitionDuration ?? 0).toBeGreaterThan(voidStart?.transitionT ?? 0);
1205+
expect(voidStart?.voidTitle).toBe('MAINTENANCE DEBT');
1206+
expect(voidStart?.voidTitle).not.toBe('BACKLOG');
1207+
expect(voidStart?.voidWarning).toBe('unfunded maintenance is catching up. keep moving.');
1208+
expect(voidStart?.voidSignLines).toEqual(['KEEP MOVING', 'CVE DRIFT', 'RELEASE LAG']);
12021209
expect(voidStart?.voidGap ?? 0).toBeGreaterThan(120);
12031210

12041211
await page.evaluate(() => {

0 commit comments

Comments
 (0)