Advertisement

2D Engine...

Started by December 24, 2002 08:31 PM
2 comments, last by AtomicToxin 21 years, 10 months ago
What language would be the best to make a decent 2D game engine? SDL? I''m not sure, after I''m done learning C++ I wana learn a another language and start on a 2D game engine, so, any advice would be nice...Thanks, bye...
I''d go with SDL or Allegro.
Either one can do 2D very easily.
(I find allegro to be easier though)

Look over the docs for both, see which style you like better.
SDL is more structured imo (It''s newer. Allegro ''evolved'' to what it is now, and so is messier), but allegro is simpler (It does some things automaticly that you have to do yourself in SDL, mainly converting your surfaces)

DirectX is also an option, as is OpenGL. I''m very familar with DirectX, and OpenGL seems kinda overkill. But it is possible.
Advertisement
I just wanted to make sure you are clear about the difference between a language and an API. C++ is a language, SDL is an API (application programming interface). You still use C++ to program, but you make calls to functions that have already been written for you and do things like draw a bitmap on the screen. OpenGL, SDL, Allegro, DirectX are all APIs. Actually, DirectX is a collection of a whole bunch of APIs. Now to answer your question, I would say SDL is a good choice. Good luck on your engine!
So far as language, check out my 2d sidescrolling demo (its a Java applet) at:

www.geocities.com/nonnus29/unionjack/test.htm

The source is around somewhere.

[edited by - nonnus29 on December 24, 2002 12:01:46 AM]

This topic is closed to new replies.

Advertisement