Browse Source

Arrumando tag errado

capellaresumo 7 years ago
parent
commit
a8aaecd470

+ 1 - 1
Classes/GameScene.cpp

@@ -371,7 +371,7 @@ void GameScene::createPowerUpBody(Color4B color, int tag) {
     physicsBody->setContactTestBitmask(0xFFFFFFFF);
     physicsBody->setGroup(-1);
     ball_draw->addComponent(physicsBody);
-    ball_draw->setTag(SUPERBALL_TAG);
+    ball_draw->setTag(tag);
     
     ball_draw->setPosition(width * rand_0_1(), height);
     power_ups->addChild(ball_draw, 20);

+ 3 - 3
Classes/GameScene/Paddle.cpp

@@ -23,7 +23,7 @@ bool Paddle::init() {
     doubleBody->setGravityEnable(false);
     doubleBody->setDynamic(false);
     doubleBody->setContactTestBitmask(0xFFFFFFFF);
-    double_paddle->setTag(RACKET_TAG);
+    double_paddle->setTag(PADDLE_TAG);
     double_paddle->addComponent(doubleBody);
     addChild(double_paddle);
     
@@ -38,7 +38,7 @@ bool Paddle::init() {
     normalBody->setGravityEnable(false);
     normalBody->setDynamic(false);
     normalBody->setContactTestBitmask(0xFFFFFFFF);
-    normal_paddle->setTag(RACKET_TAG);
+    normal_paddle->setTag(PADDLE_TAG);
     normal_paddle->addComponent(normalBody);
     addChild(normal_paddle);
     
@@ -53,7 +53,7 @@ bool Paddle::init() {
     half_Body->setGravityEnable(false);
     half_Body->setDynamic(false);
     half_Body->setContactTestBitmask(0xFFFFFFFF);
-    half_paddle->setTag(RACKET_TAG);
+    half_paddle->setTag(PADDLE_TAG);
     half_paddle->addComponent(half_Body);
     addChild(half_paddle);
     

+ 2 - 2
Classes/params.h

@@ -53,8 +53,8 @@
 // Power Ups Seconds Interval
 #define POWER_UP_INTERVAL 2.5
 
-
-//#define POWER_UP_PADDLE_SECONDS 10
+// Time to paddle back to normal size
+#define POWER_UP_PADDLE_SECONDS 10
 
 // Hours to lose level
 #define LOSE_IS 12

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 = "518885903.07127"
+            timestampString = "518887459.470865"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "413"
-            endingLineNumber = "413"
+            startingLineNumber = "350"
+            endingLineNumber = "350"
             landmarkName = "GameScene::caseSuperBall(Node *powerup_ball)"
             landmarkType = "7">
          </BreakpointContent>