Archived

This topic is now archived and is closed to further replies.

buck71

Beginner's dilemma

Recommended Posts

Hello I have been learning C for some time now and have got to the point where I want to start working on my own basic game, something like tetris or whatever. I can''t find any tutorials or books though that explain how to do this in C. What should I learn next? DirectX? Is there a good games/graphics book which uses C? Does anyone have any tips here? Eventually I would like to make something for the Gameboy Advance, or something like that anyway. Any help would be really great Buck71

Share this post


Link to post
Share on other sites
Yes, you will probably want to learn DirectX - at least some parts, if not all.
A great grounding in DirectX can be found in Tricks Of The Windows Game Programming Gurus, although it is a little dated now. I can''t think of any others offhand unless you want to learn from the Microsoft documentation (it ain''t that bad, but might be a little overwhelming for a DX beginner). You could always try looking at the site NeXe, which has some DirectX tutorials on it.
Starting on a tetris-like game is a reasonable idea, since it is fairly simple and can teach you a bunch of things. Just don''t call it Tetris or make it exactly the same because you may get into legal wranglings.

-Mezz

Share this post


Link to post
Share on other sites
Thanks Mezz

Do you know of any books which would enable me to continue in the direction of making games but build on what I have learned in C?

buck

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
It sounds like you should get your hands on a copy of "Windows Game Programming For Dummies". It´ll teach you the basics of 2D game programming using C and DirectX.

PJ

Share this post


Link to post
Share on other sites
Altough C is good, it would eventually be a wise choice to migrate to object oriented programming, not only it offers tons of benefits to programmers with classes but since its a standard now you should think seriously about it. Of course there is still plenty of old school guys out there using Ansi C. But trust me i faced the choice not long ago, and i found that adopting C++ is a really good thing. Btw i have game programming for dummies and it is very good for beginers and its in C, also if you are interrested in OpenGl, OpenGl game programming has plenty of both C and C++, giving a view on the two ways of doing things.

May the code be with us !

Share this post


Link to post
Share on other sites
Lol... I would say DL the DirectX 8 sdk (given that you have a good compiler, like MS Visual C++ 6), and play with a few of the examples. I''ve been slowly building a DirectX 8 game now for a couple months, and it''s still less than 1000 lines of code. No books- just reading through the 50+ examples that came with Dx.

-Tok. (Guess that makes me a facist, huh? )

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
*Howdy Kids, Do /YOU/ know what time it is? It''s tangent time* -Baldor the Bold

Share this post


Link to post
Share on other sites
I would also have to recommend trying both out and choose the one that suits you best. Nehe is a good one for OpenGL and Nexe is a good one for DirectX. If you do a web search, you can find about a dozen web sites for either API. Good luck!

Share this post


Link to post
Share on other sites
quote:
Original post by Tok
(Guess that makes me a facist, huh? )

Not necessarily. For example, I only use Direct3D for graphics (which is another sin of the API fascists; too quick to say "don''t use DirectX, use OpenGL" and leave the poor n00bs asking how to do joystick input in OpenGL) but I recommend everyone to try both or more; I evaluated OpenGL, SDL as a wrapper, Direct3D, CDX as a wrapper and a bunch of engines as well. I settled on vanilla DX.

Besides, I hate writing graphics code.

This is not a plug for DirectX:



I wanna work for Microsoft!

Share this post


Link to post
Share on other sites