I try to wrap cocos2d HTML5 with phonegap but it’s failed.
cocos2d HTML5 version : 2.1
phonegap : 1.4.1, 2.3.0 android
I move helloworld sample src & res to “www” folder and set cocos2d library and update build.xml(directory setting)
eclipse LogCat error message is
01-16 05:46:21.784: D/CordovaLog(403): TypeError: Result of expression ‘cc.ActionInterval’ [undefined] is not an object.
01-16 05:46:21.784: E/Web Console(403): TypeError: Result of expression ‘cc.ActionInterval’ [undefined] is not an object. at file:///android_asset/www/libs/cocos2d/actions/CCActionProgressTimer.js:31
01-16 05:46:21.794: D/CordovaLog(403): TypeError: Result of expression ‘cc.ActionInterval’ [undefined] is not an object.
01-16 05:46:21.794: E/Web Console(403): TypeError: Result of expression ‘cc.ActionInterval’ [undefined] is not an object. at file:///android_asset/www/libs/cocos2d/actions/CCActionCamera.js:32
01-16 05:46:22.045: D/CordovaLog(403): TypeError: Result of expression ‘cc.TransitionScene’ [undefined] is not an object.
01-16 05:46:22.045: E/Web Console(403): TypeError: Result of expression ‘cc.TransitionScene’ [undefined] is not an object. at file:///android_asset/www/libs/cocos2d/layers_scenes_transitions_nodes/CCTransitionPageTurn.js:38
01-16 05:46:22.064: D/CordovaLog(403): TypeError: Result of expression ‘cc.TransitionScene’ [undefined] is not an object.
01-16 05:46:22.064: E/Web Console(403): TypeError: Result of expression ‘cc.TransitionScene’ [undefined] is not an object. at file:///android_asset/www/libs/cocos2d/layers_scenes_transitions_nodes/CCTransitionProgress.js:39
01-16 05:46:22.364: D/CordovaLog(403): TypeError: Result of expression ‘cc.Sprite’ [undefined] is not an object.
01-16 05:46:22.364: E/Web Console(403): TypeError: Result of expression ‘cc.Sprite’ [undefined] is not an object. at file:///android_asset/www/libs/cocos2d/label_nodes/CCLabelTTF.js:35
01-16 05:46:22.674: D/CordovaLog(403): TypeError: Result of expression ‘cc.ParticleSystem’ [undefined] is not an object.
01-16 05:46:22.674: E/Web Console(403): TypeError: Result of expression ‘cc.ParticleSystem’ [undefined] is not an object. at file:///android_asset/www/libs/cocos2d/particle_nodes/CCParticleSystemQuad.js:47
01-16 05:46:22.744: D/CordovaLog(403): TypeError: Result of expression ‘cc.LabelTTF’ [undefined] is not an object.
01-16 05:46:22.744: E/Web Console(403): TypeError: Result of expression ‘cc.LabelTTF’ [undefined] is not an object. at file:///android_asset/www/libs/cocos2d/text_input_node/CCTextFieldTTF.js:88
01-16 05:46:22.854: D/CordovaLog(403): TypeError: Result of expression ‘cc.ParticleSystemQuad’ [undefined] is not an object.
01-16 05:46:22.854: E/Web Console(403): TypeError: Result of expression ‘cc.ParticleSystemQuad’ [undefined] is not an object. at file:///android_asset/www/libs/cocos2d/particle_nodes/CCParticleExamples.js:35
01-16 05:46:23.124: D/CordovaLog(403): TypeError: Result of expression ‘element’ [null] is not an object.
01-16 05:46:23.124: E/Web Console(403): TypeError: Result of expression ‘element’ [null] is not an object. at file:///android_asset/www/libs/cocos2d/platform/CCApplication.js:153
build.xml.zip (0.9 KB)
index.html.zip (0.7 KB)