New to Game Programming

Started by
6 comments, last by eedok 15 years, 8 months ago
Hey, well as the title says i'm new to game programming, but not new to programming. The thing the more i read where to start the more i get confuse. Well i can programm in c/c++, J2SE, some prolog, scheme, J2ME, C#, PHP, etc to name some, but the thing is still im stuck on where to start, for what i have read c++ would be my choice since im already good at programming. So i just want to start with some 2d game, like some tutorial i read tetris or some similar, but I have trouble to choose what type of graphical library I will use or I/O library, sound library. I think i can use OpenGL or Direct3d or w/e but I just want something simple on that part just to focus first on the programming of the game engine, colisions, physics, etcetera. Well like whoever reads this can see I have a mess on where to start... should I learn Python?? for gaming i dunno. Well I would aprecciate some answer from someone that already walked that path :D. Bye
Advertisement
Try DirectXTutorial.com It's straight from the SDK IIRC, and should help you with the basics of 3D programming. If you want (EDIT) 2D, just draw everything on the same Z axis.

That's what I'm going through right now. It's definitely not the best solution, but it will get you started in the right direction.
"I'd rather know one thing, no matter how ordinary, than discourse endlessly on great issues." -- Galileo
Take a look at XNA ... it's a free API from Microsoft which works on Visual C# 2005 Express which is also free.It kinda fits the bill ... it lets you concentrate on the game programming part.And it's based on DirectX.

I've posted these sites in another forum but I guess posting there is no problem if I post them again :


http://creators.xna.com/ - has video tutorials that teach you how to build both a 2D game as well as a 3D one from scratch.

http://www.xnatutorial.com/ - teaches you the basics of C# and then XNA but it's XNA Game Studio Express... there are some differences

http://www.riemers.net/ - very good site ... lots of tutorials on several subjects
http://www.ziggyware.com/news.php - also a very useful site
I'd also recommend XNA, for what it's worth. You'll have to pick up C#, but if you know C++ and java, you'll find C# a delightful bastardization of the two.
[size=2]Darwinbots - [size=2]Artificial life simulation
You might try SDL. It's very simple, and pretty easy to use. It's at least good for getting your feet wet while you find a better library. The biggest issue is that it doesn't have hardware acceleration, so it's not as fast as some other libraries and doesn't have certain cool features (rotation and scaling, at least). But if you're just starting, that's fine anyway.

Picking up python wouldn't be a bad thing anyway. From the size of your list, I'm surprised you haven't already! [smile]

Don't worry about "the programming of the game engine". Clicky.
Thanks for the help guys. Great pointers on where to start. :D
I know OpenGL is kind of dying, I am not using it anymore either. But for starting, you might take a look at nehe.gamedev.net

There is nothing simpler than that. You will focus on your game instead of the graphical.

OR, if you are on Vista. Use DX10 all the way. With DXUT you can create the window, init the device, easily render 2D sprites with a super tiny code.
Just get their SDK (DirectX10 SDK) and read it all (One night reading and you are done.) DXUT do the render call and timing for you. Then I would suggest fmod for sound since it's very easy to setup and use: www.fmod.org
I started programming using Java2D with J2SE

Here's a book on the subject

This topic is closed to new replies.

Advertisement