Important alert: (current site time 7/15/2013 9:18:41 AM EDT)
 

winzip icon

Tetris.NET (updated)

Email
Submitted on: 11/5/2002 7:27:13 PM
By: D. de Haas 
Level: Intermediate
User Rating: By 22 Users
Compatibility: VB.NET
Views: 29947
 
     A Tetris game completely writen in VB.NET....I tried to make the code as Object Oriented as possible and full of comments.....So enjoy!!!

 
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
//**************************************
// for :Tetris.NET (updated)
//**************************************
If you use any of my code in yours....mention my Name also... :-)
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 11 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
11/6/2002 11:04:49 AMJose M Serrano

I like it, I cant stop playing this game. 5 gloves man.
(If this comment was disrespectful, please report it.)

 
11/7/2002 3:04:07 AMD. de Haas

Graphics are improved....
Thanks Elerius, for giving me the tip.
(If this comment was disrespectful, please report it.)

 
11/15/2002 1:13:08 PM

Nice code, some work left to be done but great start ... =)
(If this comment was disrespectful, please report it.)

 
11/17/2002 4:22:16 AM{ pHroZeN GeeK }

Really nice code... 5 rounds from me
(If this comment was disrespectful, please report it.)

 
11/22/2002 11:45:45 AM

Nice, haven't looked at the code yet.
Also 5 from me.
(If this comment was disrespectful, please report it.)

 
12/22/2002 2:22:39 PM

I'm new in this VB world, but it is really interesting and I'm learning a lot, thanks.
(If this comment was disrespectful, please report it.)

 
1/2/2003 7:29:31 PMFrank Macall

Now we are seeing what VB.NET is capable of.
Great Code... 5 stars
(If this comment was disrespectful, please report it.)

 
2/22/2003 11:49:27 AMAlex C. Barberi

Extremely professional code. I give it 5 globes. You can learn a LOT from this one.
(If this comment was disrespectful, please report it.)

 
5/3/2003 12:20:02 PMBrandon M. Blais

wow, this looks like it took a lot of time!
(If this comment was disrespectful, please report it.)

 
5/12/2003 1:11:53 PM

Nice coding. 5 stars.
(If this comment was disrespectful, please report it.)

 
5/21/2003 2:07:29 PMVB Source Code

You haven't seen what VB .Net can really do until you start using DX9 in it!
(If this comment was disrespectful, please report it.)

 
8/22/2003 6:45:35 PMChris Pietschmann, MCSD, MCAD

This isn't really an example of what VB.NET can really do.

But this is still impresive.
5 out of 5
(If this comment was disrespectful, please report it.)

 
2/11/2004 9:20:38 PMAlex C. Barberi

You could add DirectX 9 to your Tetris .NET with my DX9 Tools 2D without having to know ANY DirectX code at all. You can download DX9 Tools 2D from P.S.C. in the .NET section.
(If this comment was disrespectful, please report it.)

 
2/11/2004 9:22:39 PMAlex C. Barberi

NOTE: I said "Extremely professional code" before, I didn't have much experience and what I meant is the code is very object-oriented and easy to understand.
(If this comment was disrespectful, please report it.)

 
2/12/2004 7:19:37 AMD. de Haas

I wasn't planning to add DirectX to Tetris, but maybe in a near future.

(If this comment was disrespectful, please report it.)

 
3/10/2006 2:34:23 AMMinh Duc

good !!
(If this comment was disrespectful, please report it.)

 
2/9/2008 4:26:01 PMguideX

This code doesn't work in VB2005. TetrisGame_Redraw ... Cross-thread operation not valid: Control 'Tetris' accessed from a thread other than the thread it was created on.
(If this comment was disrespectful, please report it.)

 
7/8/2011 3:43:10 PMClient\server chat prog+kaynak kodlari

Here's how to fix the cross operation not valid error:

http://pastebin.com/SZxi0Vc9


MakeLoveNotWar <3
(If this comment was disrespectful, please report it.)

 
11/15/2011 3:48:39 PMWilly

ok, cool work
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.