Tags » Cocos2D-X

Game Dev Update #02-03 - Cocos2d-x - You Puzzle Me

I finished another tutorial today. It’s about making a rudimentary puzzle game wherein you arrange the puzzle pieces on a 2X2 grid. It was categorized as… 304 more words

Insight

Include AdMob Banner on Cocos2d-x Android Game

Hi,

In this post we will show a piece of code that will help you to add an admob banner on your cocos2d-x game in android. 201 more words

Java

Lỗi khi sử dụng ./gameDevGuide.sh cho việc build plugin - cocos2dx

Khi đến bước sử dụng lệnh ./gameDevGuide.sh để gán plugin vào project của bạn, bị báo lỗi như sau:

Traceback (most recent call last):
File “./toolsForGame/main.py”, line 111, in <module> 90 more words

Cocos2d-x

cocos2d-x多分辨率适配

    //set design resolution size and mode
    Director::getInstance()->getOpenGLView()->setDesignResolutionSize() 
    //set content scale factor
    Director::getInstance()->setContentScaleFactor()
    //set resource search path 
    FileUtils::getInstance()->setSearchPaths()
    //get screen resolution 
    Director::getInstance()->getOpenGLView()->getFrameSize() 
    //get design resolution
    Director::getInstance()->getWinSize() 
    //get design resolution’s visable area size
    Director::getInstance()->getVisibleSize() 
    //get origin of the visable area of design resolution
    Director::getInstance()->getVisibleOrigin()

关于cocos2d-x资源管理

//资源搜索路径,默认为工程目录下的”Resources”

std::vector<std::string> searchPaths1 = FileUtils::getInstance()->getSearchPaths();

for (std::vector<std::string>::const_iterator iter = searchPaths1.begin(); iter != searchPaths1.end(); ++iter)
{
CCLOG(“searchPaths1 : %s”, iter->data());
}

//添加搜索路径”Resources/Images”

std::vector<std::string> searchPaths;
searchPaths.push_back(“Images”);
FileUtils::getInstance()->setSearchPaths(searchPaths); 34 more words

Neat Bundle Released!

I am happy to announce that Neat Bundle is released on iTunes App Store and is available for iPhones and iPads for free! So what are you waiting for, … 260 more words

Projects / Apps

cocos2d 강좌(2) - 씬, 레이어, 스프라이트 1

cocos2d (이하 코코스) 강좌 두 번째 글입니다. 코코스를 하기 전에 먼저 일반적인 게임 프로그래밍 방법론에 대해 이야기하려 합니다. 저는 게임 전공이 아니고 체계적으로 배운 적도 없어서, 틀린 내용도 많으니 참고하시기 바라구요. 336 more words

Cocos2d-x