Jump to content
  • Advertisement
Sign in to follow this  
soitsthateasy

Anyone want to help me out!??!?

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

Sooooo... If someone could help me out please!!! I've been looking online for AGES and I still can't find a good c++ with Allegro/SDL 2-d side-scroller!!! If anyone could make a tutorial/post a heavily commented source code for a mario clone/any side scroller I would be SOOOOOOOO happy!!! I have wanted to make a mario clone for ages and I've been learning c++ for about 6 monthes. I have what I would call a basic knowledge of it (I've covered classes, functions, arrays, strings. basic stuff really.) Would anyone mind telling me what I should learn now and also what game library thingy should I learn. (Allegro/SDL I'm not really sure what else...) Sorry if I'm really vague and un-clear, I'm a total noob!!! BTW, PLEASE PLEASE PLEASE no one say something like "Go learn more C++" or something to that effect. I'm going as fast as I can because I'm in school/study from 9 A.M until 7 P.M so I'm fully pre-occupied with exams and all. If someone would post a REALLY heavily commented code for a side scroller and tell me what I should learn I will study that until I understand it completely. Thanks for reading my way-to-long post and if you comment, better again!!!

Share this post


Link to post
Share on other sites
Advertisement
This game is kinda bad LOL but it is a side scroller and open sourced

http://members.shaw.ca/patricktuckey/Terrible_Land/

Theres a bunch of other ones here:

http://www.libsdl.org/games.php

Share this post


Link to post
Share on other sites
Well if free time is luxury then I would say not "go learn C++" but go learn python and pygame.

C++ if a fine language but it need a much bigger commitment than python.

Of course even with python , making a mario clone is not ideal and will be proven too difficult for you. You are better with a much smaller project that you can expand slowly.

So my advice is start from extremely easy and basic and move up to something more complex slowly. Give time to yourself to learn and most important to understand. Learning and understanding is two diffirent thing both highly important.

I dont think that seeing source code will help you much if you dont understand programming.

Share this post


Link to post
Share on other sites
I believe the book Game Programming All in One actually has a chapter or 3 on making scrollers with allegro. Source code included. Covers the use of Mappy for making maps and levels and then it covers timing and scrolling and junk. Might want to look into that book.

http://www.amazon.com/Game-Programming-All-Jonathan-Harbour/dp/1598632892/ref=sr_1_3?ie=UTF8&s=books&qid=1259962385&sr=8-3

a link to the book.

Share this post


Link to post
Share on other sites
In my opinion, I'd be able to understand the source code, I just can't find any!!!
I would like to learn some other language at some stage but for the minute, I'd like to focus on C++. @Atrix256, I'd like if I could manipulate and fool around with the source code on a game, not sure if something like that exitsts, but...

Thanks for yere input!!! Any thoughts on SDL or Allegro or what?
Also, now that I think of it! I'll probably be getting some books for christmas, any ideas for c++ or whatever language you'd reccomend for graphics 'nd all???
Thanks again!!!

Share this post


Link to post
Share on other sites
If what you're after is getting a chance to look at code so you can learn the concepts behind making a game (and specifically a 2d platform game), you could look at some C# code.

At the XNA Creators Club downloads page, you can download Visual C# Express and XNA Game Studio 3.1.

From there you can use the Platformer starter kit that is automatically installed with the above downloads. It is a fully functional platform game.

And this tutorial of sorts, walks you through the code and how it all interacts, as well as some suggestions about expanding the game with hints on how to go about doing so.

You'd have to translate those concepts over to C++/SDL on your own, but ultimately that's part of programming.. taking a concept from a different language or with no code at all, and making work in your language/api/system.

Share this post


Link to post
Share on other sites
thanks very much guys!!!

I looked on amazon and I saw a book called Game Programming All In One Third Edition by Jonathen S. Harbour...
Any thoughts on it???
(link here!!! opens on a new page)

Share this post


Link to post
Share on other sites
http://en.wikipedia.org/wiki/Blob_Wars

It's GPL, they even have some SDL game tutorials in their homepage:
http://www.parallelrealities.co.uk/blobWars.php

Share this post


Link to post
Share on other sites
Quote:
Original post by soitsthateasy
I have wanted to make a mario clone for ages and I've been learning c++ for about 6 monthes. I have what I would call a basic knowledge of it (I've covered classes, functions, arrays, strings. basic stuff really.)
You're listing your experience in terms of what language features you've learnt. In my experience when that's all someone lists, they often don't have a very strong knowledge of the language yet.
When you've implemented certain types of data structures and algorithms, and used them to make certain kinds of useful programs, then you have a better understanding of the language. The concepts tend to stick a lot more when you have to use them to achieve some other purpose. Learning how things work doesn't equal experience using them.

So do tell us what kinds of programs you have written etc. For example, you might have written a sudoku solver, or you might have written a blackjack game, or you might have written a bitmap loader, or a linked-list. Anything like this shows us lots more about your skillset. For example, a Sudoku solver would tell us that you're comfortable with arrays and recursion, amoung other things.

Share this post


Link to post
Share on other sites
Quote:
Original post by soitsthateasy
thanks very much guys!!!

I looked on amazon and I saw a book called Game Programming All In One Third Edition by Jonathen S. Harbour...
Any thoughts on it???
(link here!!! opens on a new page)


I think you need to have experience with object oriented programming, data structures(containers) and inheritance first before you think about making a game.

Don't waste your money on that book. It's boring. Do it from scratch or you won't learn a thing.

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!