Skip to content
Open
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
12 changes: 6 additions & 6 deletions src/client/features/arcade/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import type { Ctx } from '../../core/context';
import { Arcade } from './ui';
import { Arcade, type ArcadeDeps } from './ui';

/** The boss's monitor upstairs: Minesweeper, from the boss's chair (the chair's E plays it, see features/seating). */
export function installArcade(ctx: Ctx): Arcade {
// The boss's monitor upstairs: Minesweeper, from the boss's chair.
const arcade = new Arcade(ctx.office.bossScreen);
/** The boss's monitor upstairs: Boss Worker Control System, from the boss's chair (the chair's E opens it, see features/seating). */
export function installArcade(ctx: Ctx, deps?: ArcadeDeps): Arcade {
// The boss's monitor upstairs: Boss Worker Control System, from the boss's chair.
const arcade = new Arcade(ctx.office.bossScreen, ctx.net, deps);
ctx.ticks.add('play', ({ dt }) => arcade.update(ctx.camera, dt));
// With the camera up at the monitor, the game has the screen: no hands drawn over it.
// With the camera up at the monitor, the system has the screen: no hands drawn over it.
ctx.view.add({ covers: () => arcade.zoomed });
return arcade;
}
Loading