Newbie in need of help!

Started by
6 comments, last by Xeon 23 years, 11 months ago
Hello, I have beeen trying to learn C for the past several months. I have learned several things about the language such as loops, arrays, pointers, and writing and reading I/O. However I am very anxious to start writing games and I am sick and tired of typing out boring code from the book which I bought. Anyways, I was wondering if any of you could tell me where I can find some source code for a simple game, such as tetris so as I may dissect the code and see how an actuall game works. I have looked through this site and have yet to find source code for a simple game. Any help would be appreciated
Advertisement
If you''re tired of typing up all the examples and learned about that sort of thing from your book- well, all I can say to you is too bad. If you were to look at just about any game, you couldn''t understand it yet because you have to know a little bit more than JUST C. Sorry to burst your bubble, but giving you the source to just about any game in windows will not help you at all. Keep with the C- your time will come soon enough.

GO LEAFS GO!
3D Math- The type of mathematics that'll put hair on your chest!
Actually, posting code can help alot, i learn better from code than from instruction...

and now im working on an OpenGL engine with realstic physics... (hard to explain, very expandable, built in shock obsorber handling; like enter the hight, radius, numebr of coils, and thickness of coils...and it handles it...)

And the only book ive really read was one on OpenGL...and then a few physics books, but those are really non related.
Why does the Air Force need expensive new bombers? Have the people we've been bombing over the years been complaining? -George Wallace To make mistakes is human; to stumble is commonplace; to be able to laugh at yourself is maturity. -William Arthur Ward
Actually, source code is how I learned Qbasic a whiel back
email me and i''ll send you all the source you want
or that i have anyway

adamm@san.rr.com
oh yeah.. if you dont ko how to check my profile, my email address is adamm@san.rr.com
adamm@san.rr.com
I think that source code is by far the best way to learn game programming. By analysing and modifying existing code you can learn far more than you can from most books.

Also, Xeon said that he had already spent months learning C, I think that he should be proficient enough by now to understand a simple game like tetris.

Jon Hobson
---------- JonHobson ----------

Really? Geez, I guess I''m just really weird then! If someone gave me the source to ANY game, I wouldn''t be able to figure out how the entire game was made so well that I could make one myself. Like, if someone gave me something like (assuming I knew NO C++)...

class Foo
{
public:
Foo();
~Foo();
void SetTimer();
};
void Foo::SetTimer()
{ }

if that was given to me and I didn''t know any programming, I couldn''t figure what that is for the life of me! To me, everything that happens in that really small piece of code would be jibberish if I didn''t know it. I know, he knows C, but the first time I saw Win32, it looked pretty alien with all the naming conventions. I mean, who would every know what LPCSTR mean without any kind of explanation?!


GO LEAFS GO!
3D Math- The type of mathematics that'll put hair on your chest!

This topic is closed to new replies.

Advertisement