Advertisement

Source code for a newbie...

Started by November 17, 2000 09:34 AM
1 comment, last by Constantly Being Helped 24 years, 2 months ago
I''ve just started programming in c++ and I have the basics, but I need some source code. I was wondering if anyone could send me the source code for a Tetris like game that would run with djgpp. Lmnofun@yahoo.com
I believe there is an unofficial ban on replying to posts like this one, but I will anyway. If you just know the basics of C++, are you still doing console apps? If you can program a basic windows app that makes "Hello World" (just plain black text) bounce around the window, maybe you are ready to begin DirectX. If you are doing console apps, I can''t help you, but there are those around who still know the age-old art of console programming. As for the code, you would need to know the API to get more than a rudimentary understanding of it. I can''t supply tetris code because I skipped that programming phase... I went from Pong to a particle system to an RTS. You should go get a good book on DirectX, or, if you want to take the less-useful-in-the-future approach, a book on the Windows GDI. If you can blt a colored square to the screen, you are about 2 steps away from tetris .

--------------------


You are not a real programmer until you end all your sentences with semicolons; (c) 2000 ROAD Programming


You are unique. Just like everybody else.

Yanroy@usa.com

Visit the ROAD Programming Website for more programming help.

--------------------

You are not a real programmer until you end all your sentences with semicolons; (c) 2000 ROAD Programming
You are unique. Just like everybody else.
"Mechanical engineers design weapons; civil engineers design targets."
"Sensitivity is adjustable, so you can set it to detect elephants and other small creatures." -- Product Description for a vibration sensor

Yanroy@usa.com

Advertisement
You should go look for a tutorial on the net on how to put a pixel onto the screen with djgpp before you even consider thinking tetris. From the looks of it, you haven''t even tried doing any graphics yet. Graphics aren''t exactly "the basics". Especially if you''re still programming for DOS. There are plenty of tutorials on the web that tell you how to go about handling graphics in DOS. Go read up on those before asking for source code.

This topic is closed to new replies.

Advertisement