How can I read a game source code? (I don't know what this files are)

Started by
4 comments, last by mmakrzem 10 years, 10 months ago

Hi!

I'm starting to learn Java and one of the things I always wanted was to develop games. Now, I don't know a lot about, well, anything when it comes to programming, and much less videogames, I have concepts and understand other things, but I dont even know how to make GUI on Java for example... I have a good book about C,C++ and Java, but I didn't read it, I hope to read it soon.

I know that sourceforge and other pages have a lot of source code, and I would love to see them, see how they did things and etc. I have the JediAcademy (Star Wars) folder downloaded, but is just folders and files, I dont know how to read it or anything, I dont know if I need the engine or what.

Well... like I said, I don't know very much about this things, but I would like that someone could point my in the right direction, post a link, recommend a book, explain some things, etc.

Thanks. (Sorry for my English, second language xD)

Advertisement

There should be a code folder in there containing a file named JediAcademy.sln , open that in Visual Studio

The actual code are in files named .h and .cpp (can be opened in any text editor)

[size="1"]I don't suffer from insanity, I'm enjoying every minute of it.
The voices in my head may not be real, but they have some good ideas!

If you don't know much about programming, reading code from complex projects isn't likely to help you out all that much. Some code bases can be difficult to puzzle out even for veterans.

1) I have a good book about C,C++ and Java, but I didn't read it, I hope to read it soon.

2) I have the JediAcademy (Star Wars) folder downloaded, but is just folders and files, I dont know how to read it or anything

3) I would like that someone could point my in the right direction, post a link, recommend a book, explain some things, etc.

1) So you have books, but you have not read them yet. That seems like something you can fix.

2) Not surprising, since you haven't even read a book on the subject.

3) Since you asked for book recommendations, I recommend you read the books you already have. If for some reason that isn't possible, thousands of people have put together lists of books to learn from, your favorite search engine can find them. Some people recommend some books, some people recommend others. If English were your native language and you were asking about learning C++ I would recommend Accelerated C++ by Koenig and Moo, or C++ Primer 5th Ed by Lippman, Lajoie and Moo. Since those are not in your native language, perhaps you would be better served by something you can more easily understand.

Prior to going into a large project to try to puzzle through the code, I would definitely recommend reading your books and trying to create a few simple things yourself.

Once you have a few simple things running, use a debugger until you can understand every aspect of why that code runs, what order it goes in, and why.

After you know the following words and understand how they work in the debugger, you may be able to follow some of the larger projects, but even then it can be a lot of work to understand why some code is done where it is without math...

Polymorphism

Multi-Threading

Semaphore

Array

Linked List

Recursion

Pointer

So, I picked some things at random... but I figured that these are all good things to know what they are and how they work when reading through someone else's code, just because you will be at a level where some if it will make mroe sense then, hopefully.

Pick a game engine that has a good community backing it and start there. You'll have to learn to use the engine first before you are able to make a game though. So it is up to you which you want to learn first. http://devmaster.net/ has a good list of many different engines you can choose

This topic is closed to new replies.

Advertisement