Sign in with
Sign up | Sign in
Your question
Closed

C++ 2D Game Engine

Last response: in Applications
Share
January 8, 2012 11:27:16 PM

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

More about : game engine

January 9, 2012 7:52:59 AM

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/

Best solution

January 9, 2012 4:52:27 PM
Share

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.
Related resources
January 10, 2012 1:32:42 AM

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.
January 30, 2012 11:12:56 PM

Best answer selected by venom4u.
January 31, 2012 2:23:29 AM

This topic has been closed by Nikorr
!