tetris 小游戏, 基于 SDL2 库开发;
sdl2 = "0.36.0"
rand = "0.8.5"

runningwater c4ceab6401 完成基本功能 1 年間 前
.idea 4464c9ddd8 Rendering UI 1 年間 前
assets 8202e0ff6e Finished Rendering UI 1 年間 前
src c4ceab6401 完成基本功能 1 年間 前
.gitignore 8202e0ff6e Finished Rendering UI 1 年間 前
Cargo.lock 6d6ab51f8a Tetris Types and implement 1 年間 前
Cargo.toml 8202e0ff6e Finished Rendering UI 1 年間 前
readme.md 820fdc56c8 创建 7 个 Tetrimino 1 年間 前

readme.md

The Tetris rules

  1. There is a grid with a height of 16 blocks and a width of 10 blocks.
  2. You have seven different tetrimino (a tetris piece) that are all composed of four blocks.
  3. A new tetrimino appears at the top of the game's grid every time the previous one cannot descend and more (because the block below is already occupied or bacause you're reched the game's floor).
  4. The game is over when a new tetrimino cannot appear anymore (because there is already a tetrimino at the top of the grid).
  5. Every time a line if full (all blocks are occupied by a tetrimino part), it disappear and all lines above descend by one line.