开发者

Starting a 2D Game in Qt [closed]

Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines. It is not currently accepting answers. 开发者_开发技巧

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 8 years ago.

Improve this question

i'm trying to start a 2D game in Qt. I'm trying to find any tutorials on how to start developing it...

Any good tutorial there on internet? (If it's possible Qt 4.7+)


OpenGl by itself in Qt is not different from Opengl without Qt. The only difference is the way you create your OpenGl window.

You need to derive the QGLWidget class and overload the PaintGL-memberfunction. Take a look at the HelloGL example (which is already quite extensive).

Now that you have your OpenGl window look for normal OpenGl tutorials which are available all over the internet.


If you're using Qt for 2D games, I'd let Qt handle the OpenGL aspect of it and just use QGraphicsScene et al.


If you consider using a Qt/QML based engine, giving you the advantages of cross-platform support and many useful game components for handling multiple display resolutions & aspect ratios, animations, particles, physics, multi-touch, gestures, path finding and more (API reference), take a look at V-Play (v-play.net).

They also provide you with several tutorials for different skill levels and come with ready-to-use game templates for the most successful game genres like tower defense, platform games or puzzle games. (V-Play examples & demos)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