ClassesLineDrawingStarterkit/GamePaths.m File Reference

#import "GamePaths.h"
#import "cocos2d.h"
#import "MathHelper.h"
#import "MovingObject.h"
Include dependency graph for GamePaths.m:
This graph shows which files directly or indirectly include this file:

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.

Variable Documentation

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.

 All Classes Files Functions Variables Enumerations Enumerator Properties Defines
Generated on Fri May 28 10:53:09 2010 for Line-Drawing Game Starter Kit for cocos2d-iPhone by  doxygen 1.6.3