Moving Objects in a Game
I am making a game which I need some objects to be moving in a similar manner to the balls in the game Zuma, how do I do this? I already have a graphic which is a twisty river, the objects should move following the flow of the river. I am new to QT language and require all the help I can get. Thank you.
For this kind of game I can recommend two ways for you:
Use the GraphicsView Framework, "examples":http://qt-project.org/doc/qt-4.8/examples-graphicsview.html, "description":http://qt-project.org/doc/qt-4.8/graphicsview.html
Use QML, "examples":http://qt-project.org/doc/qt-4.8/qdeclarativeexamples.html, "simple tutorial":http://doc-snapshot.qt-project.org/4.8/qml-tutorial.html
Using QML might be really fast to develop such game, but i think you're loosing a good opportunity to get a lot of knowledge about Qt itself.
Hi Gmaro, thank you for your help. However, I've been looking through the QML examples for a very long time.. Most of them have restricted X & Y axis movement, my river is very twisty and bendy, requires the objects to move in diagonals and in different angles. Is this possible with QML?