Important alert: (current site time 7/16/2013 3:24:26 AM EDT)
 

winzip icon

TetrisBox ActiveX Control

Email
Submitted on: 11/6/2000 8:49:29 AM
By: Luis Pérez Fernández 
Level: Advanced
User Rating: By 22 Users
Compatibility: VB 6.0
Views: 18221
author picture
(About the author)
 
     TetrisBox is an ActiveX Control written in VB6 that makes very easy the development of Tetris games. The ActiveX itself implements all the code to control the user input (keys to move blocks) and the own Tetris game rules, so all you have to do is create the interface of your game and let the control do the rest. Also, TetrisBox ActiveX Control allows you to use the features in the classic Tetris arcade game, like difficulting the game inserting a line at the bottom of the game board, or dropping a block at a random position, etc. You can also initialize the board with some blocks determined by you... endless posibilities! NOW UPDATED WITH SAMPLE PROJECT!! PLEASE DON'T FORGET TO VOTE THIS CODE =8)

 
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.

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 Advanced 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/2000 4:10:59 PMwgreen7

Nice. But could you give an example project to go along with it. (Americans ask for a lot, don't we? lol)
(If this comment was disrespectful, please report it.)

 
11/6/2000 6:43:43 PMLuis Pérez Fernández

Thanks to wgreen7 for his comment. The code is now updated with sample project.
(If this comment was disrespectful, please report it.)

 
11/8/2000 4:48:17 PMMatrix Man

sorry to ask, but i cant work out some of the labels on your pic above, so would you enlighten me and others abit?
thanks, as i will vote for it if i can understand.
(If this comment was disrespectful, please report it.)

 
11/9/2000 5:27:42 AMLuis Pérez Fernández

Sorry, but the picture in this page does not match with the sample project. Anyway, it is very easy to build any type of screen to play the Tetris game, as you will test if you download the zip file. In fact, you will only need to build the screen, because you won't need to write any code to control the game (the ActiveX makes it for you)!! (Please, don't forget to vote).
(If this comment was disrespectful, please report it.)

 
11/9/2000 1:26:59 PMMatrix Man

I have been having problems, I cant get it to work on my computer, although I have what I need,
win98
VB5 CCE
and the rest well, you dont need to know
but when I load the demo, it says that there is already an instance of a file loaded, and can not load.
also, not being offensive or anyhting, but could you provide a english help file, it would be usefull.
by the way, I will vote for you a top mark

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

 
11/14/2000 12:20:38 PMLuis Pérez Fernández

I think the problem may be that the control was developed using Visual Basic 6.0, that is not full compatible with VB5 CCE.
I will try in the next days to include a help file in english.
Thank you.
(If this comment was disrespectful, please report it.)

 
12/14/2000 3:24:39 AMHussein Hasanat

Why don't write the labels in English, I don't know its meaning
(If this comment was disrespectful, please report it.)

 
12/19/2000 5:50:19 PMRichard

Good progam and code for control
(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.