Skip to content
Sign upLog in
← Back to Community

I made TETRIS

Profile icon
DynamicSquidHacker

Tetris. Yay!

Special thanks to

@Codemonkey51
,
@AARIZBOYA
,
@CodeLongAndPros
,
@BobTheTomatoPie
,
@yuhuiguo
,
@ChezCoder
,
@SixBeeps
,
@Jakman
,
@OcelotCat
,
@johnstev111
,
@HahaYes
, and
@AbhayBhat
for their death message suggestions. So blame/thank them for the death messages xD

Oh, and I suggest you play it with the screen size reduced. 67% worked great for me. Also send me a screenshot of your high score to get a mention!

So this game was actually one of the first games I made using Java/Processing, so I had absolutely no clue what I was doing. That's why the game's terrible. I found this in a old folder that I made a couple months back, and I guess sharing it with you guys wont hurt.

Anyway, after working on this game for four days, I kinda lost all motivation and gave up on continuing to work on this project... However, if this project gets a decent amount of likes, I might regain my motivation and completely refactor the code, and improve the game :)

I also had to do a lot of tweaking to make this game work for repl.it since I did this in another compiler, and repl.it doesn't support some features of Processing, and it's a complete mess.

And before you comment all the bugs about the game and repetition of the code, yes, I know. Here's a complete list of bugs:

  1. pieces don't have side collision detection
  2. the square won't rotate
  3. rotating pieces bypass wall collision detection
  4. line clear is very buggy
  5. the code is complete garbage

But if this game does well (gets a decent amount of likes), then I might regain my motivation to make a better one.

TL;DR

Bottom line is, the code sucks, there's a bunch of bugs, I lost motivation in improving it, but let me know if you want to see a version 2 of Tetris by upvoting :)

Also, I just released Minesweeper v3! Play it [here] (https://repl.it/talk/share/Minesweeper-v3/36848)!

Enjoy!

EDIT:

Okay, so you guys have been absolutely amazing so I think I actually might make a second version now. It'll definitely take a while since I'm quite busy with some other stuff (like making Pacman), but thanks to all those who supported this project!

ANOTHER EDIT:

Thanks so much for 50 upvotes! This is my first project which surpassed that mark. And I'm on my way to 500 cycles! Thanks to all! I guess I'll do a 500 cycle special. Coming out soon :)

Voters
Profile icon
EzFN8424
Profile icon
Dukdukduk
Profile icon
1-2
Profile icon
comet99
Profile icon
MemeManHimself
Profile icon
maxina
Profile icon
kwab4ever
Profile icon
ninja2k11
Profile icon
GovindRamanan
Profile icon
legobuddy63
Comments
hotnewtop
Profile icon
Muffinlavania

Wow! Tetris in coding.. Never thought I'd see it...

Profile icon
Muffinlavania

@Muffinlavania
also if you mash your arrow keys you can stick a block into another one btw

Profile icon
DynamicSquid

@Muffinlavania
oh thanks! also yeah, I have a list of bugs in the description

Profile icon
JBloves27

This is very cool!

Profile icon
DynamicSquid

@JBYT27
thanks!

Profile icon
ChezCoder

ehh! :D

Profile icon
DynamicSquid
Profile icon
HahaYes

The word "Death message " took me a sec to comprehend.

Profile icon
HahaYes

@HahaYes
I thought it was blackmail for a sec

Profile icon
DynamicSquid

@HahaYes
oh lol xD

Profile icon
GeorgeLee2468

This is actually great

Profile icon
DynamicSquid

@GeorgeLee2468
thanks :)

Profile icon
Bookie0

Cool !

Profile icon
DynamicSquid

@Bookie0
thanks :)

Profile icon
mwilki7

I wouldn't feel too bad.
The line clear algorithm works and I'd say that's the hardest thing about programming tetris. It also looks way better than mine.

Profile icon
DynamicSquid

@mwilki7
oh thanks! I just checked your out, it's still good too! well, you can't really compare them since we did it in different languages

Profile icon
BobTheTomatoPie

Btw i get the Dani reference

Profile icon
DynamicSquid

