Browse Source

Somente cai triple se necessario

capellaresumo 6 years ago
parent
commit
f60ade0c35

+ 3 - 1
Classes/GameScene.cpp

@@ -118,7 +118,9 @@ bool GameScene::init() {
 
 void GameScene::addAndThrowBall() {
     Ball* ball = Ball::create();
-    ball->setPosition(paddle->getPositionX(), PADDLE_ALTURA+BALL_SIZE);
+    ball->setPosition(paddle->getPositionX(), PADDLE_ALTURA+BALL_SIZE+0.1);
+    while (paddle->getPositionY() == 0.0)
+        ball->setPosition(paddle->getPositionX(), PADDLE_ALTURA+BALL_SIZE+0.1);
     ball->throwBall();
     balls->addChild(ball, 21);
 }

BIN
proj.ios_mac/RedCore.xcodeproj/project.xcworkspace/xcuserdata/capella.xcuserdatad/UserInterfaceState.xcuserstate


+ 3 - 3
proj.ios_mac/RedCore.xcodeproj/xcuserdata/capella.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

@@ -90,11 +90,11 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "../Classes/GameScene.cpp"
-            timestampString = "518889611.435639"
+            timestampString = "518889736.692334"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "337"
-            endingLineNumber = "337"
+            startingLineNumber = "338"
+            endingLineNumber = "338"
             landmarkName = "GameScene::caseSuperBall(Node *powerup_ball)"
             landmarkType = "7">
          </BreakpointContent>