Skip to content

Conversation

@ricardoquesada
Copy link
Contributor

Added:
cc.size, cc.rect

Renamed:
spriteFrameByName -> getSpriteFrame
boundingBoxToWorld -> getBoundingBoxtoWorld

Added:
cc.size, cc.rect

Renamed:
spriteFrameByName -> getSpriteFrame
boundingBoxToWorld ->  getBoundingBoxtoWorld
replaces SizeMake() with size()
replaces RectMake() with rect()

The constant colors are not functions, but constants:
 cc.WHITE() -> cc.WHITE
 cc.BLACK() -> cc.BLACK.
 etc.
cc.rect = {}, cc.size = {}, cc.p = {}

they return "inline" objegts, without using new.
eg:
cc.p = function(x,y) = { return {x:x, y:y} };
linshun pushed a commit that referenced this pull request Aug 9, 2012
@linshun linshun merged commit ae8fff2 into cocos2d:master Aug 9, 2012
@linshun
Copy link
Member

linshun commented Aug 9, 2012

Thank you for your pull request,Ricardo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants