I have a error with var Vec2
My code and error
Tks for help
Not sure, but try either putting USING_NS_CC; after your #include line, or replacing each instance of Vec2 with cocos2d::Vec2 in your header file. (You might have to do the same for Layer and Size as well.)
USING_NS_CC;
#include
Vec2
cocos2d::Vec2
Layer
Size