Ubuntu Pastebin

Paste from Daniyaal Rasheed at Mon, 21 Dec 2015 20:16:29 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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");
}
Download as text