Hello,
I follow this tutorial:
http://felgo.com/doc/howto-balloon-game/
Everything works apart from device with really low resolution (to test used LG E430 240×320, in Landscape mode width is 320px).
When I debug on that device don’t see any balloons.
In the end the issue is with MultiResolutionImage(Balloon.qml- btw works with device 320×480)
MultiResolutionImage {
id: sprite
source: "../../assets/img/balloon.png"
anchors.centerIn: parent
}
If I switch to Image:
Image {
id: sprite
source: "../../assets/img/balloon.png"
anchors.centerIn: parent
}
it works.
I suppose it happens because such low resolution is not supported out of the box(3 versions are supported: sd, hd an hd2 and they start with higher res).
For now I fixed that by adding in my main.cpp :
if (QApplication::desktop()->screenGeometry().width() < 480) {
vplay.setContentScaleAndFileSelectors(1);
}
doing this I force the fallback settings if resolution is too low.
Maybe it would be a good idea to inform somewhere in the docs what to do with low resolution and MultiResolutionImage ?
I am not seeing that edge case like this should be handled 100% but at least switch to default settings ? Use the sd (480×320) ?
Linux 64, Qt 5.4, Felgo 2.0.