Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Game development with Qt: where to look first?

Tags:

c++

qt

So, I'm going to develop a Pac-Man clone with Qt. The problem is that I do not really know where to start.

I quickly take a look at the documentation and some demo. I also downloaded some game sources on qt-apps.org. And it seems that there is a lot of ways to develop a game with Qt!

In your experience, which part of Qt should I consider to develop a Pac-Mac clone ?

  • The Animation Framework
  • The Graphics View Framework
  • The Paint System
  • Qt Declarative

Any help would be appreciated.

like image 222
Pym Avatar asked Feb 08 '10 19:02

Pym


1 Answers

I think that QGraphicsView framework is the best way. Create a QGraphicsScene, some QGraphicsItems for the elements of the game. You have collision detection for free.

Most of KDE games are based on the QGraphicsView framework. It is a good fit for simple game development.

like image 66
Tadeusz A. Kadłubowski Avatar answered Oct 04 '22 05:10

Tadeusz A. Kadłubowski