12 ms·
Setris – Tetris with Sand Physics
- mertens 3y ago* Got taken down ( https://itch.io/takedowns/2073998 https://itch.io/takedowns/2073998 ) and was subsequently republished as Sandtrix. * Now also available as a web game on CrazyGames: https://www.crazygames.com/game/sandtrix https://www.crazygames.com/game/sandtrix
- TheDudeMan 3y agoLooks cool. No web version? In this day and age?
- leduyquang753 3y agoIt's written in Java so...
- shepherdjerred 3y agoIt 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.
- hgsgm 3y agoIt's not the author's fault this was pushed to the frontpage of HN.
- wiseowise 3y agoNeither is OP owes anything to author.
- shepherdjerred 3y agoSure, yes. But, if you're trying to be a decent person you might want to encourage others to keep making cooling things rather than discourage them by saying "this free thing isn't good enough".
- parentheses 3y agoNicely done. I don't think I've seen a redo of tetris that dropped so much that was still good.
- cjsawyer 3y agoThere’s also Not Tetris https://stabyourself.net/nottetris2/ https://stabyourself.net/nottetris2/
- personjerry 3y agoAlso related, Hatetris which always gives you the worst piece: https://qntm.org/files/hatetris/hatetris.html https://qntm.org/files/hatetris/hatetris.html
- taneq 3y agoAnd, of course, Futilitris: https://tetris.wiki/Futilitris https://tetris.wiki/Futilitris
- chromoblob 3y agoWow, that's really cool game. That feeling of mathematical difficulty when you're playing is very cool.
- pcthrowaway 3y agoI just went down a rabbit hole with this excellent blog post on using data structures, search algorithms, and maybe some machine learning to try to beat the previous world record of 66 lines: https://hallofdreams.org/posts/hatetris/ https://hallofdreams.org/posts/hatetris/
- Unit520 3y agoDestructible Tetris blocks: https://unit520.net/deadtrees/ https://unit520.net/deadtrees/ Silly physics fun in the browser, but not a complete game (yet).
- keyle 3y agoThis 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.
- thomastjeffery 3y agoThey could just wait until they get a complaint and change it then. There's no reason to just avoid the name outright.
- sillysaurusx 3y agoA dmca counter claim takes at least 14 long days to respond with. In the meantime, your vitality will dry up. Trademark infringement is a bit different, since there’s no analogue to the dmca process. But it’s pretty reasonable to want to avoid the hassle by just changing a few words. (What is the expected litigation route for trademark claims anyway? Can they knock a project offline, or just send a strongly worded lawyer letter?)
- ale42 3y ago> (What is the expected litigation route for trademark claims anyway? Can they knock a project offline, or just send a strongly worded lawyer letter?) IANAL, but I would expect a cease-and-desist letter or the national equivalent depending on the country you're living in. Usually you have a short delay to remediate, or risk getting sued.
- Biganon 3y agoEven a word that sounds like Tetris, such as Setris, can be enough for a trademark issue
- fuzzythinker 3y agoI like ugh's suggestion - Sandtris
- kls0e 3y agoexcellent! thanks
- 29athrowaway 3y agoOne of the main elements of Tetris is planning ahead. With this mechanic it becomes harder.
- isoprophlex 3y agoMaybe with 3 colors things might have remained relatively sane, but this looks hella difficult indeed
- anilakar 3y agoPlayed for some fifteen minutes. It feels like there is way too much luck involved. On one run I was able to keep the field almost empty apart from the lower corners as I kept getting colors in nice streaks, and on others I just seemed to get a rainbow of layers. Due to the sand mechanics you can't just stash pieces to the side and without enough information on upcoming pieces it's just too risky to attempt bridging the edges. If you like games in which RNG punishes you in ten out of nine runs and then gives you a free pass, this might be for you.
- ugh123 3y agoAwesome! But why not Sandtris =P
- f5ve 3y agovery cool! some gameplay: https://youtu.be/Hp4nV4EjLgM?t=122 https://youtu.be/Hp4nV4EjLgM?t=122
- userbinator 3y agoIs it just me or does 60MB - compressed - seem a little on the large side for something of this complexity?
- SolarNet 3y agoDepends how it's backed, how static it is, and so on. The lisp runtime may fit in 20 MB, but not every language's runtime is so compressible. It may be smaller if one used something like C#/.NET where it's reasonable to assume, on windows, that everyone has specific common versions of the runtime laying around. And then there are things like libraries. How dependent on the state of the OS do you want to be? Do you bring your own copy of SDL, or do you rely on it being installed? Even choice of graphics library can make a big difference, did you use something like DirectX which the OS will have all ready for you (assuming it supports it of course), or do you use something like OpenGL/Vulkan and invariably have to bring your own copies of various things like shader compilers and texture compression libraries. In this case it's because it packages it's own copy of the JRE (which makes up more than 2/3rds of the contents). Which makes plain the greatest failure of Java, it was never a universal execution environment. Which is why every program ships their own copy of it and users no longer complain about "Update Java" notifications, or dealing with incompatible Java environments.
- grodriguez100 3y agoCustom Java runtimes can be generated using jlink [1] which take a fraction of the space needed for a “full” JRE. I have some applications packaged like this and the Windows installer exe, generated using NSIS, is under 15 MB. [1]: https://docs.oracle.com/en/java/javase/11/tools/jlink.html https://docs.oracle.com/en/java/javase/11/tools/jlink.html
- SolarNet 3y agoSure, but then you have to add back all the Java libraries they then used ontop of it. I assume the developer also used a tool like this to cut it down, the issue of bundling the custom Java runtime was never the size, it's that java was never supposed to need to do it this way (not that that is the end user developers fault of course).
- mkoryak 3y agoName reminds me of a dos game called xtetris. It was also a very different take on the classic gameplay of Tetris. The sound effects were pretty good, but I can't find a gameplay video. https://www.squakenet.com/game/x-tetris/ https://www.squakenet.com/game/x-tetris/
- janosdebugs 3y agoCool game, pretty hard too, I love it! 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: sudo apt install libfontconfig1 libxrender1 libxtst6 export LIBGL_ALWAYS_INDIRECT=0 ./Setris-1.2 (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 3y agoWSLg (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.
- janosdebugs 3y agoGood to know, but WSLg seems to be much faster that the graphics in Sandbox, even with GPU acceleration.
- jjordan 3y agoAnd this is why gaming on Linux never took off.
- olodus 3y ago/ is only taking off now that a large corporation is backing it and unifying how to do stuff more.
- janosdebugs 3y agoI don't know, I had a pretty good experience with Steam/Ubuntu. Most games worked out of the box.
- passwd 3y agoIt's an equivalent to not distributing the necessary DLLs in Windows, which is something that I've definitely seen happening before as well.
- amikazmi 3y agoSuper 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 https://youtu.be/Hp4nV4EjLgM?t=133
- zamadatix 3y agoThe 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.
- WatchDog 3y agoAny 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.
- DiscourseFan 3y agoI just have it running on an emulator on my machine, unfortunately.
- mslivo 3y agoIt's not officially supported as I can't test it myself. It should work in theory but as far as I know it nobody got it to run yet.
- t0ps0il 3y ago`java -XstartOnFirstThread -jar setris-desktop-1.0-SNAPSHOT-jar-with-dependencies.jar` I had to add the start on first thread flag to prevent errors and start a launch. I do get stuck after `Starting UI Subsystem` gets logged but I havent put any real effort into trying to debug that yet.
- m_eiman 3y agoI get this when run with homebrew's openjdk (which is JDK 20, I think): mikaeleiman@iMac ~/D/Setris-1.2_LINUX> java -XstartOnFirstThread -jar setris-desktop-1.0-SNAPSHOT-jar-with-dependencies.jar [LWJGL] [ThreadLocalUtil] Unsupported JNI version detected, this may result in a crash. Please inform LWJGL developers. [30.05.23][11:52:12] Loading Assets [30.05.23][11:52:12] Done. [30.05.23][11:52:12] Starting UI Subsystem [30.05.23][11:52:12] Done. [30.05.23][11:52:12] 0 FPS | 260MB RAM | 8 Threads | Render: 13ms mikaeleiman@iMac ~/D/Setris-1.2_LINUX> A window is opened, looks like the title screen with the text "press A". But nothing happens when I press keys, A or others. Maybe related to the LWJGL warning?
- m_eiman 3y ago
- chungy 3y agoThis needs a scale option. It's absolutely microscopic on my 4k screen.
- noobcoder 3y agoThe 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!
- Grustaf 3y agoReally cool, I wish it was available for Mac! One thing, I think it would look nicer if it waited until the sand settled before remove a "row".
- VPenkov 3y agoThis 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/ http://phystris.pi-dev.com/
- Liquidor 3y agoThat's really cool :-) 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 https://github.com/gwtproject/gwt
- alex_duf 3y agoI had no idea GWT still existed!
- snerbles 3y agoThe 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: https://libgdx.com/wiki/html5-backend-and-gwt-specifics https://libgdx.com/wiki/html5-backend-and-gwt-specifics
- kaba0 3y agoThere are much better options than GWT, google’s closure compiler, teawm, cheerpj. Though libgdx might be problematic.
- mslivo 3y agoIt's coming
- layer8 3y agoThe 4x1 blocks should transform into sandworms. Call it Dunetris.
- mgaunard 3y agoThat's not Tetris.
- mellonaut 3y agoIt's not Tetris but it's not Not Tetris¹ ¹) https://stabyourself.net/nottetris2 https://stabyourself.net/nottetris2
- vesinisa 3y agoWhy 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.
- Cthulhu_ 3y agoYour OS has its own sandbox, so it should be absolutely fine unless you run everything as administrator.
- chrismorgan 3y agoIt’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.
- 5e92cb50239222b 3y agoI 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).
- chrismorgan 3y agoThat 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.)
- 5e92cb50239222b 3y agoI have no desire to engage in one of those 50 levels deep nested arguments, so this is my last message, but you literally said: > or makes it at all easy to achieve firejail makes this trivial. You won't be able to steal anything of interest. Making an easy to use sandbox for desktop applications is the main goal of the project. You could have tried it out before arguing against it in what feels like bad faith. $ firejail bash -- snip -- $ ls ~/.mozilla ls: cannot open directory '/home/foo/.mozilla': Permission denied $ ls ~/.ssh ls: cannot open directory '/home/foo/.ssh': Permission denied $ ls -lh passwords.kdbx -r-------- 1 nobody nobody 0 May 29 14:53 passwords.kdbx And so on. (The last one is my real password database and it definitely isn't 0 bytes in size.)
- Kiro 3y agoInteresting that both the top comment and the bottom comment are the same thing (complaining about browser support), as of this writing.
- hutzlibu 3y agoYou 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 ..
- classified 3y agoI'm getting a browser error that says, "signature algorithm disabled".
- salaivv 3y agoThat looks so satisfying. Which game engine did you build it with?
- siddiqi123 3y agoOh, I can see myself playing this for hours because I'm a Tetris fan.
- bdg 3y agoVery cool game mechanics. You could probably make some good money if you get this into an app store.
- revskill 3y ago[flagged]
- mmvora 3y agoThis 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
- waqf 3y agoI 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.)
- o0banky0o 3y agoI'll jump on this bandwagon, hows Tetrasilicate sound?
- parpfish 3y agolooks cool, but it took a long time to realize that "rows" don't matter and "color" is what matters.
- EnPassant 3y agoA Story About Setris: https://pastebin.com/nerj8sTp https://pastebin.com/nerj8sTp
- ben7799 3y agoThis 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.
- tracker1 3y agoWould 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.
- infinitedata 3y agoI misread and thought it said Sextris. Which makes me wonder how a Tetris flavor like that would look like!
- justsomehnguy 3y agohttps://www.old-games.ru/game/screenshots/11893.html https://www.old-games.ru/game/screenshots/11893.html
- sashk 3y agoThis has been done long-long time ago - https://zxart.ee/eng/software/game/puzzle/sex-tetris-2/sex-tetris/ https://zxart.ee/eng/software/game/puzzle/sex-tetris-2/sex-t...
- 1m2r3a 3y agoYou brought some forgotten memories for me. X-tetris was the real deal https://archive.org/details/xtetris https://archive.org/details/xtetris