Sign in to follow this  

Tetris sample in DirectX 10

This topic is 2334 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I want a Tetris sample in DirectX 10 with C++. Does anyone know a sample?

Thanks in advance,

QMC

Share this post


Link to post
Share on other sites
Not to kybosh your plan, but why 10? 9 has the mass support ( XP ) and 11 is the most current/powerful. To use 10, you are giving up the vast support of 9 while gaining nothing in return.

Share this post


Link to post
Share on other sites
My GPU is too old for DX11, and DX10 has more features than DX9

Share this post


Link to post
Share on other sites
Why not just program in DirectX11 and set it to target DirectX10 hardware?
So you can learn DirectX11 instead of DirectX10.

Share this post


Link to post
Share on other sites
Is that possible? That's great! Now I'm only waiting for the sample...

Share this post


Link to post
Share on other sites
After some searching, i don't think there are any tetris samples in DirectX11.
But if you want to learn DirectX11 maybe these links can help :

[url="http://www.directxtutorial.com/"]http://www.directxtutorial.com/[/url] (paid, but got some free tutorials)
[url="http://www.rastertek.com/tutindex.html"]http://www.rastertek.com/tutindex.html[/url] (free, but in my opinion not so good as the above)

both in DirectX11 or DirectX10

Share this post


Link to post
Share on other sites
I preveously followed rastertek.com, but it only focuses at graphics, not at making a game.

Share this post


Link to post
Share on other sites
Tetris is one of those games you should try to figure out yourself, it's very simple to design and implement and is therefore recommended a lot to beginners on these boards
A sample of a full tetris implementation won't teach you anything

Share this post


Link to post
Share on other sites
@Radikalizm: That's like telling me to write something in Japanese, while I can't! I'm new to DirectX and I don't know how to use it. I want a Tetris sample so I can figure out how DirectX works. All the tutorials I followed were only related to graphics, not to a game in general.

Share this post


Link to post
Share on other sites
[quote name='QMC' timestamp='1314360902' post='4854022']
@Radikalizm: That's like telling me to write something in Japanese, while I can't! I'm new to DirectX and I don't know how to use it. I want a Tetris sample so I can figure out how DirectX works. All the tutorials I followed were only related to graphics, not to a game in general.
[/quote]

You do realize that that's what DirectX is right? DirectX is not a game engine, it's a graphics library, all the game related stuff is up to you

Share this post


Link to post
Share on other sites
UnrealEngine and Source are game engines, I know.
The only thing I don't know are the command you can use in DirectX, THAT'S my problem.

Share this post


Link to post
Share on other sites
Before you start to speak Japanese, you usually look up lessons or take classes to grab the rules of the language and then jump in for practice, you don't just start watching subtitled anime so you can analyze the language and figure it out. Clearly, both ways are, in a sense, a possibility but clearly the latter option is a magnitude more difficult. Judging by your past two posts, that's what you're trying to do. It's like studying the final product so you can understand the tools. You don't learn how to use a hammer by studying a standing house. You either learn to use it before you begin your work or figure it out while you're at it.


That's enough of the metaphors for now, though. If you want to study DirectX seriously, go look up tutorials for DirectX or buy yourself a book about it. All you need to know about DirectX to make Tetris is how to render a bitmap or a shape at a specific position. Everything else is logic work.

Share this post


Link to post
Share on other sites
I would be grateful if someone would provide me a game tutorial which covers game logic.

Share this post


Link to post
Share on other sites
Never mind about this topic, I've buyed a book covering all this.

Share this post


Link to post
Share on other sites
Sign in to follow this