I added this to my first game that I’m making:
pLabel->setColor(ccBLACK);
And then suddenly I get a lot of errors :
Symbol ‘GL_ONE’ could not be resolved
The type ‘cocos2d::CCSprite’ must implement the inherited pure virtual method ‘cocos2d::CCRGBAProtocol::setOpacity’ CCSprite.cpp /Asteroids2/cocos2dx/sprite_nodes line 136 Code Analysis Problem
Not just these two, 10-20 like these two.
How the hell could the cocos2dx source files suddenly become erroneous?
Must be some environment setting thing. But I checked back with the README.md in proj.android folder, and all the eclipse variables for C++ build etc are set, as instructed.
Could anyone tell me all the steps for their successful integration with Eclipse on Windows in which they’ve so far not gotten any errors by simply setting the color of their fonts?
This is heart breaking… I just wanted to set my font’s color…
My project did run quite a many times - so far I’ve added a sprite, and changed the “Hello World” in pLabel to “ASTEROIDS”.
It did run.
PS: I’m using Windows Vista SP1, Android Eclipse Studio (package from Android developer site), NDK r9, and Cocos2d-x v2.2.1
Here’s my HelloWorldScene .h and .cpp code:
http://pastebin.com/0YksG6fe - .cpp
http://pastebin.com/hWWjLRup - .h