Thinking of starting a game.

Im not sure what cross-platform language i should you use and learn first. I have never used any cross-platforms before and dont really know which to choose from. I heard of SDL, OpenGL, and Allegro but, like i said, i have no clue which to choose. Any tips to which i should choose would be greatly appreciated.
SDL = 2d graphics library written in C (
SFML = 2d graphics library written in C++ (
Qt = GUI application framework (
OpenGL = 2d/3d graphics programming (
Allegro = 2d/(very limited)3d graphics library written in C (
Choose SDL or SFML. Allegro is bunz.
thats very upfront
Well it's the sad truth.
For 3D, I use OGRE, it's very fast and not too difficult, though there is a bit of boilerplate involved which is a bit of a pain. The main downside is that it only supports its own file formats for meshes, textures, animations, etc. but there are converters for things like Blender.
Definitely do 2D games, many 2D games, before moving on to 3D games.


That's like telling people they need to learn C before C++.
I don't know about that comparison.

Doing 2D games teaches you many useful techniques that can be used when you move up to 3D (especially how to program games correctly) but without having to deal with the steep learning curve 3D will first have.

Learning C teaches to not program in C++ most of the time.
Yeah I gotta disagree with you here Duoas (for the first and perhaps last time). Doing 2D games will teach you not only some programming techniques that will carry over into 3D games, but also the basics of games - Good gameplay, level design, interface design etc.

Though I agree with the C before C++ being ridiculous and I would never suggest that particular rotten egg.
the steep learning curve 3D will first have

understatement of the century :)

Many 3D libraries attempt to gloss the curve over, and what beginners are really left doing is copying and pasting code that they do not understand. High abstractions are nice and all, but it is imperative that the users understand what they are doing, which in almost all cases requires a bare minimum of a collegiate level mastery of linear algebra and a dumptruck load of jargon *before they can even apply a rotational affine transformation around a quaternion to a mesh before transforming to from model space, to world space, and finally to clip-space.

Advice: If you're going 3D - get a grip on the basics before diving into an abstraction such as OGRE, or you will probably feel overwhelmed. In fact, even with a firm grip on the basics, OGRE can still overwhelm.
Last edited on
Everything has a learning curve.

The things you need to know for 2D games are different than the things you need to know for 3D games. While there is some overlap, it is all fairly boilerplate stuff (loading and saving level data, character information, etc).

You all act like 3D is so much harder than 2D that the jump is impossible to make.

Doing 2D will help you if you have no experience with games, just to get the basics down and to experiment.

And you don't typically have to really know all that much math for 3D stuff -- you have to understand some basic affine transformations, but good 3D libraries will set everything up for you easily enough.

Don't take my word for it, though. (see post #18 -- direct link is broken)
Well I think it's safe to assume the OP has no prior experience with game programming.
Topic archived. No new replies allowed.