Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andrewrk/tetris
A simple tetris clone written in zig programming language.
https://github.com/andrewrk/tetris
game zig
Last synced: about 6 hours 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 (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-09-26T18:16:59.000Z (4 months ago)
- Last Synced: 2025-01-18T17:08:46.354Z (7 days ago)
- Topics: game, zig
- Language: Zig
- Homepage:
- Size: 280 KB
- Stars: 406
- Watchers: 10
- Forks: 53
- Open Issues: 1
-
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).![](http://i.imgur.com/umuNndz.png)
## 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
```