PDA

View Full Version : The best 2D Tetris on the web?



T.Jackson
- 7th October 2008, 10:41
So you like Tetris huh? Of course you do, Tetris is a game of logic, and you're a computer programmer!

http://www.trentjackson.bigpondhosting.com/tetrisworld.zip

(3mb download, requires Microsoft's .NET framework 2.0)

Vista users will already have the frame work, XP users will need to visit: http://www.microsoft.com/downloads/details.aspx?FamilyID=0856EACB-4362-4B0D-8EDD-AAB15C5E04F5&displaylang=en

Enjoy!

Trent Jackson

T.Jackson
- 9th October 2008, 04:31
The source code for this is also available: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?lngWId=10&txtCodeId=6803

VB.NET leaves VB6 for dead.

Some of the response I have received from this project ...

Comment: Wow, I was expecting another boring Tetris clone, then I started the project up and was pleasantly surprised. I especially loved the ambient music and different style backgrounds.

Ioannis
- 9th October 2008, 09:55
Very good Trent. But I feel that all these are a waste of resources...

You are too good to be spended in games.

Ioannis

T.Jackson
- 9th October 2008, 11:10
lol ...

Often enough, I find that one of the best ways to learn a new language is to assign yourself with a subject. A video game is a perfect choice. Here's why. A video game is usually a diverse compilation of: logic, I/O, variables, graphics and sounds. These are 5 key ingredients to almost any piece of contemporary software. Logic exposes you to all the general syntax, such as: IFs, FORs, DOs etc ... IO (input / output) requires dealing with things such as the keyboard and mouse. Graphics on the other hand exposes you to the implementation of APIs (big part of desktop programming) Same story for music & sounds. Conclusion: I actually made that game to cut my teeth on .NET :)

Making video games is a great way to learn how to program.

Trent Jackson

Ioannis
- 9th October 2008, 13:44
Ha, ha, ha!

Can't argue to any of these!

Ioannis

T.Jackson
- 9th October 2008, 15:06
I remember back in around early 2000 I attempted to code a Tetris from scratch. The result was a migraine. I got absolutely no where with it. Perhaps I was missing the conceptual knowledge, but then again maybe it was just completely beyond me.

I absolutely ripped through it this time around. Everything was like click, click clack. It just all came together, it was ready to be born. So besides cutting my teeth on .NET, this game represents a milestone in my years of programming from when I first began.

But I think now, all I really want is that magic piece of paper from UNI. No more video games on the menu. But a really good XHTML editor might be :rolleyes:

Trent Jackson

T.Jackson
- 9th October 2008, 15:31
Oh! and ...

http://freevbcode.com/new.asp just gave me code of the month for it too ($25,000 in cash & prizes)

I wish! ...

But I am the first person in the history of freevbcode.com to get code of the month! :)

Pic_User
- 9th October 2008, 15:56
Oh! and ...

http://freevbcode.com/new.asp just gave me code of the month for it too ($25,000 in cash & prizes)

I wish! ...

But I am the first person in the history of freevbcode.com to get code of the month! :)Nice job Trent, congratulations.
I have no idea how to program in VB.
Maybe you could post some VB to PIC (USB, Serial, etc.) interface modules.
It would help to get us started and break the ice.

-Adam-

tenaja
- 9th October 2008, 16:00
Nice game, Trent. I hate the rain, etc.... because it is a nice distraction.

On my laptop, it is difficult to get them to move just one square left or right... it almost always moves two. Perhaps a delay before auto-repeating will improve game play.

T.Jackson
- 9th October 2008, 16:20
Nice game, Trent. I hate the rain, etc.... because it is a nice distraction.

On my laptop, it is difficult to get them to move just one square left or right... it almost always moves two. Perhaps a delay before auto-repeating will improve game play.

The reasoning for the rain (constant in some levels) -- is to make the game progressively more difficult. This is achieved by, as you stated: "it is a nice distraction"

The game runs at around 10fps, so the delay for auto repeat is 100mS. I guess something that's definable in the menu would make a welcomed addition. Not everyone plays the game at lightning speeds.

Thanks for the very constructive feedback Tenaja.

Trent Jackson

T.Jackson
- 9th October 2008, 16:55
Initially, I had plans of having hot bikini models in the background, to make for a "real" distraction. Higher levels get a hotter babe. The game gets progressively harder. But I ditched the idea for something that would suit a wider audience.

Trent Jackson

Acetronics2
- 9th October 2008, 19:30
Hi, Trent

This one is ESPECIALLY for you :

http://www.perso.ch/broutille/Jeux/Tetris.exe

lol ...

Alain

T.Jackson
- 10th October 2008, 07:51
Alain,

Not that I don't trust you or anything, but I have this policy about running executables: I like to be able to verify the source (like as in, where the hell has it come from?)

That link points to nothing specific about the game, no website, no author, natta. The attributes of the file are null, not even an icon.

Some advice I would like to give everyone prior to running an executable:

1. Determine the source
2. Question the source
3. If something doesn't make sense in this world then it is not true!

I'm overly cautious and suspicious. Sorry, I'm an Aquarius.

Trent Jackson

Acetronics2
- 10th October 2008, 12:32
Hi, Trent

This one is 100% safe ... at least for your computer.

The original links are broken, soooo ... you can search a while !!!

Alain

T.Jackson
- 10th October 2008, 12:53
This one is 100% safe ... at least for your computer.


You're a worry Alain.

Do you actually have any idea as to what you've just said? Do you know what that statement implies?

Pic_User
- 10th October 2008, 13:13
You're a worry Alain.NewZealandish
N.Z. English to U.S. English Dictionary
http://www.personsmissing.org/nztoenglish.html

Acetronics2
- 10th October 2008, 13:14
Hi, Trent

That statement implies you are passing by a great comic career ...

Alain

Ioannis
- 10th October 2008, 13:41
Thanks for the translator page Pic_User. Great link.

How on earth could I (poor UK english from Greece) understand what a worry could mean here? :-)

Ioannis

T.Jackson
- 10th October 2008, 16:08
:eek: *Very shocked look

T.Jackson
- 11th October 2008, 16:44
If you are not particularly keen on animation, music, sound and special effects: you may prefer the classic edition: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=6806&lngWId=10

The classic edition implements the same engine as the world edition, but without the "light show": a closer resemblance to the original. Also, the classic is very raw version that's ideal for modeling your own game around. An intermediate .NET programmer could apply their own theme / tweaks to.

Trent Jackson

T.Jackson
- 30th October 2008, 04:14
Nice job Trent, congratulations.
I have no idea how to program in VB.
Maybe you could post some VB to PIC (USB, Serial, etc.) interface modules.
It would help to get us started and break the ice.

-Adam-

You still wanna break the ice with me Adam?

T.Jackson
- 30th October 2008, 04:51
We've gotcha buddy.

T.Jackson
- 30th October 2008, 11:52
Best to go down to the police station and demand a polygraph if you're innocent.

T.Jackson
- 30th October 2008, 13:14
Guaranteed suspect.

Get ready to ****'n run like hell.