Changes to myApp.js files are reverted back to normal when the project is build - Cocos2dx
Posted
by
Mansoor
on Game Development
See other posts from Game Development
or by Mansoor
Published on 2014-03-08T18:40:11Z
Indexed on
2014/06/07
21:38 UTC
Read the original article
Hit count: 235
I am trying to do some changes to my myApp.js file of coco2dx project for android in eclipse but I am not able to do it.
I am actually trying to change the default background image of my app. But when I run my project all the changes goes back to before values
For Eg: This is the default line wer we are setting our background image
this.sprite = cc.Sprite.create("res/HelloWorld.png");
I am changing it to the following line:
this.sprite = cc.Sprite.create("res/CloseNormal.png");
But when I run my project CloseNormal.png goes back to HelloWorld.png
I am using:
- OS: Win7
- Cocos2d Ver: cocos2dx 2.2.2
Why is this happening. Can anybody help me?
© Game Development or respective owner