Skip to content

Latest commit

 

History

History
59 lines (49 loc) · 1.58 KB

README.md

File metadata and controls

59 lines (49 loc) · 1.58 KB

Tetris by mniip

1. Links

2. Summary

  • Programming language: Lua
  • Main size: 2,9 KB
  • Extra size: 0 B
  • Total size: 2,9 KB
  • Feature count: 17
  • Bytes per feature: 170 B

3. Controls

  • A or H: move left
  • S or J: rotate counterclockwise
  • D or L: move right
  • K or W: hard drop
  • Ctrl+C: quit

4. Features

  1. All tetrominoes
  2. Colored pieces
  3. Drop: hard drop, couple frames lock
  4. Faster levels: speed = min(score / 20, 9)
  5. Game over detection
  6. Game over screen: game over text
  7. Gravity
  8. Horizontal movement
  9. Line clearing
  10. Line clear points:
    • Single: 1
    • Double: 4
    • Triple: 9
    • Tetris: 16
  11. No bugs
  12. No ceiling
  13. Piece preview: single piece
  14. Quit: terminate program
  15. Retry: automatic
  16. Rotation
  17. Sleep mode: from OS

5. How to play (MacOS only)

  1. Download the archive
  2. Run the following commands, replacing /path/to/tetris.lua:
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    brew install lua
    lua /path/to/tetris.lua