opencode-tetris-battle
v1.0.40
Published
Multiplayer Tetris Battle plugin for OpenCode TUI
Downloads
3,303
Maintainers
Readme
opencode-tetris-battle
Multiplayer Tetris Battle for the OpenCode TUI.
Play side-by-side terminal Tetris with live opponent boards, garbage attacks, private room codes, and quick matchmaking. The game uses a hosted Convex backend for rooms, reactive board sync, attacks, and match results.
Install
opencode plugin opencode-tetris-battle@latest --globalRestart OpenCode, then run:
/tetris-battleTo check for updates from inside OpenCode:
/tetris-battle-updatePlay
Matchmaking
- Open
/tetris-battlein two OpenCode windows. - Press
Min both windows. - Press
Rin both windows when paired.
Private room
- Host presses
Nto create a numeric room code. - Guest presses
J, types the room code, then presses Enter. - Both players press
Rto ready.
Controls
Splash:
- Any key enters the lobby.
Qcloses the dialog.
Lobby:
Ncreates a private room.Jenters room-code typing mode (4 numeric digits).Enterjoins the typed room code.Mstarts matchmaking.Rtoggles ready.Qopens the quit confirm; pressQagain to confirm orEscto cancel.
Room (waiting / countdown):
Rtoggles ready.Lopens the leave-to-lobby confirm; pressLagain to confirm orEscto cancel.Qopens the quit confirm.
Game:
←/Amoves left.→/Dmoves right.↑/Wrotates.↓/Ssoft drops.Spacehard drops.Cholds.Ppauses.Lreturns to the lobby (double-press to confirm).Qquits (double-press to confirm).
Pause:
Presumes — onlyP,L, andQdo anything while paused; other keys are ignored.Lopens the leave-to-lobby confirm.Qopens the quit confirm.
Match over:
Rrematches in the same room.Lreturns to the lobby.Qquits.
Hosted backend
The plugin works out of the box with the public hosted Tetris Battle backend.
Development
bun install
bun run typecheck
bunx convex dev --once --typecheck=disableLicense
MIT
