Use qt helper function instead of checking values manually
Add box2d debugdraw element

When Box2dScene debug property is set to true, debug info will be drawn into scene.
Don't use signal/slot mechanism for updates...

.. so qt won't get angry at us.
Added a few improvements to the build system

* Moved all the QML plugin related files to src/imports/QuasiGame.
* Moved examples to root source dir and added option to build them.
* Added option to specify Qt5 installation path.

Signed-off-by: Tomaz Noleto <tomaz.noleto@openbossa.org>
Added installation instructions to README file

Signed-off-by: Tomaz Noleto <tomaz.noleto@openbossa.org>
Fixing location of QML plugin data files in source tree

Signed-off-by: Tomaz Noleto <tomaz.noleto@openbossa.org>
Make SpriteItem easier to use
Rename some exports

- Add 'Quasi' prefix to exports
- Change gameItems property to entities in GameScene

Signed-off-by: Roger Zanoni <roger.zanoni@openbossa.org>
Removing Background elements and replacing them with the concept of Layers

Please, check examples to figure out how to use them

Signed-off-by: Rodrigo Goncalves de Oliveira <rodrigo.goncalves@openbossa.org>
Adjusting static background example to fit the new layers model

Signed-off-by: Rodrigo Goncalves de Oliveira <rodrigo.goncalves@openbossa.org>
Adjusting animated background example to fit the new layers model

Signed-off-by: Rodrigo Goncalves de Oliveira <rodrigo.goncalves@openbossa.org>
Renaming static_background example to static_layer

Signed-off-by: Rodrigo Goncalves de Oliveira <rodrigo.goncalves@openbossa.org>
Renaming animated_background example to animated_layer

Signed-off-by: Rodrigo Goncalves de Oliveira <rodrigo.goncalves@openbossa.org>
Small fixes

That includes checking for created pixmaps, clearing some lists and so

Signed-off-by: Rodrigo Goncalves de Oliveira <rodrigo.goncalves@openbossa.org>
Renaming *Layers exports to follow the new standards

Signed-off-by: Rodrigo Goncalves de Oliveira <rodrigo.goncalves@openbossa.org>
Fix examples subdirectories in .pro file

Signed-off-by: Roger Zanoni <roger.zanoni@openbossa.org>
Making static_layer and animated_layer examples more simple

Also adding more useful information about (Static|Animated)Layers on the
examples

Signed-off-by: Rodrigo Goncalves de Oliveira <rodrigo.goncalves@openbossa.org>
Adding 'parallax_layers' example

This example shows how to use multiple layers to create a parallax effect

