Let's Play Some Tetris Motherf**ker!

Off topic chat. Basically anything that doesn't concern halo or halo modding can go here.
Post Reply
The_Hushed_Casket





Posts: 1698
Joined: Sun Nov 07, 2004 12:13 pm

Let's Play Some Tetris Motherf**ker!

Post by The_Hushed_Casket »

Yay! I just finished writing Tetris completely from scratch. Well, actually I finished a while ago, but I couldn't get Images to work online, so I decided to use just regular primitive shapes (squares etc.) to display. It still looks good though.
This puppy weighs in at 7 classes, and 2,206 lines of code. It was written entirely in Java. It's disorganized, uncommented, and unoptimized, but who cares?! It's done! (And yes, I have way too much time on my hands)
Check it out here.
Controls:
Right/Left: Move Right/Left
Down: Move Down Faster
Up: Drop
R: Rotate
I think my scorekeeping is slightly different than most, but other than that, it is as accurate as possible.
Also, if it doesn't load, you may not have the Java JRE installed, you can get it here.
Image
User avatar
JK-47




Bloodhound Pyre Socialist Grunge

Posts: 10883
Joined: Wed Dec 01, 2004 2:54 pm
Location: Utah

Post by JK-47 »

Nice :wink:
Image
wes





Posts: 3839
Joined: Thu Apr 21, 2005 5:22 pm
Contact:

Post by wes »

yea it's pretty cool
User avatar
RaVNzCRoFT




Grunge Pyre

Posts: 6208
Joined: Mon Jan 10, 2005 3:05 pm
Location: Raleigh, North Carolina, USA

Post by RaVNzCRoFT »

Very nice. Wish I knew how to write stuff. :lol:
The Arbiter





Posts: 334
Joined: Sun Apr 24, 2005 3:19 pm
Location: New York City, Bronx
Contact:

Post by The Arbiter »

I've noticed a possible glitch (Correct me if I'm wrong) but, after I cleared a line, one block was hovering in the air, not on top of anything.
Signiture may not exceed 500x120
User avatar
xXxCocoFangxXx





Posts: 3756
Joined: Thu Sep 08, 2005 9:57 am
Contact:

Post by xXxCocoFangxXx »

Very Noice!!
Image
User avatar
BEEF!!!




Pyre

Posts: 1496
Joined: Wed Nov 05, 2003 5:47 pm
Location: Berlin, MA

Post by BEEF!!! »

The Arbiter wrote:I've noticed a possible glitch (Correct me if I'm wrong) but, after I cleared a line, one block was hovering in the air, not on top of anything.
Yah, I noticed that was well.
Other than that it's good!!!
The_Hushed_Casket





Posts: 1698
Joined: Sun Nov 07, 2004 12:13 pm

Post by The_Hushed_Casket »

BEEF!!! wrote:
The Arbiter wrote:I've noticed a possible glitch (Correct me if I'm wrong) but, after I cleared a line, one block was hovering in the air, not on top of anything.
Yah, I noticed that was well.
Other than that it's good!!!
I could fix that, but on the Wikipedia for Tetris (where I got all the scoring rules etc.) it says that that setting differs for different implementations of Tetris. When it falls regularly they call it Newtonian Gravity, and when it is like mine, it is called Naive Gravity.
Image
User avatar
[cc]z@nd!




Literarian 500

Posts: 2297
Joined: Tue May 04, 2004 1:52 pm
Location: michigan

Post by [cc]z@nd! »

nice writing!

now you can make your own full-fledged rpg in java! (no, i'm not tying to make you commit suicide)
ASPARTAME: in your diet soda and artificial sweeteners. also, it's obviously completely safe. it's not like it will cause tumors or anything. >.>
always remember: guilty until proven innocent
User avatar
Danke




Wordewatician 500 Mad Hatter

Posts: 2256
Joined: Sun Nov 02, 2003 7:44 pm

Post by Danke »

I hit a bug =o. If you rotate a piece next to one that's down already, you can make them overlap.
Image
Post Reply