Important alert: (current site time 7/15/2013 6:27:59 PM EDT)
 

winzip icon

pHroZeN Bricks (Tetris) with excellent graphics

Email
Submitted on: 9/9/2002 10:21:08 AM
By: Ali Akbar 
Level: Intermediate
User Rating: By 26 Users
Compatibility: C, C++ (general), Borland C++
Views: 18198
(About the author)
 
     This is a Tetris game with excellent graphics and sounds. Learn how to harness all the powers of graphics.h to create great, fast, smooth and flicker free animations by using the getimage and putimage fns. Have a look at the screen shot to see what I mean. Feel free to use this code. If you like this program (or) if you find it useful, please take some time and vote for me. Your vote will be greatly appreciated. Thanks... ENJOY
Regards, { pHroZeN GeeK }


 
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 2 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

9/10/2002 12:29:22 AM{ pHroZeN GeeK }

Please feel free to leave back any suggestions, comments and votes
(If this comment was disrespectful, please report it.)

 
9/10/2002 12:41:26 PM

great work ....

this won't work in unix, linux,

so can u make such a game for unix...

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

 
9/19/2002 4:09:05 PMAlok Gupta

hello mr ali

i am alok gupta ,i have also made the game brick
but i was inspired by you for making this game ,i

have seen your code for enhancing my game play in

brick

i am not as big programmer as you,but it is step

towards that,
thanking you
ALok
visit me at http://alok.stormpages.com


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

 
9/21/2002 9:05:54 PMJosh Nixon

Yes, I love your game phrozen i was seeking your game to see how i can speed my graphics up and make them flicker free. Thanks for this i have strong belieft that graphics.h is powerful too ;)
(If this comment was disrespectful, please report it.)

 
9/23/2002 8:33:42 AM{ pHroZeN GeeK }

Thanks a lot everyone for the positive comments and votes. Keep them comming :)
(If this comment was disrespectful, please report it.)

 
11/1/2002 9:58:51 AMRishabh M

Great start for me after my Snake game.Thanks Phrozen .
BTW r U Indian??
(If this comment was disrespectful, please report it.)

 
11/2/2002 5:49:08 AM{ pHroZeN GeeK }

Yes I am an Indian, Rishabh. btw thanks for the comment.
(If this comment was disrespectful, please report it.)

 
11/9/2002 9:17:27 PM

Whats with the 140 errors upon compilation? most involve the word "far"...
(If this comment was disrespectful, please report it.)

 
11/12/2002 9:21:35 PM{ pHroZeN GeeK }

Sorry but this code is for DOS based graphics... so the compatibility is for Borland C/C++ or the Turbo C++ compiler. This code wont compiler in VC++.
(If this comment was disrespectful, please report it.)

 
12/14/2002 11:51:01 AM

why the hell don't people put graphics.h in their package? where can i get this file?
(If this comment was disrespectful, please report it.)

 
12/15/2002 3:32:26 AM{ pHroZeN GeeK }

I have included the graphics.h and graphics.lib file along with the zip
(If this comment was disrespectful, please report it.)

 
1/21/2003 9:26:17 PMJared Bruni

this is a good game, great code
(If this comment was disrespectful, please report it.)

 
1/22/2003 3:51:13 AM{ pHroZeN GeeK }

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

 
3/13/2003 5:58:53 AM

What can I say but Congratulations! I'm a beginner in C++ programming and I've downloaded tons of source code to learn from. But I couldn't understand very much of it until I saw yours. It is as efficient as it is easy to understand. Nice.
P/S: By the way, would it be too much if I would ask for some lessons? Seriously. ;-)

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

 
3/22/2003 3:49:07 AM{ pHroZeN GeeK }

Thanks for the positive comments. I am sorry, at the moment, I cannot write a tutorial for C++ as I am really busy with my final yr project. Maybe if I write it later, I will let you know :)
- Ali Akbar
(If this comment was disrespectful, please report it.)

 
6/8/2003 6:12:32 AMDream

cannot open graphics.h but is is there, any ideas?
(If this comment was disrespectful, please report it.)

 
10/19/2004 5:48:33 AM

Thanks for the source code this is good stuff and all those having problem compling the code go to
http://www.programmersheaven.com/d/click.aspx?ID=F6619
and you should be able to compile..

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

 
10/19/2004 6:01:44 AMAli Akbar

Thanks for the feedback
(If this comment was disrespectful, please report it.)

 
4/10/2007 12:45:34 PMJulio C. Gotuzzo

hi all, im from argentina be pacient with my english :S
First of all geek your code is 10 points, lovely coded :D
I have a question nobody in the whole internet could answer me. It's a bit complicated, the thing is that i wnat to make a backbuffer in 640x480 mode that initializes with the graphics.h so as to work in memory and then flip the screen at once, but y dont know whats the structure of the block that creates getimage() or how to point to the video memory. Maybe someone did this and can help me. Thanks.
(If this comment was disrespectful, please report it.)

 
1/9/2009 10:35:56 AMaakash

sir m not good at programming .....its like i want to run dis code..... so please help me how to ....
i hav got two files ....
1. graphics H file
2. bricks cpp file
tell me which one to run with graphics included..... it shows no error but when i run it ... it does not show nethin ... just a blink......
help me ...please please
(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.