Skip to content

Conversation

@ricardoquesada
Copy link
Contributor

Added "cc.associateWithNative": It does nothing, but needed for compatibility.
MenuItem: Changed the API a bit:
-> OLD: setTarget NEW: setCallback
-> ToggleMenuItem: initializes with a list of items. The callback is
set manually later (I have some doubts about this change, but it
is a bit better than the previous one)
Animation: OLD: createWithSpriteFrames NEW: create
Geometry: Started the new "rectIntersection" API... but I have not
finished it yet.

Updates the tests.

These changes are needed for the MoonWarrior coco2d+js bindings version.

TODO in cocos2d-html5:

  • Finish rect and size API and merge them in one file
  • Since touches events are not avaible in cocos2d-html5, it should be renamed
    to "mouse events"

Added "cc.associateWithNative": It does nothing, but needed for compatibility.
MenuItem: Changed the API a bit:
  -> OLD: setTarget   NEW: setCallback
  -> ToggleMenuItem: initializes with a list of items. The callback is
       set manually later (I have some doubts about this change, but it
       is a bit better than the previous one)
Animation:  OLD: createWithSpriteFrames    NEW: create
Geometry: Started the new "rectIntersection" API... but I have not
          finished it yet.

Updates the tests.

These changes are needed for the MoonWarrior coco2d+js bindings version.

TODO in cocos2d-html5:
 - Finish rect and size API and merge them in one file
 - Since touches events are not avaible in cocos2d-html5, it should be renamed
   to "mouse events"
linshun pushed a commit that referenced this pull request Aug 11, 2012
Changes needed to make it compatible with cocos2d + JS bindings
@linshun linshun merged commit 7140fc7 into cocos2d:master Aug 11, 2012
@linshun
Copy link
Member

linshun commented Aug 11, 2012

Thank you, Riq.

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