it given the information about how to develop the iphone application and games.......
const float kGravity = 0.2f; -(void) update:(ccTime)delta { velocity.y -= kGravity; self.position = CGPointMake(position_.x + velocity.x, position_.y + velocity.y); }
No comments:
Post a Comment