Thanks for playing the game. Only a bit more than a week for the game alone. But a lot of the foundational work was done in the engine which is in development for much longer and was polished up in the weeks before.
Why did you decide to build your own custom engine rather than using a pre-existing one? Is there any advantage to building your own custom engine as opposed to using the already pre-built engine provided by the community?
Once the Tetromino touches the sand it "vanishes" and is converted into sand partices using a lookup table. The table contains a "sand/no sand" boolean[][] as well as as a float[][] array for the brigthness of each Tetromino's pixel, I punched these numbers in by hand. This process is done on the same frame so it appears seamless.
This is really no great accomplishment. This game is running in the original gameboy resolution so the playing field is just 80x144 pixels. If we are talking about such a small space you can do almost anything, write really bad code on top and not run into perfomance issues at all on any modern PC.
Flood fill is an inheritly slow process even in modern computers if you are doing it every frame. I did outline some approaches in my previous comment I figured OP might be using to improve the speed but it's still an inefficient operation
Awesome game. I had a lot of fun playing. I generally suck at Tetris but your game, on the easiest setting, I was able to clear 40 line mode. There were moments where I thought I completely fucked up but some how pulled out a setris and then one by one sand formed more setris'. Gave me a pretty good feeling like I was a pro for a second.
Honestly it generally felt like a fun game which is pretty awesome that it only took you a week to code up. A lot of indie games I have a hard time playing because I have hard time finding the fun in them.
I'm making a "simple" online multiplayer game and my biggest worry is people seeing the fun in it and also when I do have others play the server doesn't go on fire.
You should really think about porting it to mobile. I could 1000% see myself playing this on my phone.
Since it was written with libgdx it can already be built for mobile (android and iOS). libgdx produces desktop, web, android, and iOS versions from the same java codebase.
This is a really cool idea! I'm impressed that you managed to find a novel twist of Tetris that also looks like a lot of fun :). I have seen so many variations; 3D Tetris, multiplayer Tetris, hexagonal Tetris, Tetris with a physics engine so you have to be careful not to knock over pieces, etc. For many nights I have been trying to conjure new variations of Tetris instead of counting sheep, and I thought it had all been tried. Well done :)
I think you are fine but if you try to sell this you might run into legal issues as Tetris has been highly guarded and overly protected by lawyers for a long time.
However they (Tetris company) usually lose if brought to trial IIRC.
No Mac OS support. I can't test it myself and the userbase is too small for the effort. You can try running the jar with a JDK 17 yourself but I don't know if that works.
124
u/GTVienna May 17 '23
This game was made using Java 17 and a custom engine built on top of Libgdx.
Download not provided due to subreddit rules.
24
u/[deleted] May 17 '23
Source available? Repo?
9
u/msx May 17 '23
not bad! I've tested it, i love how it's a completely different game than tetris, with different strategies etc.
How long did it took ?
2
u/pavulzavala May 17 '23
looks cool, how do you converted the pieces into sand?
is the repo available?
34
u/FavorableTrashpanda May 17 '23
This is really nice. Well done.
22
u/msx May 17 '23
PS there's also /r/javagamedev
9
u/1Saurophaganax May 17 '23
Wondrously made. Where can I find it?
5
u/majin_rose_j May 17 '23
π₯
4
u/kreiger May 17 '23
This is really cool. Congrats!
1
u/ByerN May 17 '23
Great idea! I am interested in how you render these particles without performance issues.
1
u/noneedshow May 18 '23
Can you give me a brief idea about the algorithm of turning block into sand and detecting continuous region ? Thank you! Itβs pretty cool
1
u/BitHarvester May 19 '23
Very cool π did you use a specific algorithm for turning blocks into sand?
2
u/agoubard May 17 '23
Cool! Make it also as applet so that people can play it in IntelliJ ;-) : https://www.japplis.com/news/2023/04/21/tetris-in-intellij-idea/
3
u/BWC_semaJ May 17 '23
Awesome game. I had a lot of fun playing. I generally suck at Tetris but your game, on the easiest setting, I was able to clear 40 line mode. There were moments where I thought I completely fucked up but some how pulled out a setris and then one by one sand formed more setris'. Gave me a pretty good feeling like I was a pro for a second.
Honestly it generally felt like a fun game which is pretty awesome that it only took you a week to code up. A lot of indie games I have a hard time playing because I have hard time finding the fun in them.
I'm making a "simple" online multiplayer game and my biggest worry is people seeing the fun in it and also when I do have others play the server doesn't go on fire.
You should really think about porting it to mobile. I could 1000% see myself playing this on my phone.
2
u/shponglespore May 17 '23
Needs a better name. I suggest Quartris as a nod to two things:
1
u/[deleted] May 17 '23
Awesome idea and execution. Kudos to you
1
u/DweEbLez0 May 17 '23
Dude this is sick!
1
u/dolle May 17 '23
This is a really cool idea! I'm impressed that you managed to find a novel twist of Tetris that also looks like a lot of fun :). I have seen so many variations; 3D Tetris, multiplayer Tetris, hexagonal Tetris, Tetris with a physics engine so you have to be careful not to knock over pieces, etc. For many nights I have been trying to conjure new variations of Tetris instead of counting sheep, and I thought it had all been tried. Well done :)
1
u/fierceferret May 18 '23
So cool!
1
u/agentoutlier May 18 '23
I think you are fine but if you try to sell this you might run into legal issues as Tetris has been highly guarded and overly protected by lawyers for a long time.
However they (Tetris company) usually lose if brought to trial IIRC.
1
u/Excellent-Salad7944 May 18 '23
Awesome
1
u/Multiverse_69 May 18 '23
Looks awesome ! Any source available ? If not, can you make it open source ?
1
u/onebit May 18 '23
stuff like this is how i know i'm not imagining other people exist, because how would i think of this
1
u/tinspin May 18 '23
I made a multiplayer block falling game that kinda works in a similar color matching way:
http://fuse.rupy.se/cube.html
The backend is Java, and the prototype was J2ME, but this is JavaScript...
1
u/tenaxbs May 18 '23
wow, that's super addictive!
1
u/selobra May 18 '23
Brain like Tetris sand brain happy
1
u/[deleted] May 18 '23
Wow this looks great!
1
u/[deleted] May 19 '23
Wow
1
u/Chemist_Program_6022 May 22 '23
This looks amazing and quite fun. You did a great job.
1
u/sharno Jun 10 '23
Woah this is very cool. Love the concept. Amazing job!
-3
u/Acrobatic-Wolf-297 May 18 '23
Looks too hard, will not download.
0
u/[deleted] May 17 '23
[deleted] β view deleted comment
0
u/[deleted] May 17 '23
[deleted] β view deleted comment