JTetris

Hi all,

Just thought I’d share a Tetris clone I recently (more-or-less) finished. You can take a look at it here: http://davydevuysdere.wordpress.com/2011/05/19/jtetris-2/

Thanks for checking it out / leaving feedback :wink:

Screenshots:

Congrats on finishing a game! :slight_smile:

Hehe, thanks ;D

Good to hear theres highscores! I like tetris a lot! 8)

I got on a tenth-place with my 194?0 points… :smiley:

Okay feedback!

  1. The controls didn’t feel accurate, because of the delay. Maybe you can increase the framerate to more to make the movement faster.
  2. When turning a block while it is close to the borders of the game, I feel like it should rotate and just move horozontally so it can fit in there, instead of being unable to move.
  3. Maybe a button to make it fall all the way instantly, and maybe markers to show where it’ll land? It makes it a little easier :stuck_out_tongue:
  4. Make the blocks fall from higher above. It feels likeit’s aready fell 1/3 when it’s spawned :slight_smile:

Highscores seem to give some more replay value to standard Tetris :wink:

Thanks for the feedback:

  1. I don’t think it has anything to do with the framerate, more likely with KeyAdapter’s automatic delay if you hold a key… do you have the same problem when you tap the keys instead of holding them? Maybe I should just switch to JInput…
  2. I guess I could try that :stuck_out_tongue:
  3. Spacebar makes them drop instantly, I guess I could add markers as an option / bonus / easy mode.
  4. The field actually adheres to the official size as specified by the Tetris Company (lol :p), it just seems like the pieces are lower because on a real Tetris field the first row is made invisible…

Now, to figure out sockets so I can whip up a PvP version…

Beautiful graphics and really cool gameplay. Good job!!

Love the backgrounds~
use what, slick2d?

Thanks a lot. :slight_smile:

Nope, just plain old Java2D :slight_smile:
A game loop, a CanvasStrategy and a whole bunch of BufferedImages and AlphaComposite settings. :stuck_out_tongue:

Why did you make a Windows and Mac version? It would be better to leave it as a Jar file so anyone can run it.

even better if it was an applet :wink:

Agh accidental apppreciate :stuck_out_tongue:
But yes that would be nice too :smiley:

I have appletophobia :stuck_out_tongue:

It’s happened before that I sent people a .jar file and they asked me what to do with it / what program to run it with… I was just trying to be user-friendly ;D

Applets work fine. I have a completely Java2D applet on my website and with the 500-600 visitors I get a day, I haven’t heard any complaining.

I love exe than applet. But love jar than exe :smiley:
when I paused, the gamed freezed because it’s trying to obtain online score while my connection unplugged. That’s all.

Whoops. Should probably look up how to implement a time-out thingy when it can’t retrieve scores…