Important alert: (current site time 7/16/2013 4:04:46 AM EDT)
 

winzip icon

blocks - a cool tetris clone

Email
Submitted on: 8/15/1999
By: Happy Lobster  
Level: Not Given
User Rating: By 4 Users
Compatibility: VB 4.0 (32-bit), VB 5.0, VB 6.0
Views: 25427
 
     A cool tetris clone just like the original. Programming by Anton Gustavsson, graphics by Me.
 
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.
  3. Scan the source code with Minnow's Project Scanner

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 15 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 Not Given 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

8/16/1999 1:54:00 AMEric

Dear Anton,

Your Game is realy great. But what must I change to get the Blockfield from white to black?

I hope you can help me.
(If this comment was disrespectful, please report it.)

 
8/16/1999 1:58:00 AMMarcus

I'm not sure what you are trying to do. Please explain.
(If this comment was disrespectful, please report it.)

 
8/16/1999 8:07:00 PMTigger

You legends....
Tested and runs well on Win NT.

If you're bored and want to make it better, get the functionality to allow the user to move the block down faster than the default drop speed, instead of just dropping the block or having to wait for it to get to the bottom.

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

 
8/17/1999 12:42:00 AMMarcus

I got the code originally from Anton, but the graphics weren't bright and cheerful so I beefed it up a bit. The origal title screen wasn't very good either, and I changed that too. Programming wise its sound and I made the game in VB5 on a WinNT system, it was previously in VB4 so its updated in that sense as well.

I'm sure if you wanted to change the game slighly you could do it yourself, it shouldn't be too difficult.

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

 
9/10/1999 2:20:00 AMDieuThu

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

 
9/10/1999 2:31:00 AMtuonganh

I want to have free source code.
(If this comment was disrespectful, please report it.)

 
9/10/1999 7:43:00 PMAndrew

This is very cool! Great work!
(If this comment was disrespectful, please report it.)

 
9/11/1999 1:54:00 AMNick

Great Stuff! Very impresive!
(If this comment was disrespectful, please report it.)

 
9/14/1999 8:51:00 AMMatthew Heydman

Very intersting approach to coding this game. Thank you! BTW- to change the playing area background from white to black, just change all occurances in the code from RGB(255,255,255) to RGB(0,0,0).
(If this comment was disrespectful, please report it.)

 
9/18/1999 4:28:00 PMr.v.etten

I have written a Tetris clone myself. It took me a bloody 4 hours to do it.(including the 16bit graphics and the XM title song) I discovered that doing it using a cursor field was easiest.
A graphics routine that prints the cursor field overcomes the limitations of the graphical appearance (bitblt/stretchblit). This way you can even make a Isometric Tetris.

For a tutorial on making tetris email me.
(If this comment was disrespectful, please report it.)

 
9/20/1999 8:02:00 PMparitchaya

Thank you for Free source code.
(If this comment was disrespectful, please report it.)

 
10/1/1999 7:06:00 PMEvil-Zemo

Supp Check out http://www.evil-web.net

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

 
10/18/1999 10:04:00 PMSang-won Seo

저는 한국에 사는 이름은 서상원이라고 하는
사람입니다.
모두 영어로 적혀 있어서 굉장히 보기 어렵군요
그리고 전 "우물안 개구리였던것 같습니다."
정말 이렇게 간단하다고 하는 텍트리스 알고리
즘이 이렇게 어려울 줄이야
아! 정말 제가 프로그램머로 가야할길은 멀고도
험난할것만 같습니다.
도와주세요
Help Me! Please......
(If this comment was disrespectful, please report it.)

 
10/24/1999 11:28:00 AMDe KoFfie

I'm just a beginner and I wanted to know how can I let the blocks turn ??
Could you send me that code?
Th-X
(If this comment was disrespectful, please report it.)

 
11/7/1999 12:30:00 PMCardboard

Okay, programmers. To make the blocks turn, get your keybard code. Each key has a number in programming, find the numbers of the key in which to makethe block turn, in this case, it's 30 (think) for keypad up. You can change this in your programing so it's whatever you want.
Changing the colour is also simple, what you do is change the 3 numbers (eg 256, 256, 256).
I hope that helps you out, Cardboard
(If this comment was disrespectful, please report it.)

 
3/19/2003 7:14:41 PMFred

Game works great.
It might help people understand your code better if it was commented.

Keep up the good work.
(If this comment was disrespectful, please report it.)

 
3/20/2003 10:04:38 AMHappy Lobster

It would help, but I never programmed the game. I just made the UI a little better to make it more appealable to PSCers! I'm sure you could work out what's going on though?
(If this comment was disrespectful, please report it.)

 
8/21/2004 5:42:12 AMJeroen van de Ven

My tetris clone search stops here.
This is the best feeling tetris game i've seen, it plays so well I just began playing it and didn't stop...

I was planning on making my own better tetris game based on Tetris DX for GBC, but i figured there were hundreds of open source basic tetris clones already, so i began searching.

Would you mind if I use the basic parts of this in my project??
(If this comment was disrespectful, please report it.)

 
10/21/2004 12:50:31 PM

plz email tetris tutorial as promised
nadeem@email.com
(If this comment was disrespectful, please report it.)

 
10/21/2004 12:51:53 PM

great work,
plz email me the tetris tutorial, thanks.
(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.