tetris game
i need a tutorial about making a tetris game. with sources if possible. not some complicated, but something good for a start
thanks
All my friends has been crucified ...
-----------------------------All my friends has been crucified ...
i gice yoiu if you teach me how to make a "source"-frame in this forum!
_________________________________________________________________________
Can someone be nice and help me on my way to be the next Hideo Kojima? Thought So...
_________________________________________________________________________
Can someone be nice and help me on my way to be the next Hideo Kojima? Thought So...
The best thing about the internet is the way people with no experience or qualifications can pretend to be completely superior to other people who have no experience or qualifications.
First things first, do you know anything about C++?
If you dont, i reccommend u make some console programs first,
then if ur looking for a good way to start graphics programming,
try www.allegro.cc
Its a good little libary to get started!
Good Luck!
Post with any other questions you have
Cyas
If you dont, i reccommend u make some console programs first,
then if ur looking for a good way to start graphics programming,
try www.allegro.cc
Its a good little libary to get started!
Good Luck!
Post with any other questions you have
Cyas
this is a test of a source box:
Sorry, I couldn't get it to work; I have a really nice java applet that implements tetris in a couple of hundred lines from a tutorial that went off line about a year ago....
email and I can send it to you.
[edited by - nonnus29 on May 25, 2002 11:36:06 PM]
Sorry, I couldn't get it to work; I have a really nice java applet that implements tetris in a couple of hundred lines from a tutorial that went off line about a year ago....
email and I can send it to you.
[edited by - nonnus29 on May 25, 2002 11:36:06 PM]
please send the sources or the articles at raven@pixelrage.ro
Thanks
Thanks
-----------------------------All my friends has been crucified ...
Why dose this all sound fimilyar? How do I make a Tetris clone? Well dude, you can''t learn how to make a tetris clone in a forum. Theres lots of tutorials out there especialy on GameDev that can lead you along the way. I wouldn''t try and go for any fantsy API like DirectX or OpenGL just yet. Allergo is for DOS and DOS is dead. True though, its good practice.
The basic thangs your going to need to learn to make a tetris game are simple. You''ll need to know how to blit graphics and take input from some osrt of device first. Thats the easy part. then you got to learn how clipping works. So you tetris blocks can''t go beyong the boundries. Basic clipping is like this->
if(x_pos > 150)
x_pos += 32;
Something like that will make it were your blocks stay in the area likt there supose to do. Next thang to do is making the blocks rotate 90*. In DirectDraw, there is a structure called the DDBLTFX, that will allow 90* rotation with the simple use of a flag, being DDBLT_ROTATE90 I think. That perty much sums up the movment part.
The next thang to learn is the collision detection for the blocks. The type of collision detection you''ll need is something that will only allow the blocks to move some were they can. So they can stack on top of each other. Then if the fill the screen then BOOM you got a line and then every thang moves down. One way to do this is, onece a line is made delete that part of the picture and move every thang up from the top y postion of the line made down.
I hope this helps a little bit. When I first started it was HELL for me!!! If you want I can E-mail you some source code that implements DirectDraw for you, so you can look at it and get to know how it works. I can send that in MingW or MSVC compliant. If I was you, I would go buy a book on game programming. Something like Windows Game Programming for Dummies. Theres also lots of info about Game Programming related topics you can search for at Google . The most common places you''ll find info for this type of stuff is
Plus lots more, but don''t for get to check MSDN. If your wanting to make programs for Windows, your best bet is DirectX or OpenGL. But learn GDI first because its fun and easy. I should ybeable to find lots of tutorials on Win32 GDI. Some good places are
The basic thangs your going to need to learn to make a tetris game are simple. You''ll need to know how to blit graphics and take input from some osrt of device first. Thats the easy part. then you got to learn how clipping works. So you tetris blocks can''t go beyong the boundries. Basic clipping is like this->
if(x_pos > 150)
x_pos += 32;
Something like that will make it were your blocks stay in the area likt there supose to do. Next thang to do is making the blocks rotate 90*. In DirectDraw, there is a structure called the DDBLTFX, that will allow 90* rotation with the simple use of a flag, being DDBLT_ROTATE90 I think. That perty much sums up the movment part.
The next thang to learn is the collision detection for the blocks. The type of collision detection you''ll need is something that will only allow the blocks to move some were they can. So they can stack on top of each other. Then if the fill the screen then BOOM you got a line and then every thang moves down. One way to do this is, onece a line is made delete that part of the picture and move every thang up from the top y postion of the line made down.
I hope this helps a little bit. When I first started it was HELL for me!!! If you want I can E-mail you some source code that implements DirectDraw for you, so you can look at it and get to know how it works. I can send that in MingW or MSVC compliant. If I was you, I would go buy a book on game programming. Something like Windows Game Programming for Dummies. Theres also lots of info about Game Programming related topics you can search for at Google . The most common places you''ll find info for this type of stuff is
- GameDev
- FlipCode
- Gamasutra
- GameCoding UK
- Programmers Heaven
Plus lots more, but don''t for get to check MSDN. If your wanting to make programs for Windows, your best bet is DirectX or OpenGL. But learn GDI first because its fun and easy. I should ybeable to find lots of tutorials on Win32 GDI. Some good places are
- winprog#
- Foo-Yer-Doos
- Reliasoft
You''ll find most of the links to these places at The Dev-C++ Resource site. Theres also the Win32 API Reference there. Get it! It comes in handy.
Windows programming is easy, once you get a hang of it. For a newbie, well it can be a little ruff. Once you learn the basic parts of a Window application your set. Then its just getting down with DX or OGL. OpenGL is alot easier and nicer to a newbie. NeHe has the best tutorials around you''ll find any were.
Any ways, have fun and good luck
Take back the internet with the most awsome browser around, FireFox
man .... i dont want to learn how to make a tetris game here .... but im sure that some of you know some good tutorials.
i want full tutorials because im very new ... i mean i know some c but i never do something in windows programming except MFCs
[edited by - The Raven ST on May 26, 2002 9:14:55 AM]
i want full tutorials because im very new ... i mean i know some c but i never do something in windows programming except MFCs
[edited by - The Raven ST on May 26, 2002 9:14:55 AM]
-----------------------------All my friends has been crucified ...
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement