Browse Source

Somente cai triple se necessario

capellaresumo 6 years ago
parent
commit
d58addb659

+ 1 - 1
Classes/GameScene.cpp

@@ -119,7 +119,7 @@ bool GameScene::init() {
 void GameScene::addAndThrowBall() {
     Ball* ball = Ball::create();
     ball->setPosition(paddle->getPositionX(), PADDLE_ALTURA+BALL_SIZE+0.1);
-    while (paddle->getPositionY() == 0.0)
+    while (paddle->getPositionX() == 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


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

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