Skip to content

denvaar/tetris

Repository files navigation

Tetris

For the terminal.

Video demo

Install & Setup

Install with yarn or npm.

$ yarn
$ yarn dev
$ node .

(Optional) Make it a global package.

$ yarn global add file:path/to/project
$ tetris

Recommended Font

Though you're probably using a monospace font in your terminal already, the cells are still probably taller than they are wide. This causes the game to look vertically stretched out. It's recommended to use one of the following fonts for the game for best quality.

  1. Pet Me 64 (Most recommended)
  2. GB18030 Bitmap (Pretty good, and your machine probably has it already)

Gameplay & Development Features

  • Move blocks left, right, and downward
  • Rotate blocks
  • Hard drop
  • Preview next 3 blocks
  • Save one block at a time for later
  • Pause and resume game state
  • Configurable controls and settings
  • High scores
  • Animations (Coming soon) Nope!
  • Wall kick
  • Pretty colors
  • Sound effects & music
  • Some tests :)
  • Interesting (maybe clever?) UI rendering system

Attribution

Recording of Tetris theme song (Korobeiniki) licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.

Sound effects created by Juhani Junkala under the Creative Commons CC0 license.

Releases

No releases published

Packages

No packages published