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 2 months 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 8 years ago)
- Default Branch: master
- Last Pushed: 2024-05-09T21:49:24.000Z (4 months ago)
- Last Synced: 2024-05-09T22:47:36.511Z (4 months ago)
- Topics: game, zig
- Language: Zig
- Homepage:
- Size: 295 KB
- Stars: 356
- Watchers: 10
- Forks: 54
- 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
```