Search code examples
qtqgraphicsview

QGraphicsView for 2D RPG


I would just love to ask a question about the possibly of creating a 2D RPG game in Qt QGraphicsView

A game similar to battle heart - http://www.youtube.com/watch?v=0VqlJ_AvFS8

Why am thinking of using Qt?

  • Qt is cross platform, and the support for mobile platforms like iOS and Android is increasing fast
  • I want to save the image on HD as SVG
  • I want to render the images on the fly ( For the example, when the game is loading ) into pixmap images for better performance after scaling them to the appropriate screen size ( So we cab have a ++, better performance, and infite support to any screen size )

What do you guys think about Qt? Do you have any other good options,

Qt make converting SVG to PNGs as easy as it could be, so that's the killing feature why am sticking to Qt

Bests


Solution

  • I've done this, and I can confirm that Qt is a perfectly good option, as long as you're not particularly concerned with download size (you're probably going to end up with a minimum of about 30 megs). You might consider looking into QML for handling your UI animations, as it's particularly well suited for that sort of thing.

    I would strongly recommend using the OpenGL 2 backend, as it's fast, and it allows for GLSL shaders, which are good for special effects. It's also possible to use a QGLWidget as the background so you can do direct opengl drawing if needed.

    Edit: Source is available at https://github.com/lendrick/Orange-Engine/wiki