blockfall
v0.1.0
Published
Terminal Tetris built with TypeScript, Bun, OpenTUI, and React.
Downloads
156
Maintainers
Readme
Blockfall
Terminal Tetris built with TypeScript, Bun, OpenTUI, and React.
Commands
Install from npm:
npm install -g blockfall
bfBlockfall runs on Bun, so bun must be available in your PATH.
Run from source:
bun install
bun run playTo install the local CLI command:
bun link
bfControls
Left/Right: moveDown: soft dropUporX: rotate clockwiseZ: rotate counter-clockwiseC: hold current pieceSpace: hard dropP: pauseR: restart after game overQ,Esc, orCtrl+C: quit
Structure
src/game: pure TypeScript game state and rulessrc/ui: OpenTUI + React terminal renderingsrc/index.tsx: Bun entry point
