switch(featureIndex)
{
case 2:
if (ball.status == Component.Ready)
{
console.log("LOL");
var aBall = ball.createObject(gameScene);
aBall.x = Math.floor(Math.random() * ((gameScene.width - aBall.width) - aBall.width)) + aBall.width;
aBall.y = gameScene.height / 2 - (aBall.height / 2);
}
break;
case 3:
if (ball.status == Component.Ready)
{
console.log("LOL");
var extraBall = ball.createObject(gameScene);
extraBall.x = Math.floor(Math.random() * ((gameScene.width - extraBall.width) - extraBall.width)) + extraBall.width;
extraBall.y = gameScene.height / 2 - (extraBall.height / 2);
var extraBall2 = ball.createObject(gameScene);
extraBall2.x = Math.floor(Math.random() * ((gameScene.width - extraBall2.width) - extraBall2.width)) + extraBall2.width;
extraBall2.y = gameScene.height / 2 - (extraBall2.height / 2);
extraBall2.linearVelocity = Qt.point(-10, -10);
console.log("FFF");
}
break;
default:
console.log("Hi, you're in default");
}