@BobTheTomatoPie
Dani? I do watch him, but I didn't intentionally put a reference in. What is it?

Profile icon
BobTheTomatoPie

Someone made a comment on his vid saying make a 3d game, (or you can't do that?) and now all his videos have that in their titles and if you read the comments it's flooded with (or you can't do that)

@DynamicSquid

Profile icon
DynamicSquid

@BobTheTomatoPie
Oh yeah, right right right, that is a Dani reference, forgot about that :)

Profile icon
HahaYes
Profile icon
DynamicSquid

@HahaYes
that makes me go Y E S S

Profile icon
AphixDev

@BobTheTomatoPie
Didn't see this comment. Dani's my favorite dev dude xD

Profile icon
BobTheTomatoPie

This is awesome! Instant upvote!

Profile icon
DynamicSquid

@BobTheTomatoPie
thanks! glad you liked it!

Profile icon
Reuben123

@DynamicSquid
This is awesome. Good job! :D

Profile icon
DynamicSquid

@Reuben123
thank you!!!

Profile icon
8Bitz0

Fatal Error!: Found Raw squid in hard drive. XD

Profile icon
DynamicSquid
Profile icon
firefish

@AlexBean11
Thank you!

Profile icon
VulcanWM

I am trying to make a new thing in my website called circuits. It is going to be a bit like cycles. So every time somebody gives me a game or quiz to put on my website, I give them a circuit. Do you have a VWM Gaming Profile so I can note down your 2 circuits?

@DynamicSquid

Profile icon
DynamicSquid

@medcho
no, unfortunately not. but don't worry about giving me a prize. Just mentioning me in good enough for me :)

Profile icon
VulcanWM
Profile icon
Rithaquick

Bro you have 499 cycles noice

Profile icon
DynamicSquid

@Rithaquick
:) mind getting me to 500?

Profile icon
Rithaquick
Profile icon
Rithaquick

I upvoted :)

Profile icon
DynamicSquid

@Rithaquick
yay! I'm at 500 :) thanks!

Profile icon
PowerCoder

@DynamicSquid
I got you to 501 :D

Profile icon
DynamicSquid
Profile icon
firefish

@DynamicSquid
You are at 580... is it going to be a 600 cycle special?

Profile icon
DynamicSquid

@johnstev111
yeah that's a good point. probably lol

Profile icon
firefish

@DynamicSquid
You have 600 cycles... 600 cycle special?

Profile icon
DynamicSquid

@johnstev111
wait, I have 666 cycles. last time I checked I was at 580. Am I lagging?

Profile icon
firefish

@DynamicSquid
695? What?

Profile icon
DynamicSquid

@johnstev111
uh... why is it climbing? is this a glitch?

Profile icon
firefish

@DynamicSquid
I don't know... A 700 cycle special would do though... EDIT: you have 703 cycles

Profile icon
DynamicSquid

@johnstev111
yeah lol. wait, I literally just went from 580, to 700 cycles in a couple minutes. I'm really confused... wait, I did get second place on #WEEKLY 1, so I think I go some points of that? I'mma check with some mods

Profile icon
firefish

@DynamicSquid
Really weird bug...

Profile icon
DynamicSquid

@johnstev111
yeah, I've never seen anything like this. But the really weird part is you can see it too

Profile icon
firefish

@DynamicSquid
Well, everybody must see it too...

Profile icon
DynamicSquid

@johnstev111
yeah... I guess I have 700 cycles now? I'll go talk to a mod

Profile icon
firefish

@DynamicSquid
Yeah.. do that

Profile icon
firefish

@DynamicSquid
What has the mod said?

Profile icon
DynamicSquid

@johnstev111
oh, I actually haven't talked to a mod yet :) I'm too busy doing the WEEKLY #2 challenge

Profile icon
firefish

@DynamicSquid
You should talk to one though... this is weird

Profile icon
DynamicSquid

@johnstev111
yeah, imma do that now

Profile icon
[deleted]

Really cool

Profile icon
DynamicSquid

@TheLimifiedCode
glad you liked it :)

Profile icon
HahaYes

wow, I don't get a shoutout for all my bad jokes. I feel insulted