So much cutting edge technology for something that could have been written in BASIC running on a Z80 :)<p>That being said, Zig is an interesting, well-deigned language. Despite being young, it already has tons of features. And compatibility with the C ABI is a big plus.
Didn't know the Zig Programming language before, but its website <a href="https://ziglang.org" rel="nofollow">https://ziglang.org</a> is really an outstanding example how a programming language should be presented: Many examples, comparisons with other language, and even more examples. Code code code.
It looks like Zig has some decent documentation (something I treasure), but it looks like file I/O is missing. I'm sure it assumes the user is at least intermediate with C (I can only get by with lots of googling). I'll give Zig a try if someone can put up an example of reading a .CSV file (something I do a lot and wish I had faster tools to do) and if it is less of a hassle than C/C++.<p><a href="https://ziglang.org/documentation/master/" rel="nofollow">https://ziglang.org/documentation/master/</a><p>The install seems to also be a lot more straightforward than many of the other low level languages that I have tried.
The web page bobs around when pressing the buttons, when the game area is smaller than the window. Is there any way to make that stop aside from making the area smaller, so that it fits the window?
What is surprising to me is that adding the shadow of an element (ie. where exactly it will land) made the game more difficult to me because I constantly felt like running out of time.
Hmm...
[Error] TypeError: null is not an object (evaluating 'gl.viewport') (env.js:17)
[Error] Unhandled Promise Rejection: TypeError: import env:consoleLog must be an object
promiseReactionJob<p>Looks like not working in Safari 12.1 in macOS High Sierra :-(
would you consider implementing a tetromino bag like the one described here[1], I think is common among the most popular tetris implementations, it affects a lot the game strategy, I think would make it more enjoyable.<p>[1]<a href="https://tetris.fandom.com/wiki/Random_Generator" rel="nofollow">https://tetris.fandom.com/wiki/Random_Generator</a>
<p><pre><code> Uncaught TypeError: Cannot read property 'viewport' of null
at env.js:17</code></pre>
(anonymous) @ env.js:17<p><pre><code> Uncaught (in promise) TypeError: WebAssembly.instantiate(): Import #0 module="env" error: module is not an object or function
Chromium Version 74.0.3729.108 (Official Build) Arch Linux (64-bit)</code></pre>
Great work, I wanted to know a way to play with WebAssembly and Zig. This is perfect.<p>Do you know how easy/difficult would it be to make a desktop version of it ?<p>One of my long term goal is to make it cross platform.
Bug report: The game mostly work, but sometimes it builds bogus rows on the bottom. Makes it more difficult to get high points. Debian Linux with Chrome...