Where are some good yet simple C++ game Tutorials?
Posted 21 September 2005 - 09:08 PM
Thanks in advance.
Posted 21 September 2005 - 09:49 PM
Don't be afraid to make mistakes while programming. If it can be written, it can be rewritten better. The important thing is to get something working and make it better. Rinse and repeat.
Learning the problem-solving skills required when making games now will save a lot of pain later when you're trying to think about how to implement something a lot more complicated, maybe something someone hasn't done before.
Posted 21 September 2005 - 10:42 PM
Posted 21 September 2005 - 10:57 PM
It can be found here. There is information about setting it up on a number of compilers and information about its internals and how to use it efficiently. What I would do is read a few of the articles on how to write pixels to the screen, then try to write a Pong game. It will most likely be one of the hardest things programming-wise you will ever have to do, being your first project.
I don't know how adept of a programmer you are right yet, so I'm not sure if I can direct you here right now knowing whether or not you'll be able to do it. Just keep at it and you'll get there.
Posted 22 September 2005 - 12:58 PM
SDL is nice because it works on multiple operating systems. So if you are learning to program in VC++ it'll work and if you are learning in DevC++ or in Linux it'll work well.
To create something like pong, you probably wouldn't write pixels directly to the screen, that would be pretty slow to draw every pixel of the paddle over and over. Instead you would blit a bitmap to the screen which you would move around and erase as you moved it. It shouldn't be difficult at all to make a basic white paddle in bmp format for use.
The worst part of tutorials for me is that generally the writers don't have an interest in explaining everything you are doing. A lot will just throw up the lines and expect you to understand them. So, I can try to help if there is anything you don't understand (and I'm learning this too so I'm no expert I'm sure others here can help you even better :P)
http://cone3d.gamede...ls/gfxsdl/index <--- is a page with 6 decent tutorials that are reasonably in depth. If for some reasons you aren't even understanding the non-sdl code here (like .. int array; ) then that means that you need to actually get some basic C++ tutorials. He doesn't really use any advanced C++ in the tutorials though so you won't have to worry about much if you know your basics.
Even if later on you decide you don't like SDL just the basic ideas will pretty much convert to anything else. I've been reading opengl tutorials that were made without sdl and writing them using sdl (for bmp image loading, creating the window, handling events) and it's pretty much the same whatever library you use for the basic stuff.
Posted 02 October 2005 - 06:29 PM
Posted 02 October 2005 - 07:25 PM
Posted 02 October 2005 - 07:27 PM
Posted 08 December 2008 - 04:02 PM
Wow, the guy probably has published an AAA title already, and is doing well within the company!!!
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users