And bite my shiny metal ass
+----------------------------------------------------------------------------------------------------------------------------------------------------------------+
|                                                                             :oxxxoc                                                                            |
|                                                                          'k0l;''.;o0x'                                                                         |
|                                                                         cXl.........lXc                                                                        |
|                                                                         W.............W                                                                        |
|                                                                         W;...........;W                                                                        |
|                                                                         .Nk.........kN.                                                                        |
|                                                                           ;0kdlcldkX;                                                                          |
|                                                                             Modddo0M                                                                           |
|                                                                             M:::::OM                                                                           |
|                                                                             M:::::OM                                                                           |
|                                                                            .M:::::xW                                                                           |
|                                                                            ,M;:::::W                                                                           |
|                                                                            ,M::::::M                                                                           |
|                                                                            ,M::::::M                                                                           |
|                                                                            0K::::::W                                                                           |
|                                                                            MO::::::W                                                                           |
|                                                                            MO::::::M                                                                           |
|                                                                            MO::::::W                                                                           |
|                                                                            Wl::::::M.                                                                          |
|                                                                            M:::::::M.                                                                          |
|                                                                            M:::::::W.                                                                          |
|                                                                            MxkkkkxdW'                                                                          |
|                                                                        'xK0d;''',:ldO0O,                                                                       |
|                                                                      cNx;.............'xNc                                                                     |
|                                                                    :Xo.........'''''.....oXl                                                                   |
|                                                                  .OMOO0O000KKKK0000OKKK00KKWXc,.                                                               |
|                                                             .:oKKOdll::::::::::::::::::::c:cldkOXKo:'                                                          |
|                                                        .:dk0kdl:::::::::::::::::::::::::::::::::::ldxOOkl,.                                                    |
|                                                     :xKkdc::::::::::::::::::::::::::::::::::::::::::::::lx00l'                                                 |
|                                                  :xXxl::::::::::::::::::::::::::::::::::::::::::::::::::::::d00c.                                              |
|                                               ;d0xl:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::cdO0'                                            |
|                                            'lNxl:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::cX0.                                          |
|                                          ,Nkd::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::lNc                                         |
|                                         0N::;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;NX                                        |
|                                        O0:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::kX                                       |
|                                       xK:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::OO.                                     |
|                                      0N:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::KW                                     |
|                                     :Wc::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::M.                                    |
|                                    .W::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::Wc                                    |
|                                    Wd::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::OM                                    |
|                                   'M:::::::::::::::::::::::::::::::::lxdddddddlllllllc:::::::::::::::::::::::::::::::::::OM                                    |
|                                   NW::::::::::::::::::::::::::::ldO00kddddddddkkkkkkkOOOOOOO0O000OO0000000OO0000OOOOOOOOkKWcccc:,,,,,,,.......                 |
|                                   MN::::::::::::::::::::::::cxOX0xc:::::::::::::::::::::::::::::::::::::::::::::::::::::llllllldddddddxxkkkkkkXd:              |
|                                   MN:::::::::::::::::::;::x0Kxl:::ckkxxxxxxooooooooccccccc:::::::::::::::::::::::::::::::::::::::::::::::::::::lxKOc           |
|                                   MX:::::::::::::::::::d0Kdl::::k0MMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWNNNNNNNKKKKKKK0000000Okkkkkkkxxxxxxdoooooooc:::::ld0O:        |
|                                   MX:::::::::::::::::xWxl::::ckWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWMMMMMMMMMMMMMMMMMMMMMWKko::::ckX.      |
|                                   MX:::::::::::::;cOKk::::::dMMMMMMKKkdl;'''';;;;;llddkKKNMMMMMMMMMMMMMMMMMMMXklc;''... ..'';:cdONMMMMMMMMMMMMMMMNkc:::lWd     |
|                                   MX:::::::::::::KMd:::::::dMMMWWOc::::::::,              .:0MMMMMMMMMMMMMX:.                     .cxNMWMMMMMMMMMMMMo::;cOO    |
|                                   MX::::::::::::lWx:::::::lMMOl MMMMMMMMMMMk                 .lNMMMMMMMWd. K0KKKKKKKKKl               ,dMMMMMMMMMMMMMc::::Kk   |
|                                   MX::::::::::::Wl::::::::M0.   MMMMMMMMMMMk                    :OMMMx'    MMMMMMMMMMMx                 .xNMMMMMMMMMMWd::::KX  |
|                                   MX:::::::::::xW::::::::oW     MMMMMMMMMMMk                      :Md      MMMMMMMMMMMx                    kMMMMMMMMMMMc::;:MO |
|                                   MX:::::::::::Wx::::::::Nl     MMMMMMMMMMMk                       .Ok     MMMMMMMMMMMx                     XMMMMMMMMMMW:;::KK |
|                                   MX::::::::::cM:::::::::M      KKKKKKKKKKKd                         k0    WMMMMMMMMMMx                      0MMMMMMMMMMX:::oM |
|                                   MX::::::::::xM::::::::dM                                            Mk   ;;;;;;;;;;;'                       MMMMMMMMMWMd::cM |
|                                   MX::::::::::WM::::::::0W                                            :M                                      NMMMMMMMMMMW:::M |
|                                   MX::::::::::MW::::::::0W                                             KO                                     ,MMMMMMMMMMW:::M |
|                                   MX::::::::::MO::::::::xW                                             .M                                      MMMMMMMMMMN:::M |
|                                   MX::::::::::Ml:::::::::M                                              M.                                    .WMMMMMMMMMO:::M,|
|                                   MX:::::::::cM::::::::::W'                                             Mc                                    :MMMMMMMMMMl:::M:|
|                                   MX:::::::::cM::::::::::kN                                             Mc                                    MMMMMMMMMMMc:::M.|
|                                   MX:::::::::cM:::::::::::Ml                                            Mc                                    MMMMMMMMMMW::::M |
|                                   MN:::::::::cM:::::::::::WW              ..,,,cccccccc,,..             Mc                                   .MMMMMMMMMMx:::0X |
|                                   M0:::::::::cM:::::::::::lM    .,:cdkOXXMMMMMMMMMMMMMMMMMMMX0Odc;.     Mc        ..,:lddkOOOXKOOOkddc;,.    oMMMMMMMMMM::::No |
|                                   Mc::::::::::Wk:::::::::::NXNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN0koMd:cokO0XMMMMMMMMMMMMMMMMMMMMMMMMMNX0WMMMMMMMMWl:::XX  |
|                                   Mc::::::::::KW::::::::::::XWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWk::::xN   |
|                                   Mc:::::::::::NO::::::::::::KMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNl::::oW    |
|                                   Ml::::::::::::Wx::::::::::::cOXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMKo:::::0X.    |
|                                   Mc:::::::::::::NX::::::::::::::ckNNNNNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM0o:::::lW:      |
|                                   Mc::::::::::::::xNl:::::::::::::::::::::::::::::::ccccccccooooooooddddddxxxkkkkkkkO00000000KKKKKKKKXNNNNNNNXl::::ckKk.       |
|                                   Ml:::::::::::::::lNK::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::cOKO'          |
|                                   Mc:::::::::::::::::xWo::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::coOKx'             |
|                                   Mc::::::::::::::::::cKNo::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::cdOOdc.                |
|                                   Mc::::::::::::::::::::cNKKKKKKKOOOOOOOxxxxxxxooooooolclllll:::::::::::::::::::::::::::::::::::::::lxKKd,.                    |
|                                   Ml:::::::::::::::::::::::::::::llllllldddddddxkkkkxxOOOOOOOKKKKKKKKKKKKKKKKKKKKKOOOOOOOkxxxxxxxkK0o;                         |
|                                   Ml::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::ccccccclooooMMc.                             |
|                                   Ml::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::MM                               |
|                                   Ml::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::MM                               |
|                                   Ml::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::MM                               |
|                                   Ml::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::MM                               |
|                                   Ml::::::::::::::::::::::::::::oxxxkOkkOOOOOkkkkOxxxxkkkNkkkk0OOOOO0OOkOkkxxxool:::::::::::::MM                               |
|                                   Ml:::::::::::::::::::::::::x00cM''....                 W            .....''':ookWNKOkk:::::cWW                               |
|                                   Ml:::::::::::::::::::::ck00l.  M                       W                        MX:okKkOKKOkc'                               |
|                                   Mc::::::::::::::::::cxXk,.     M                       M                        MXxoc,..                                     |
|                                   Mc:::::::::::::::::xN;.        M                       M                        M0                                           |
|                                  .M::::::::::::::::oNk.          M                       M                        M0                                           |
|                                  .M:::::::::::::::kX.           .M:oodxxdxddxxxdddxdddxddWdddddddddxdddooc::,,,.. M0                                           |
|                                  .M::::::::::::::lW;,;ldxOO0ONXKOM,...                X0OW0OO00        ..'''::lookM0                                           |
|                                  .M::::::::::::::NMxo:''..  .MKKKKXXXW                XXdddxdKM                xxxMNx'                                         |
|                                  .M::::::::::::::Mc          MxddddddM                XXdddxdXM                MWxxxMc                                         |
|                                  .M:::::::::::::xW           MxddddddM                XXdddxdXM                MWdddMc                                         |
|                                  .M:::::::::::::Md           MxddddddM                XXdddxdXM                MWdddMc                                         |
|                                  .M::::::::::::;Mx           MkkO0OOOM                XNkkkkkXM                MWkkkMc                                         |
|                                  .M::::::::::::;NO           odd0M::::                :ooMooook                cooMXo.                                         |
|                                  .M:::::::::::::lMcc;;;;''''....oM...                    M                        M0                                           |
|                                  .M::::::::::::::XN.;;;;llllxxxxXWkxxOOOO0OOOOOkkkkkkkodkWkxoookkkkkkkkOOOOOOOOOOOM0                                           |
|                                  .M::::::::::::::cXo            oM                   ... M .....                  M0                                           |
|                                  .M::::::::::::::::Xo.          oM                       M               .,;:oddkkNX.                                          |
|                                  .M:::::::::::::::::kNo.        oM                       M     ... ..:x0XOkxolc::::lKx                                         |
|                                  .M:::::::::::::::::::xX0o,.    oM                     .;Wok0KKkOKMXXxl::::::::::::::NK                                        |
|                                  .M::::::::::::::::::::::lxO0xdckM..               ,dxOxdllc:cd00ko::::::::::::::::::lM.                                       |
|                                  .M::::::::::::::::::::::::::::okk00KK0O0kkkkoooolNOl::::::lOXOc::::::::::::::::::::::xW                                       |
|                                  .M:::::::::::::::::::::::::::::::::::::::::clllOWl:::::ckKOo::::::::::::::::::::::::::M                                       |
|                                  .M:::::::::::::::::::::::::::::::::::::::::::::Wo::::xNKl:::::::::::::::::::cldkkkOO00WOlcccc,,.                              |
|                                  .M:::::::::::::::::::::::::::::::::::::::::::::M::cONOc::::::::::::::::cxOKX0kxdoolccccloooodxxN:                             |
|                                  ;Mollllcccccccccc::::::::::::::::::::::::::::cKWxKKo:::::::::::::::cd00Odo:::::::::::::c::::::::NO                            |
|                                :xXddddddkkkkkkkkkk000000000K0KKKKKKK00000OkkkXKWNxc:::::::::::::::dXXkc::loddOO0000KKKXKNKo:::::;cWOc                          |
|                            .c0Kd;........................................;;KXllMc::::::::::::::dKXkoxKKXK0kkdoll:::::::::lK0l:::::KNdXd.                       |
|                         .lOkc..............................................M::XK::::::::::::d0KKK00kdl:::::::::::::::::::::xNd::::0W::OW                       |
|                       lXO:................................................dN::dWo::::::::l0WMWXkl::::::::::::::::::::::::::::M:::kW::::ON                      |
|                    ,0Kl...................................................WO:::dX0o::::kKWWXx::::::::::::::::::::::::::::::::W0KXkl:::::M                      |
|                 'xOo'.....................................................WW:::::o0Kd0WXOd:::::::::::::::::::::::::::::::::::Wolcl::::::W'                     |
|              .dKd'.......................................................,WM:::::::kNkl::::::::::::::::::::::::::ccodxkk00KKXX0000Wc::::0N                     |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------+
Signed-off-by: Rodrigo Goncalves de Oliveira <rodrigo.goncalves@openbossa.org>
Adding some performance improvements

Specially on the huge memory consumption

Signed-off-by: Rodrigo Goncalves de Oliveira <rodrigo.goncalves@openbossa.org>
Exposing the 'order' property of QuasiEntity (GameItem) to QML

Conceptually, it's just a wrapper around the z() and setZ() functions

Signed-off-by: Rodrigo Goncalves de Oliveira <rodrigo.goncalves@openbossa.org>