Oware: Minor improvements 1. Remove buttons below 2. Add tutorial3 image 3. Add…

Authored by dmadaan on Jun 19 2017, 12:18 AM.

Description

Oware: Minor improvements 1. Remove buttons below 2. Add tutorial3 image 3. Add animation for seeds 4. Add rotation of board but not anchored apt

Details

Committed
dmadaanJun 19 2017, 12:18 AM
Parents
R2:26d4f0ab4715: Oware: complete two player mode
Branches
Unknown
Tags
Unknown
Restricted Application added a subscriber: jjazeix. · View Herald TranscriptJun 18 2017, 7:14 PM

we can still play after the game is won.
When it's the opponent turn and you click on your beans, there is the animation playing and causing the beans to go to the left side of the house. The animation is not "good" enough. We should see the move house by house (if possible when adding a bean and if they are won, when we remove them)

/src/activities/oware/Oware.qml
142

remove the images if you don't use them anymore.

we can still play after the game is won.
When it's the opponent turn and you click on your beans, there is the animation playing and causing the beans to go to the left side of the house.

Does that mean the shaking of beans? I added it to let the user know that it is not their turn. Should it be removed?

The animation is not "good" enough. We should see the move house by house (if possible when adding a bean and if they are won, when we remove them)

Yes, but it's possible to have an animation for each seed? It's added to the image of a single grain only but I am not sure if we can do for single seed?

we can still play after the game is won.
When it's the opponent turn and you click on your beans, there is the animation playing and causing the beans to go to the left side of the house.

Does that mean the shaking of beans? I added it to let the user know that it is not their turn. Should it be removed?

Yes, the shaking, it is weird, all the beans go to the left side.

The animation is not "good" enough. We should see the move house by house (if possible when adding a bean and if they are won, when we remove them)

Yes, but it's possible to have an animation for each seed? It's added to the image of a single grain only but I am not sure if we can do for single seed?

The aim is not to do a clone of the Gtk+ version but to improve it where we can. It may be more complicated but we could think of having one seed and play with animations. There is http://doc.qt.io/qt-5/qml-qtquick-repeater.html#itemAdded-signal and itemRemoved, maybe that can help?