Easter Egg: Tetris

Easter Egg: TetrisEaster Egg: Tetris

Hidden inside Open Publisher is a fully playable retro Tetris game, built from scratch with its own standalone game engine, a custom soundtrack, procedurally generated 8-bit sound effects, and a dynamic scoring system. Unlocking it takes exactly one classic cheat code.

How to Unlock It
How to Unlock tetris

At any time while Open Publisher is open, type the classic Konami Code on your keyboard:

↑  ↑  ↓  ↓  ←  →  ←  →  B  A

A background key listener monitors for this exact sequence. The moment the final key is pressed, the document editor seamlessly transforms into a fully playable Tetris game rendered directly on the canvas.

The Game EngineThe Game Engine

The Tetris game is powered by a lightweight, standalone JavaScript engine built entirely from scratch. It includes:

  • Accurate piece rotation & collision detection – Pieces rotate and collide using correct rotation mathematics, behaving exactly as you would expect from a classic Tetris game.

  • The game after starting via konami code

    “Coyote time” lock delays – A 500ms lock delay is applied before pieces settle, giving you a brief window to slide or adjust after a piece lands – the same technique used in professional Tetris implementations for a polished, forgiving feel.

  • Dynamic responsive sizing – The game board automatically scales edge-to-edge to fit your current document canvas size, regardless of the page size or zoom level you are working at.

  • Line-clearing animations & scoring – Lines clear with dynamic animations and the score updates in real time.

Sound & Music

The audio is generated and played entirely within the browser using the Web Audio API:Sound & Music

  • 8-bit sound effects – Procedurally synthesised retro sound effects play for every piece movement, rotation, lock, drop, line clear, and game over.

  • The Open Publisher Tetris Theme – A custom background music track (Created with Gemini) plays throughout the game, carefully mixed at 25% volume so it complements rather than overpowers the sound effects.

The 3D Credit OverlayThe 3D Credit Overlay

When the game starts, an elegant pixel-styled credit overlay unrolls into the grey workspace area using a CSS 3D rotateX and clip-path transition – a cinematic opening sequence before the first piece drops.

Exiting the Game

Exiting the Game

While Tetris is active, an Exit Tetris button is injected directly into the Home ribbon, giving you a highly visible one-click way out at any time. Clicking it immediately ends the game and restores the document editor to its exact previous state – every element, every layer, and every edit perfectly preserved, as if you never left.