#import "GamePaths.h"
#import "cocos2d.h"
#import "MathHelper.h"
#import "MovingObject.h"
Classes | |
class | GamePaths(Private) |
Variables | |
static const float | kMinPathPointDistance = 10.0f |
Defines how many pixels two points must be apart before the new point gets added to the Path. | |
static const int | kMaxPathPoints = 100 |
We need to limit the number of path points that will be drawn per path. |
const int kMaxPathPoints = 100 [static] |
We need to limit the number of path points that will be drawn per path.
This is that number. Cool, ey?
const float kMinPathPointDistance = 10.0f [static] |
Defines how many pixels two points must be apart before the new point gets added to the Path.
This avoids using too much memory by adding too many points but most of all it avoids the MovingObject to flip around wildly if the player's finger moved in place.