Live data from Hacker News

Setris – Tetris with Sand Physics

mslivo.itch.io

91–100 of 191 posts

Re: Setris – Tetris with Sand Physics

#91

Earlier quoted context omitted.

There’s also Not Tetris https://stabyourself.net/nottetris2/

Also related, Hatetris which always gives you the worst piece: https://qntm.org/files/hatetris/hatetris.html

Wow, that's really cool game. That feeling of mathematical difficulty when you're playing is very cool.

Re: Setris – Tetris with Sand Physics

#92

Why doesn't this run in the browser? :( It's 2023 - and no offence intended - but I would rather not download a binary blob from a random Internet page to execute it outside the browser's sandbox. Especially since it looks this game could easily be programmed with WASM and/or vanilla JavaScript.

"Especially since it looks this game could easily be programmed with WASM and/or vanilla JavaScript." Looking forward for you doing and sharing it. Because then I could complain, why you did not use WebGPU, as it is so much more powerful ...

uh, vr port anyone? it is 2023 ffs

Re: Setris – Tetris with Sand Physics

#93

Why doesn't this run in the browser? :( It's 2023 - and no offence intended - but I would rather not download a binary blob from a random Internet page to execute it outside the browser's sandbox. Especially since it looks this game could easily be programmed with WASM and/or vanilla JavaScript.

Also... 61MB download!

x1270 of original NES Tetris! (32kb of code & 16kb of graphics)

Re: Setris – Tetris with Sand Physics

#94

Why doesn't this run in the browser? :( It's 2023 - and no offence intended - but I would rather not download a binary blob from a random Internet page to execute it outside the browser's sandbox. Especially since it looks this game could easily be programmed with WASM and/or vanilla JavaScript.

This would sound extremely conspiratorial except this exact scenario has happened on mobile: It's a real slippery slope from everything always runs into the Google browser into everything is an app in the Google browser store.

Envision a FAANG stomping on a human face forever...

Re: Setris – Tetris with Sand Physics

#95

Why doesn't this run in the browser? :( It's 2023 - and no offence intended - but I would rather not download a binary blob from a random Internet page to execute it outside the browser's sandbox. Especially since it looks this game could easily be programmed with WASM and/or vanilla JavaScript.

[flagged]

Re: Setris – Tetris with Sand Physics

#96
post #75

Earlier quoted context omitted.

Java 10x faster than JavaScript, in 2023? No.

I didn’t say faster, I said more efficient. They are two wildly different things.

This seems to be such a pedantic discussion all around. Well, what did you mean by more efficient if not more performant, the usual metric?

More efficient to develope? Possible, depending on the devs skill set, but hardly relevant for the end user who want to play the game on possible low performant hardware?

Oh and I think wasm can beat java in several cases.

Re: Setris – Tetris with Sand Physics

#97

Why doesn't this run in the browser? :( It's 2023 - and no offence intended - but I would rather not download a binary blob from a random Internet page to execute it outside the browser's sandbox. Especially since it looks this game could easily be programmed with WASM and/or vanilla JavaScript.

This would sound extremely conspiratorial except this exact scenario has happened on mobile: It's a real slippery slope from everything always runs into the Google browser into everything is an app in the Google browser store. Envision a FAANG stomping on a human face forever...

I think you're missing the point. Mobile was kind of the opposite, where instead of having source-available applications on an open platform, the mobile OS makers made it near-impossible to install anything but closed-source apps from their closed-source walled garden app stores.

Being able to run in the browser doesn't mean you have to run it in Chrome. You can use Chromium (open source), or Firefox, or Brave. You can bundle it into an electron app. You could write your own browser that runs javascript with just the APIs needed to make the game work, and deliver it in that (the standards are all open and the spec is public)

This is so much better than what we have with mobile, and much more secure than running random executables on your daily-driver OS directly

Re: Setris – Tetris with Sand Physics

#98

Why doesn't this run in the browser? :( It's 2023 - and no offence intended - but I would rather not download a binary blob from a random Internet page to execute it outside the browser's sandbox. Especially since it looks this game could easily be programmed with WASM and/or vanilla JavaScript.

I'm going to assume this isn't a rhetorical question. This is a program written in java using libGDX, and the compiled target depends on JRE.

If you read the documentation on it, you will see that libGDX can build with web as a target, but the developer has chosen not to do this as of yet. Perhaps they might, if asked nicely. Or, since you claim for it to be easily programmed in WASM and/or vanilla JS, you could go ahead and do that.

I'm sure you didn't mean any offense, and I also don't mean any offense when saying that your apparent bewilderment (if rhetorical) comes across as entitled, and you should perhaps consider your approach here.

Re: Setris – Tetris with Sand Physics

#99
post #75

Earlier quoted context omitted.

Java 10x faster than JavaScript, in 2023? No.

I didn’t say faster, I said more efficient. They are two wildly different things.

Right, but efficient can mean a lot of things.

Though Java was used, this game is inaccessible to Mac, iPhone, and Android users. Porting to all these platforms is inefficient compared to just using the web.

It also requires a 60MB download, which is not very space efficient for a relatively simple 2D game (NES Tetris fit on a 24KB ROM). People have implemented Tetris in as little as 446 bytes [1]. Full color JS versions have been done at 16KB or less [2][3]. A JS version from 2004 came in at 1.5kb [4].

Haven't done memory efficiency analysis, but willing to bet the average JS Tetris implementation has dramatically better memory efficiency as well.

[1] https://hackaday.com/2016/10/06/tetris-in-446-bytes/ [2] https://github.com/cztomczak/jstetris [3] https://codeincomplete.com/articles/javascript-tetris/ [4] https://joriszwart.nl/games/javascript-tetris-1.5kb

Re: Setris – Tetris with Sand Physics

#100

Why doesn't this run in the browser? :( It's 2023 - and no offence intended - but I would rather not download a binary blob from a random Internet page to execute it outside the browser's sandbox. Especially since it looks this game could easily be programmed with WASM and/or vanilla JavaScript.

Your OS has its own sandbox, so it should be absolutely fine unless you run everything as administrator.

It’s shipping for Windows and Linux. Neither of these uses that kind of sandbox by default (or makes it at all easy to achieve). It could trash the user’s home directory, for example.
Post reply on HN