I am quite interested in the topic as well, but I guess one should begin with pretty basic, pure c++ stuff, get some background with OpenGL applications, learn to use an engine (like OGRE) and still will need to learn quite a bit (designing characters and levels/terrain which needs skills in applications like Blender, etc).
If anyone is doing these kind of stuff, it'll be nice of him to share =/
After all I solved the problems myself, with help and useful advices of koahnig (really thanks for that!)... I left the interesting fragments (with the problems) and posted the solutions, so if anyone meets up with the same problem he'd probably read what he need, learn and correct. What's the point of posting here the whole source of the game? If u want to play it then I can upload the Release...
First strait OpenGL isn't trivial and isn't for most people, just knowing how to program in C/C++ and the OpenGL api isn't enough you need a background in advanced mathematics. Also if your doing things in the wrong order or if your not in the right mode at the correct time you will end up with a different result than what you expected. When programming in OpenGL you have to think of it in a procedural mind set. Post a link to your complete source code if you want help.
QGraphicsView is something I would use for creating such game.
You can reimplement QGraphicsItem, so you get a DuckItem, where you can implement all the logic for moving a duck. You will get QMouseEvents directly to your item, so killing a duck is just a proper handling of events sent to your class.
Why would you want to do that? What platform are you targeting ? You can of course use any drawing tools to create pictures and save upload it. Remember qrc (mobile) is for small files.
[quote author="BrEaDFace" date="1303459182"]Is there any other way than drawing alot of pics as .png format and uploading with resource file?[/quote]
Yes they can. MeeGo is closely integrated with Qt and therefore with QML, and it's the official platform.
If you create apps using Qt/QML you can also reach other mobile platforms. There will be phones later this year. You can also run them on Symbian ^3, and Maemo.
As for is it the best for games. Probably not. There are other specialized libraries for games, which are better, but with Qt/QML you can reach the biggest audience, because it runs on so many platforms. As I heard there are unofficial ports of Qt to android, iPhone, WebOS and many more.
Not long ago I started working on a QML game "Sink Submarines":https://projects.forum.nokia.com/sinksubmarines for the "MeeGo Coding Competition 2011":http://talk.maemo.org/showthread.php?t=71561
You could join us. :)
In my opinion it is always easier to explain such kind of algorithm with a block diagram (espesially if it is executed by a single thread) :) You can also get inspiration for optimal solution from existing solutions for path finding algorithms such as the different implementations of the traveling salesman problem ;)
yes, but if i need do all mouse input in C++ i need do all draw with in C++ too. (if exists a way t get mouse input of a qml elementet in C++ tell me. I don't find one yesterday, only mouse global coordinates)
So, i will use qml for what?