SRL Archive - C/C++ Help and Tutorials

What to use?


Neehosoft

2009-10-01 05:53:13

Im new to C++, and im learning to create a game with it. So this is what i have:
*3D - I can model, rig, and animate using XSI 6.5
*C++ Basics (i could not find much advancer tuts) - Loops, arrays, variables, constants, if thens, ext…
*2D - PhotoShop

This is what im looking for:
*A good 2D game i could port to 3D later in development (like from RS classic to RS2) - It could stay 2.5D (ie fallout)
*Sound package
*Networking - p2p becuase i dont have a server - what should i look into?
*Graphic Libary - I have been thinking about:
1)SDL - But the games built with it are not to advanced
2)OpenGl - This is looking Good
3)DirectX - I like direct X, exept windows is greedy
What should i learn, tuts should i read, ext. to go on from here?

I will write a tutorial for anyone who answers :)

fronty

2009-10-01 18:19:12

If you know how to use C-like part of C++, classes, references and templates, you pretty much know the language. The biggest problem with learning C++ however is the standard library and huge STL which it contains. Just grab some C++ standard library reference from net and start reading. :) IIRC Thinking in C++ Volume 2 is about standard library, and it is freely (and legally) available on net.

-
2D game to port: dunno

Sound package: You mean some sounds library? I'd recommend OpenAL or maybe SDL's sound library if you use it. With DirectX the choice is of course DirectSound or whatever it is called nowadays.

Networking: I think you should learn network programming and write your own p2p code that suits to your needs. If you choose to use some p2p library, you can run into situation where you have to change the way your program works or interfaces to keep the library working. If you want a network programming tutorial, check beej's site, or if you want some deep knowledge, read TCP/IP Illustrated series by Stevens. Volume I discusses different protocols of TCP/IP stack, volume II discusses 4.4BSD's TCP/IP implementation (which parts are btw used in Windows's networking code :p), and volume III teaches T/TCP, HTTP, UNIX domain protocols and NNTP if I recall correctly.

3D graphics with pure SDL is something no one should ever try. SDL for creating windows, maybe handling audio and/or networking, and OpenGL for 3D graphics. DirectX is the native choice for Windows.

-
I think tutorials are bad. If you really want to learn, books are the correct way. University/college libraries usually have very much good books, and if you are person who doesn't care about copyrights, you can get pdfs or chms from sites like <rotted>tvtncrqvn</rotted>.

boberman

2009-10-01 22:47:53

^ what fronty said.

If you are new to C++, I would recommend not starting with 3d or even 2d game programming. I know it sounds like fun, but it really isn't. Game programming is very complex (kind of like jumping into the ocean before learning how to swim). I would recommend instead starting with making simple text games, learn how to save them, maybe even network them. Then start with 2d games, and finally 3d games (Really, you might be able to skip 2d games all together as the difference between 2d and 3d game programming isn't THAT big IMHO. It is more math, but really not too bad).