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.
(I use WSL as a more powerful sandbox to run things. Windows Sandbox is, unfortunately, not capable enough to run graphics-heavy stuff as it seems to use RDP.)
WSLg (Microsoft's implementation of graphical programs for WSL) also uses RDP internally. So I wouldn't think that is the issue with the Sandbox, unless you set up some other way of X forwarding. WSLg is still hardware accelerated and Sandbox might not be, however.
This looks like a lot of fun. I'm curious, where did inspiration come from? I love playing creative versions of classic games like that and if something inspired you to build this, I'd like to try it too :)
This reminded me of a physics-based Tetris that a friend of mine built many years ago: http://phystris.pi-dev.com/
The yellow section in the video dissolved a bit earlier than I anticipated, around 0:23, but I noticed that there are a few missing pixels on the left edge. It could be due to lower resolution or the need for clearer indications. Perhaps improving either the resolution or providing clearer visual cues, such as eliminating shaded edges on the border, could enhance the experience. But sitll, I find this variation of Tetris with sand elements to be quite fascinating and a unique twist on the traditional game. Great job bro!
The author mentions that they used LibGDX. It's been a decade since I've done anything with it, but I do recall LibGDX can be transpiled with GWT with a bit of work:
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.
Just looking at the gameplay video, they have a bit of work to do to avoid a DMCA request from maybe both The Tetris Company (I think that’s the name) and Nintendo.
The game lifts a lot of design elements from the Game Boy version of Tetris. Clearly to evoke the nostalgia. Down to specific graphical elements like the style of the blocks and fonts used.
The Tetris Company would have a point here. The game wants you to think of a very specific version of Tetris. I forget where Nintendo exactly was involved in the game, but it’s possible they hold some rights to the Game Boy version as well.
I’d strip out all the Game Boy elements. I doubt you’d get by on a parody claim.
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.
Any chance of macos support?
I tried running the jar, but didn't get very far, the jar seems to include binaries macos binaries for both x86 and arm, but it didn't want to start.
You always have to keep in mind, that the majority of commentors, did not had a project yet, that made it to the front page. But at least that smart criticism can make it top comment for a while ..
I watched the demo video but I can't get over using E in the bass in bar 5, where D would normally be expected. (Yes, it should be possible to use chord V11 here instead of IV if you really want, but you would need to fill out the harmony a lot more to make that work, not just the bass line.)
This made me think of trash panic on PS3 back in the day too.
It was like tetris but with random pieces of trash you dropped a dumpster. Heavy trash could compact lighter trash, you could find a piece of trash that would explode or burn other trash, etc..
Definitely not as elegant and perfect as Tetris but very amusing.
This is so much fun! Brings me back to the old days where I used to spend hours on Facebook's Tetris Battle, except the sand makes it feel like a cheat code lol
Would be cool, if so desired to see a source repo of this... really cool game and would be nice to see a port that can run in-browser or on SteamDeck, etc.
[+] [-] amikazmi|2 years ago|reply
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
[+] [-] zamadatix|2 years ago|reply
[+] [-] janosdebugs|2 years ago|reply
If you are trying to get it running on Linux (e.g. in WSL), you need libfontconfig, libxrender and libxtst installed. This worked for me on Ubuntu:
(I use WSL as a more powerful sandbox to run things. Windows Sandbox is, unfortunately, not capable enough to run graphics-heavy stuff as it seems to use RDP.)[+] [-] Cu3PO42|2 years ago|reply
[+] [-] jjordan|2 years ago|reply
[+] [-] VPenkov|2 years ago|reply
This reminded me of a physics-based Tetris that a friend of mine built many years ago: http://phystris.pi-dev.com/
[+] [-] noobcoder|2 years ago|reply
[+] [-] Liquidor|2 years ago|reply
I like how it looks and how hard it seems.
I see that you're into Java, so I was thinking maybe you could look into transpiring your game into JavaScript so it can be embedded on a website.
Checkout GWT for that: https://github.com/gwtproject/gwt
[+] [-] snerbles|2 years ago|reply
https://libgdx.com/wiki/html5-backend-and-gwt-specifics
[+] [-] alex_duf|2 years ago|reply
[+] [-] keyle|2 years ago|reply
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.
[+] [-] bena|2 years ago|reply
The game lifts a lot of design elements from the Game Boy version of Tetris. Clearly to evoke the nostalgia. Down to specific graphical elements like the style of the blocks and fonts used.
The Tetris Company would have a point here. The game wants you to think of a very specific version of Tetris. I forget where Nintendo exactly was involved in the game, but it’s possible they hold some rights to the Game Boy version as well.
I’d strip out all the Game Boy elements. I doubt you’d get by on a parody claim.
[+] [-] thegabriele|2 years ago|reply
[+] [-] tim_hutton|2 years ago|reply
[+] [-] Biganon|2 years ago|reply
[+] [-] userbinator|2 years ago|reply
[+] [-] dcuthbertson|2 years ago|reply
[+] [-] nurettin|2 years ago|reply
[+] [-] thomastjeffery|2 years ago|reply
[+] [-] zakki|2 years ago|reply
[+] [-] unknown|2 years ago|reply
[deleted]
[+] [-] remram|2 years ago|reply
[+] [-] otterpro|2 years ago|reply
[+] [-] frankfrankfrank|2 years ago|reply
[+] [-] 39399339939393|2 years ago|reply
[deleted]
[+] [-] yoyopa|2 years ago|reply
[+] [-] WatchDog|2 years ago|reply
[+] [-] ankitg12|2 years ago|reply
Setris-1.2_LINUX % java -version openjdk version "17.0.7" 2023-04-18 OpenJDK Runtime Environment Temurin-17.0.7+7 (build 17.0.7+7) OpenJDK 64-Bit Server VM Temurin-17.0.7+7 (build 17.0.7+7, mixed mode, sharing)
Setris-1.2_LINUX % java -XstartOnFirstThread -jar setris-desktop-1.0-SNAPSHOT-jar-with-dependencies.jar [30.05.23][12:16:41] Loading Assets [30.05.23][12:16:41] Done. [30.05.23][12:16:41] Starting UI Subsystem ^C% Setris-1.2_LINUX %
[+] [-] mslivo|2 years ago|reply
[+] [-] DiscourseFan|2 years ago|reply
[+] [-] mertens|2 years ago|reply
* Now also available as a web game on CrazyGames: https://www.crazygames.com/game/sandtrix
[+] [-] parpfish|2 years ago|reply
[+] [-] infinitedata|2 years ago|reply
[+] [-] sashk|2 years ago|reply
[+] [-] 1m2r3a|2 years ago|reply
[+] [-] justsomehnguy|2 years ago|reply
[+] [-] ugh123|2 years ago|reply
[+] [-] parentheses|2 years ago|reply
[+] [-] cjsawyer|2 years ago|reply
[+] [-] Unit520|2 years ago|reply
Silly physics fun in the browser, but not a complete game (yet).
[+] [-] 29athrowaway|2 years ago|reply
[+] [-] isoprophlex|2 years ago|reply
[+] [-] layer8|2 years ago|reply
[+] [-] Kiro|2 years ago|reply
[+] [-] hutzlibu|2 years ago|reply
[+] [-] Grustaf|2 years ago|reply
One thing, I think it would look nicer if it waited until the sand settled before remove a "row".
[+] [-] waqf|2 years ago|reply
[+] [-] ben7799|2 years ago|reply
It was like tetris but with random pieces of trash you dropped a dumpster. Heavy trash could compact lighter trash, you could find a piece of trash that would explode or burn other trash, etc..
Definitely not as elegant and perfect as Tetris but very amusing.
[+] [-] mmvora|2 years ago|reply
[+] [-] tracker1|2 years ago|reply