Archived

This topic is now archived and is closed to further replies.

2D Engine...

This topic is 5467 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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...

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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!

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites