Important alert: (current site time 7/16/2013 3:59:49 AM EDT)
 

winzip icon

Toxetris

Email
Submitted on: 10/1/1999
By: Oguz Ozgul 
Level: Not Given
User Rating: By 1 Users
Compatibility: VB 5.0, VB 6.0
Views: 17332
 
     Toxetris is a version of the classical game, TETRIS. The difference is that, the pieces are sliding, not jumping to the next square. Also you can pull down faster. It is a one week project. All the files are accesible. You can change them. The sliding pieces bring some problems: Most of the time, I have to check more positions for a piece if it is an empty place or not. Anyway, here it is... Pl ease write in your comments if you check it.
 

Windows API/Global Declarations:

Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
'**************************************
'Windows API/Global Declarations for :Toxetris
'**************************************
GDI32.DLL -> BitBlt
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 4 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

10/2/1999 3:01:00 AMTimothy Pew

If you comment the code a little better so that I can see how it works without taking so much time to go through the code I can make it slide correctly for you.
(If this comment was disrespectful, please report it.)

 
10/2/1999 10:16:00 PMsteve

It's alright, but my only problem with it is when you get the blocks down to a place. Half the time the block ends up way away from where it was. Like if I am aming for this...
_____
| |
|__ |
| | |
| | |
| | |
-------

I end up with this

______
| |
----| |
| |
|==|
| |
| |
| |
| |
==


Excuse my poor excuse for art, but I think it gets the idea I am trying to express across. I really do like it so far though. I look forward to seeing future releases.
(If this comment was disrespectful, please report it.)

 
10/2/1999 10:16:00 PMSteve

Sorry that the art didn't come out. I hope you understand what I am saying.
(If this comment was disrespectful, please report it.)

 
10/6/1999 4:56:00 AMOguz Ozgul

Armagan, merhaba. Seninle tanışmayı ben de isterim. Sana ayrıca mail atacağım.

Dear Steve. I understand the problem, and I knew it when I was sending the code to Planet-Source-Code.
The problem is that, when a piece comes down and stopped, program checks the x coordinate of the piece. I tried to make it by counting the middle of the square. If the piece is on the left, stop it on the left, if not, the piece stops at the first pixel of the next (right) square.
I don't think to waste time on it, because I make it only for see if I can.
Anyway, your drawing is bad, but I am sure it was very good before sending.

Thanks and bye.
OxOkl
(If this comment was disrespectful, please report it.)

 
10/14/1999 2:27:00 PMAlec

Can you please E-mail me the project and form of if I want a timer that every 3 seconds (3000) interval has anything happen just make it have a MsgBox so I can replace the MsgBox with somethig I want it to do
(If this comment was disrespectful, please report it.)

 
2/4/2002 4:26:41 PMTim

This code is evil!! It eats my computers power.... It hardly works on my machine. Looks ok though.
(If this comment was disrespectful, please report it.)

 
7/20/2003 5:28:29 AMcoder86

I like this TETRIS!

5 globes from me!

(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.