andrewrk/tetris
View on GitHub ↗ ★ 495 Zig
A simple tetris clone written in zig programming language.
6 mentions on Hacker News by 5 people: 1 story, 5 comments · first 2016-02-01 · latest 2020-09-19
20082026
-
…but no game engine I know of yet [1,2]. [0] https://www.raylib.com/ [1] https://ziglang.org/ [2] https://github.com/andrewrk/tetris/blob/master/build.zig
comment by eggy · 2020-09-19 · in rg3d: Rust 3D game engine with an FPS demo game and scene editor -
This is a tetris clone made in zig https://github.com/andrewrk/tetris I bit hard to follow without the syntax highlighting, but seems a good example of what a larger application would look like.
comment by partycoder · 2018-10-14 · in Why Zig When There Is Already CPP, D, and Rust? (2017) -
…C libraries? They give an example of a tetris clone in Zig. This is how they include GLFW with Zig: https://github.com/andrewrk/tetris/blob/master/src/c.zig and all other locations in the project just import this c.zig file. In contrast in…
comment by quacker · 2016-08-29 · in Zig: a system language which prioritizes optimality, safety, and readability -
Direct link to the Tetris game’s source code: https://github.com/andrewrk/tetris/tree/master/src
comment by roryokane · 2016-02-09 · in Introduction to the Zig Programming Language -
…a few minutes ago and I'm really excited to demo it! [1]: https://github.com/andrewrk/zig [2]: https://github.com/andrewrk/tetris/blob/aaf09e30a3a7b9ed8f34... OK I think I understand what the author means by "C/C++ compatible". Check out…
comment by AndyKelley · 2016-02-01 · in ZL: A C/C++ Compatible Language with Hygienic Macros