Jump to content
  • Advertisement
Sign in to follow this  
AdamK

Source code help..

This topic is 3707 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

Hi, well im new to this and was just wondering if there is any source code around to help me. Im looking for source code for a game similar to Donkey Kong, like the platforms n the throwing of objects n jumping etc. I would just like to see some code for the game to help me understand it more. IF anyone has any links could you please let me know Thanks EDIT : Sorry, its for C++ and id say i was a beginner lol..

Share this post


Link to post
Share on other sites
Advertisement
ah yeah thanks for that link

but i was just going to look at certain bits of it..

just any websites that might have a donkey kong type code?

Share this post


Link to post
Share on other sites
Quote:
Original post by rip-off
Advice.


Yeah, maybe we shouldn't read other peoples source code, maybe we shouldn't read tutorials, maybe we shouldn't use the internet to gain knowledge, maybe we shouldn't be able to read books, maybe we should only allow a certain number of people to learn stuff, maybe...

Oh sorry getting a bit excited there! :D

Share this post


Link to post
Share on other sites
Quote:
Original post by marraboy
Quote:
Original post by rip-off
Advice.


Yeah, maybe we shouldn't read other peoples source code, maybe we shouldn't read tutorials, maybe we shouldn't use the internet to gain knowledge, maybe we shouldn't be able to read books, maybe we should only allow a certain number of people to learn stuff, maybe...

Oh sorry getting a bit excited there! :D


Do you have actual criticisms or are you just waving your hands around yelling "slippery slope!"?

Share this post


Link to post
Share on other sites
Quote:
Original post by marraboy
Quote:
Original post by rip-off
Advice.


Yeah, maybe we shouldn't read other peoples source code, maybe we shouldn't read tutorials, maybe we shouldn't use the internet to gain knowledge, maybe we shouldn't be able to read books, maybe we should only allow a certain number of people to learn stuff, maybe...

Oh sorry getting a bit excited there! :D


You missed the point. It is more a cost/benefit analysis of using source code as a learning material. The author's point is that looking at source code, especially source code not intended for an inexperienced audience, has little educational value.

Tutorials are also covered by the author, but he considers them more on a quality/quantity basis. There are a lot of bad tutorials, many of which are popular. He argues against tutorials because a beginner will not be able to tell the difference between good and bad tutorials.

While I agree with jpetrie on the above points, from a practical standpoint there aren't many other reliable options. If you aren't going to learn from a book (of course there are also many bad or outdated books - but it is easier to find reviews) you have to work with what is available.

Many people starting learning from tutorials, or source, and manage to teach themselves to the point where they can tell bad from good. Then they can go about unlearning all the bad habits they've picked up. Clearly this approach is inefficient. The point of the article is to help beginners understand the consequences of such a path.

We get many posts here from people who come straight from a tutorial, and have attempted to change the code and end up in a maze of errors. That they usually cannot progress from there alone is a testament to how little they understand about the subject matter, even after following the tutorial. I imagine that looking at source code would produce the same symptoms, or worse.

Share this post


Link to post
Share on other sites
Quote:


Do you have actual criticisms or are you just waving your hands around yelling "slippery slope!"?


Just waving my hands around yelling, although a yell is more like... YELL!!! :D

I agree with most points regarding source code, particularly copying and pasting (this is bad) but it all depends upon what you want to achieve - I also think that you can get good code, bad code, good books, bad books, good advice, bad advice... The article starts... 'I’m frequently irked by budding programmers deciding to waste their time writing bad tutorials about a subject immediately after gaining a basic understanding of it' - quite simple... stop reading tutorials and you won't get irked.

It's a little rich of the 'Scientific Ninja' saying don't read source code or tutorials but read my advice. ;)

YELL, YELL, YELL!

All I am saying is that before the WWW it was difficult for a lot of people to get the reference material (good and bad granted) offered today.

:)

JT



Share this post


Link to post
Share on other sites
Quote:

The article starts... 'I’m frequently irked by budding programmers deciding to waste their time writing bad tutorials about a subject immediately after gaining a basic understanding of it' - quite simple... stop reading tutorials and you won't get irked.

"I’m frequently irked by budding programmers deciding to waste their time writing bad tutorials..." Reading them isn't the irksome part, its the fact that other people chose to write them without properly understanding what they're doing. That entire paragraph is simply a reference back to a related article and a segue to the actual topic of the article.

Quote:

It's a little rich of the 'Scientific Ninja' saying don't read source code or tutorials but read my advice. ;)

"Don't do X," means "don't do X." It doesn't mean "don't do Y which bears only a passing and perhaps superficial resemblance to X."

Quote:

All I am saying is that before the WWW it was difficult for a lot of people to get the reference material (good and bad granted) offered today.

Which you're right about, but that's hardly the point being contested here; in fact it's entirely irrelevant because today is, in fact, today. It's not ten or fifteen years ago when good information was far harder to come by, so one's modern-day practices should not be using the assumptions of the past.

Quote:

Im looking for source code for a game similar to Donkey Kong, like the platforms n the throwing of objects n jumping etc.
I would just like to see some code for the game to help me understand it more.
IF anyone has any links could you please let me know

You're looking for the wrong thing -- you should trawl Google and the like for information about beginning game programming, or getting started writing platformer games, et cetera. You don't actually want to go looking for source code specifically, whether or not you agree with (or choose to take) the advice in my article. That will simply lead you to places like SourceForge and Google Code, repositories of open-source projects (including games). That code will almost assuredly be unhelpful for you. If you must seek out source code, at least seek out code that exists to attempt to help you learn -- this is usually the code that accompanies the demos and whatnot that show up with articles (or tutorials) on writing platform games or what have you.

There's some source code in the GDNet Resources section too, but it is horribly, horribly outdated.

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!