Is QT the right framework to use for simple 2D game in C++ [closed]
I want to create a simple "Mario-like" 2D game. Nothing too fancy, just a some kind of plubmer walking 开发者_JAVA技巧and jumping, some bad guys, user interference, few levels. Is QT the right framework to use? My friend suggested me Irrlicht, but that seems much more for 3D stuff.
Thanks for your ideas!
I don't think that QT is the right tool for 2D game development in C++, but you can try SDL.
Also, for future game development questions, there's a better StackExchange web site where you can probably get better answers: Game Development.
Qt can be used to make very complicated animations and graphics scenes (2D and 3D). There are tiny examples included in the SDK that you can use to base your work on, but remember you'll be programming in Qt, instead of something a tad more general like OpenGL.
Check out SDL
.
If you want a more OO API, check out SFML. SFML has more done for you in terms of design (a Sprite class, for instance).
Qt has a big library which provides a lot of features, you would be wanting to use Qt wholly rather than just for 2D drawing.
If you already know qt and are comfortable with it, then its way to go.
精彩评论