https://github.com/andrewrk/tetris
A simple tetris clone written in zig programming language.
https://github.com/andrewrk/tetris
game zig
Last synced: about 1 month ago
JSON representation
A simple tetris clone written in zig programming language.
- Host: GitHub
- URL: https://github.com/andrewrk/tetris
- Owner: andrewrk
- License: mit
- Created: 2016-01-19T08:04:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-09-26T18:16:59.000Z (7 months ago)
- Last Synced: 2025-04-01T01:37:54.366Z (about 1 month ago)
- Topics: game, zig
- Language: Zig
- Homepage:
- Size: 280 KB
- Stars: 420
- Watchers: 8
- Forks: 55
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zig - andrewrk/tetris
- awesome-zig - tetris🗒️A simple tetris clone written in zig programming language
README
# Tetris
A simple tetris clone written in
[zig programming language](https://github.com/andrewrk/zig).
## Controls
* Left/Right/Down Arrow - Move piece left/right/down.
* Up Arrow - Rotate piece clockwise.
* Shift - Rotate piece counter clockwise.
* Space - Drop piece immediately.
* Left Ctrl - Hold piece.
* R - Start new game.
* P - Pause and unpause game.
* Escape - Quit.## Dependencies
* [Zig compiler](https://github.com/andrewrk/zig) - use the debug build.
* [libepoxy](https://github.com/anholt/libepoxy)
* [GLFW](http://www.glfw.org/)## Building and Running
```
zig build play
```