Closed Solved

C++ 2D Game Engine

I am using DevC++ and need a good 2D game engine for a few projects I have in mind. I am looking for something that is free (open source), easy to understand, has fast code implementation, backed by solid hardware acceleration (OpenGL preferably), and has good document / tutorials available. I have been recently learning Allegro5 via creation of a Windows screen saver and found it to be very slow to implement due to inconsistent documentation. I am hoping that there is something better out there.

Thanks for any info
6 answers Last reply Best Answer
More about game engine
  1. Hard to recomend anything, since today even 2D games are mostly made using 3D engines (better hardware optimisation). You could try using this: http://www.libsdl.org/
  2. Best answer
    venom4u said:
    I am using DevC++ and need a good 2D game engine for a few projects I have in mind. I am looking for something that is free (open source), easy to understand, has fast code implementation, backed by solid hardware acceleration (OpenGL preferably), and has good document / tutorials available. I have been recently learning Allegro5 via creation of a Windows screen saver and found it to be very slow to implement due to inconsistent documentation. I am hoping that there is something better out there.

    Thanks for any info



    First off, I would strongly recommend you stop using DevC++. It's old, buggy, unsupported and really not that great to start with. When it came out it was one of the only free alternatives, but now you can get free versions of Visual Studio, as well as free C++ ides that are cross platform ( and way more capable than DevC++ ) in the form of Code::Blocks, Eclipse or the excellent Qt Creator.


    As to your direct question, SFML is probably the perfect tool for what you want to do. It's the most modern of the 3 major 2D libraries and uses OpenGL behind the scenes. That said, most of the options are available in this getting started guide's C++ section. It also contains links to better IDEs than DevC++. ;) That same site has a tutorial series on creating a game from scratch using C++ and SFML. That might be a good place to get started, or at least, get a feel for SFML.
  3. Serapth said:
    First off, I would strongly recommend you stop using DevC++. It's old, buggy, unsupported and really not that great to start with. When it came out it was one of the only free alternatives, but now you can get free versions of Visual Studio, as well as free C++ ides that are cross platform ( and way more capable than DevC++ ) in the form of Code::Blocks, Eclipse or the excellent Qt Creator.


    As to your direct question, SFML is probably the perfect tool for what you want to do. It's the most modern of the 3 major 2D libraries and uses OpenGL behind the scenes. That said, most of the options are available in this getting started guide's C++ section. It also contains links to better IDEs than DevC++. ;) That same site has a tutorial series on creating a game from scratch using C++ and SFML. That might be a good place to get started, or at least, get a feel for SFML.


    Regarding my choice of IDE:
    I've tried going to other IDE's with little success. I have used Visual Studio ~1yr ago and hated it and when i tried Code::Blocks out i never could get it set up to compile correctly even after ~20 hr of trial & error and Google searches. I haven't had a chance to really try Eclipse out (other then playing with Java some) so I may go that route but last time I looked around I ended up reinstalling DevC++ :??: . I am trying to ease into the C syntax as I come from ~8 years of various BASIC dialects.

    Thanks a million for the links on the library by the way. It looks as if SFML is a clear choice. Also if you have any more recommendations on IDE's feel free.
  4. http://www.libsdl.org/
    http://www.ggi-project.org/
    http://clanlib.org/wiki/Main_Page

    Of those SDL is "like" direct draw. GGI is right up against the primitives. Clan lib is the most high level, full featured of the three.

    I would suggest checking out Clanlib.
  5. Best answer selected by venom4u.
  6. This topic has been closed by Nikorr
Ask a new question

Read More

Programming Engine Games Apps