Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does 'ccp' signify in Cocos2d/Objective-C?

I keep seeing a phrase like this:

//Example one
CGPoint backgroundScrollVel = ccp(-1000, 0);

//Another Example
// 3) Determine relative movement speeds for space dust and background
CGPoint dustSpeed = ccp(0.1, 0.1);
CGPoint bgSpeed = ccp(0.05, 0.05);

So what does ccp signify? Is it a property of CCParallax?

like image 752
GPP Avatar asked Jan 14 '12 02:01

GPP


1 Answers

Like Stephen said, it's just a macro for CGPointMake(x, y), but if you particularly mean what does "ccp" stand for it's most likely c o c os2d p oint

like image 198
Rob Avatar answered Sep 20 '22 04:09

Rob