cocos2d fruit ninja parabola math
问题 i am making a game similar to fruit ninja. birds flying down the water and then up (just like fruits up side down) but some of the birds fly too far and the others too near. can someone check my code? vy should quite close to each other.(vx is not a problem) static float tuna = 10.0f; -(void) reset { float vy = 0.0f; float vx = 0.0f; int sign = 1; if (CCRANDOM_0_1() >= 0.5) { sign = -1; } float hurry = 0.0f; if (CCRANDOM_0_1() <= 0.1) { hurry = 1.0f; } switch (birdType) { case BirdType1: vx =