Live data from Hacker News

Setris – Tetris with Sand Physics

mslivo.itch.io

141–150 of 191 posts

Re: Setris – Tetris with Sand Physics

#141

Earlier quoted context omitted.

"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

ChatGPT make me a Tetris game but with Sand Physics for the browser

Re: Setris – Tetris with Sand Physics

#142

Earlier quoted context omitted.

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.

I beg to differ. $ firejail ./bin Even the very limited default profile hides things like ~/.ssh and makes the rest read-only (with the exception of ~/.cache and such).

That doesn’t invalidate what I said. It requires going well out of your way (as do other sandboxing arrangements—I never said they didn’t exist), and it’s not a very good sandbox without a fair bit of work. (So maybe you’re blocked from trashing the home directory, but stealing all your passwords and login cookies was always more lucrative than vandalism, so making the rest read-only is small comfort.)

Re: Setris – Tetris with Sand Physics

#143

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've been working on making a base or skeleton game engine for when I participate in Itch.io game jams that compiles from C++ to web assembly using Emscripten. It's exactly as you say no one wants to download and run an unknown binary blob; this severely limits how many people will try your game.

I'm alternately impressed that I can port C++ in this way at all, and sad at the state of the tooling still after so long. When something goes wrong with the web assembly version of the project, I can't debug it from first principles. This could be because, as an embedded and C++ programmer, I'm unfamiliar with Javascript debugging tools, but it's still unfortunate I can't single step through at the C++ source code level when debugging the web assembly build. I just want gdb for web assembly.

I've also run into silly/stupid bugs like keyboard input not working only in fullscreen, except if you leave it on overnight in which case 1 out of N tries the keyboard input comes back. I spent days trying to debug this, only to have someone on a forum answer it in about 2 seconds that it's because a Firefox change now causes keyboard input to be captured by the awesome bar during fullscreen (which of course you can't see). I could have tried this for a million years to figure out what was wrong and not had that insight. It doesn't bode well for my game engine project if things are this fragile; no other C++ compilation target is this janky.

Re: Setris – Tetris with Sand Physics

#144
post #4

This is nutty, I love it. One word of caution, I wouldn't mention the word Tetris anywhere, just use "falling block classic game" or whatever else, as it's one of the most trigger happy IP I know of after Nintendo. That said it's so far detached from the original you might be fine.

Bricks of Dune is a silly name I just thought up. On second thought, it reminds me of sand art in glass jars, just more dynamic.

Does a sand worm come out and clear a large section of the screen if you get a large enough combo?

Re: Setris – Tetris with Sand Physics

#145

Super cool! One thing that looks a bit off is that part of the physics engine runs in reverse - When a piece touch the high part of a pile, the sand is going UP from the bottom of the valley to the top, instead of from the top DOWN to the bottom When the process finishes the end result is the same, it's just a bit strange :) Example in https://youtu.be/Hp4nV4EjLgM?t=133

The sand is going down. Each tick one bit of sand falls from the top left to the bottom of that valley. Over many ticks the sand from the top accumulates up the side of the valley, from over the "cliff". The strange bit is the pieces teleport in one tick one at a time. No matter how you do it you'll end up with some sort of tradeoff like that when using pixel grids instead of particles.

Re: Setris – Tetris with Sand Physics

#146
post #24

Earlier quoted context omitted.

Or as the Chinese seem to like to call it, "Russia block".

Yeah block stacking, physics based line assembling, all sorts of names. Everyone is very careful not to say the word Tetris. Same with the Zelda word...

There used to be a Tetris clone for Mac called Quinn. The web site for the game said: "Quinn is an implementation of a popular falling-blocks game which, according to the Tetris Company, must not be named here."

Re: Setris – Tetris with Sand Physics

#147
post #4

This is nutty, I love it. One word of caution, I wouldn't mention the word Tetris anywhere, just use "falling block classic game" or whatever else, as it's one of the most trigger happy IP I know of after Nintendo. That said it's so far detached from the original you might be fine.

Tetris has become so universal that it feels like a generic term, similar to how we usually say Kleenex instead of tissue and chapstick instead of lip balm. "Setris" sounds fine as name of the game, although I also like "Sandtris", which sounds less similar to Tetris, and probably less likely for IP issue.

Re: Setris – Tetris with Sand Physics

#148

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.

Because the developer didn't want to. Instead they coded it in Java and ran with it. Personally, I love it. It's probably 10x more efficient than a possible JS implementation, tho.

> It's probably 10x more efficient than a possible JS implementation, tho.

And you make that claim based on what?

Re: Setris – Tetris with Sand Physics

#150

Looks cool. No web version? In this day and age?

It would be worthwhile to phrase this more constructively. They built something cool and they want to share it. The author is gaining nothing by posting this, and owes us nothing.

Neither is OP owes anything to author.
Post reply on HN