Sign in to follow this  
Ghostly

Anyone have one tip for a beginner programmer?

Recommended Posts

Hi all,

I just started learning C++, got myself the C++ for dummies book that has 7 "minibooks" which go thru the basics of C++ programming.
i do have a couple questions if anyone would care to answer them.
First of all I want to make a 2D RPG/SideScrolling game, what API do you suggest?
Also i want to make a audioEditing and music creation software, what API would be suggested for that?

Edited by Ghostly

Share this post


Link to post
Share on other sites

[quote name='Ghostly' timestamp='1357091079' post='5016532']
C++ for dummies book
[/quote]

 

Those dummy books typically dont cover everything, I am not sure if there is even a up to date version for C++, im not saying they are bad, they imo are excellent basic books and have a really decent way of explaining to beginners but you might want to consider a more advance book after reading it and practicing a lot before you consider making a game / audio editor.

 

[quote name='Ghostly' timestamp='1357091079' post='5016532']
First of all I want to make a 2D RPG/SideScrolling game, what API do you suggest?
[/quote]

 

This section is flooded with questions much like this, you will likely get different answers for different reasons, most of the reasons have been mentioned in other threads and theres usually about 3 "what shall I pick?" threads or similar created a day.

 

directx, opengl, sdl, sfml, ogre, panda3d etc. They all have their pros and cons, theres obviously other options, some that require minimum or no programming.

 

Im a DirectX fan but I think its overkill for what you require

 

[quote name='Ghostly' timestamp='1357091079' post='5016532']
Also i want to make a audioEditing and music creation software, what API would be suggested for that?
[/quote]

 

This could be achieved with Fmod however im not certain, I havent done much work with audio programming but if I were I would probably look to see what fmod can offer

 

As for making apps, while this may not be the best option based on your language choice, I would recommend WPF, never used Qt but I guess thats good too.

Share this post


Link to post
Share on other sites

If you want some help with the game or need to bounce some ideas , you can ask me-  or add me on skype.

I am currently refreshing on Java to make a browser mmo, so we are in the same position. :P

 

FL studio is a decent audio editor. Ive never used it for making custom game sounds though.

Share this post


Link to post
Share on other sites
Just remember though that Qt doesn't use standard C++ (it requires preprocessing by an external tool like qmake) which is a little tacky and may lead to maintainance issues in years to come. For this reason I suggest wxWidgets (or gtk(mm) if you only intend to target UNIX.)

Since the C++ language is pretty standardised and stable, the dummy books will probably still help but I highly recommend "The C++ Programming Language" by Bjarne Stroustrup. (The dummy series of books might be better for "mid-code reference" however).

As for sound... dunno, I like OpenAL and libogg for playing sounds but it seems like you are planning to do more advanced things than that :) Edited by Karsten_

Share this post


Link to post
Share on other sites

One beginners tip? Comment your code as you're going along.

 

Coming back to a project a year later and trying to figure out what the heck you were doing back then when you wrote it is never fun (and wastes time). If you take a moment to add method comments describing what the method is for, what algorithm it's using and maybe a link to any websites you've been learning from then it'll be a good habit to get into. A line or two is often all it needs.

 

This might not seem important now but there are a several reasons why this habit will help in the long term:

- Memories are bad, so anything you can add to speed up work on old projects will help (or when reusing work from old projects).

- You'll get better. A year later and you'll probably be a completely different programmer. What made sense when you wrote it often looks simple, silly or confusing compared to what you're capable of now.

- People coming to work on your projects will have an easier time getting up to speed.

- Employers like to see evidence of good commenting in your code portfolio (at least they do where I work).

 

This is true regardless of which language you decide to work in :)

Share this post


Link to post
Share on other sites

Think in terms of compartments where each is a kind of module which could in the future be removed as a section of code and replaced with better or different in the future. Keep an index of work done in the game source code with reference numbers to the code lines, which can be more detailed than commenting but use brief commenting as well in your coding.  You should be able to copy such modules for future games or replace them in the same game to transform it. If done well, these changes should take hours, minutes,  or even seconds.  Plan early to use interfaces as a habit of enabling your own plug-ins or third party plugins, even if very simple in the first few games.  You have no idea yet how much this will accelerate your capabilities. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this